Commit 84bcbeb2 authored by xiejb's avatar xiejb

对接货主接口并更换图标

parent cfc66484
...@@ -74,3 +74,12 @@ export function getGoodsSetList(params) { ...@@ -74,3 +74,12 @@ export function getGoodsSetList(params) {
loading: true loading: true
}) })
} }
// 获取货主列表
export function getConsignorSetList(params) {
return fetch({
url: '/RoleCompanyName/EmployeeOrgQuery',
method: 'post',
data: params,
loading: true
})
}
src/assets/img/order.png

1.97 KB | W: | H:

src/assets/img/order.png

6.51 KB | W: | H:

src/assets/img/order.png
src/assets/img/order.png
src/assets/img/order.png
src/assets/img/order.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/img/u48.png

15.4 KB | W: | H:

src/assets/img/u48.png

6.53 KB | W: | H:

src/assets/img/u48.png
src/assets/img/u48.png
src/assets/img/u48.png
src/assets/img/u48.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<van-cell :title="titleInitial(item)" clickable @click="itemClick(item,index)" v-for="(item,index) in postDataList" <van-cell :title="titleInitial(item)" clickable @click="itemClick(item,index)" v-for="(item,index) in postDataList"
:key="index"> :key="index">
<template #right-icon> <template #right-icon>
<van-checkbox :name="item.comGoodsId" /> <van-checkbox :name="item.id" />
</template> </template>
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</template> </template>
<script> <script>
import {getGoodsList} from '@/api/common' import {getConsignorSetList} from '@/api/common'
import {getResListNum} from '../utils/common' import {getResListNum} from '../utils/common'
import SearchResult from './SearchResult' import SearchResult from './SearchResult'
import { Dialog } from 'vant' import { Dialog } from 'vant'
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
// this.checked = !this.customer.comPartyId ? '' : this.customer.comPartyId // this.checked = !this.customer.comPartyId ? '' : this.customer.comPartyId
// console.log(this.checked) // console.log(this.checked)
this.customer.forEach((res)=>{ this.customer.forEach((res)=>{
this.checkedList.push(res.comGoodsId) this.checkedList.push(res.id)
}) })
this.currentPage = 1 this.currentPage = 1
this.onRefresh() this.onRefresh()
...@@ -135,8 +135,8 @@ export default { ...@@ -135,8 +135,8 @@ export default {
methods: { methods: {
/// 标题拼接 <!-- 药厂码/SAP码)名称 --> /// 标题拼接 <!-- 药厂码/SAP码)名称 -->
titleInitial(model) { titleInitial(model) {
let titleStr = model.comGoodsId + '/(' + model.goodsOpcode + ')' + model.goodsName + '/' + model.goodsDesc + '/' + model.partyName + '/' + model.packageNum + '/' + model.unitName // let titleStr = model.comGoodsId + '/(' + model.goodsOpcode + ')' + model.goodsName + '/' + model.goodsDesc + '/' + model.partyName + '/' + model.packageNum + '/' + model.unitName
return titleStr return model.companyname
}, },
onSearch () { onSearch () {
// if (!this.isJudgeStrNull(this.keywords)) { // if (!this.isJudgeStrNull(this.keywords)) {
...@@ -176,11 +176,11 @@ export default { ...@@ -176,11 +176,11 @@ export default {
itemClick(item, index) { itemClick(item, index) {
// this.checked = item.comPartyId // this.checked = item.comPartyId
// this.choosedPost = item // this.choosedPost = item
if(this.checkedList.indexOf(item.comGoodsId) > -1) { if(this.checkedList.indexOf(item.id) > -1) {
this.choosedPost.splice(this.checkedList.indexOf(item.comGoodsId),1) this.choosedPost.splice(this.checkedList.indexOf(item.id),1)
this.checkedList.splice(this.checkedList.indexOf(item.comGoodsId),1) this.checkedList.splice(this.checkedList.indexOf(item.id),1)
} else { } else {
this.checkedList.push(item.comGoodsId) this.checkedList.push(item.id)
this.choosedPost.push(item) this.choosedPost.push(item)
} }
}, },
...@@ -199,24 +199,27 @@ export default { ...@@ -199,24 +199,27 @@ export default {
getPostData() { getPostData() {
let _this = this let _this = this
let data = { let data = {
'goods': _this.keywords, 'attr': {
'dbName': this.linkInfo.sysDbSource + '-' + this.linkInfo.appRealDb + '-' + this.linkInfo.sysOrgId, 'empid': '199476'
'saler': this.linkInfo.sysUserId, },
'start': _this.currentPage, 'filters': [],
'length': _this.pageSize 'logic': 'or',
'sort': 'desc',
'orderby': 'createon',
'pageNum': _this.currentPage,
'pageSize': _this.pageSize
} }
getGoodsList(data).then(rt => { getConsignorSetList(data).then(rt => {
if (rt.code === 200) {
if (rt.code === '1') {
if (_this.currentPage === 1) { if (_this.currentPage === 1) {
_this.searchNum = getResListNum(rt.msg) // _this.searchNum = getResListNum(rt.msg)
this.postDataList = [] this.postDataList = []
} }
if (this.isRefreshing) { if (this.isRefreshing) {
this.postDataList = rt.data this.postDataList = rt.data.list
} }
else if (!!rt.data || rt.data.length > 0) { else if (!!rt.data.list || rt.data.list.length > 0) {
this.postDataList = this.postDataList.concat(rt.data) this.postDataList = this.postDataList.concat(rt.data.list)
} }
// _this.postDataListSetAction(rt.data) // _this.postDataListSetAction(rt.data)
// 重置刷新提示 // 重置刷新提示
...@@ -224,7 +227,7 @@ export default { ...@@ -224,7 +227,7 @@ export default {
// 重置加载更多提示 // 重置加载更多提示
_this.loading = false _this.loading = false
// 若当前加载的页数没有满足每页的数量代表完全加载 // 若当前加载的页数没有满足每页的数量代表完全加载
if (rt.data.length < 10) { if (rt.data.list.length < 10) {
_this.finished = true _this.finished = true
} else { } else {
// 加载成功后下一页自增1 // 加载成功后下一页自增1
......
...@@ -351,7 +351,8 @@ export default { ...@@ -351,7 +351,8 @@ export default {
}, },
// 商品信息拼接 // 商品信息拼接
consignorInfoStitching(model) { consignorInfoStitching(model) {
return model.comGoodsId + '/(' + model.goodsOpcode + ')' + model.goodsName + '/' + model.goodsDesc + '/' + model.partyName + '/' + model.packageNum + '/' + model.unitName return model.companyname
// return model.comGoodsId + '/(' + model.goodsOpcode + ')' + model.goodsName + '/' + model.goodsDesc + '/' + model.partyName + '/' + model.packageNum + '/' + model.unitName
}, },
onQuickDateChoose(index, tag) { onQuickDateChoose(index, tag) {
console.log(index,tag) console.log(index,tag)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment