Commit 39d07795 authored by xiejb's avatar xiejb

客户接口调整

parent 72ca88f5
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
'beforeP': item.db_source, 'beforeP': item.db_source,
'middleP': process.env.appRealDb, 'middleP': process.env.appRealDb,
'afterP': this.supplier.org, 'afterP': this.supplier.org,
'saler': item.erpUserid 'saler': item.erp_user
} }
companyList.push(removeItem) companyList.push(removeItem)
}) })
......
...@@ -190,7 +190,7 @@ export default { ...@@ -190,7 +190,7 @@ export default {
const removeItem = { const removeItem = {
'beforeP': item.db_source, 'beforeP': item.db_source,
'middleP': process.env.appRealDb, 'middleP': process.env.appRealDb,
'afterP': '508', 'afterP': this.getSupplierArray(),
'saler': item.erp_user 'saler': item.erp_user
} }
companyList.push(removeItem) companyList.push(removeItem)
...@@ -251,6 +251,14 @@ export default { ...@@ -251,6 +251,14 @@ export default {
_this.finished = true _this.finished = true
}) })
}, },
// 获取供应商数组ID
getSupplierArray () {
const supplierList = []
this.supplier.forEach(item => {
supplierList.push(item.org)
})
return supplierList
},
/// 判断数值是否为空 /// 判断数值是否为空
isJudgeStrNull(val) { isJudgeStrNull(val) {
if (val !== null && val !== undefined && val !== '') { if (val !== null && val !== undefined && val !== '') {
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</div> </div>
<div class="high-info" @click="showPost('orderNo')"> <div class="high-info" @click="showPost('orderNo')">
<div class="title font-bold font-16">请输入订单号</div> <div class="title font-bold font-16">请输入订单号</div>
<div @keyup="changeData($event)" :class="isSelectClient === true ? 'nom input': 'select input'" :contenteditable="isSelectConsignorSupplier === true ? 'true': 'false'" class="inputInfo" placeholder="请输入订单号"></div> <div @keyup="changeData($event)" :class="isSelectClient === true ? 'nom input': 'select input'" :contenteditable="isSelectClient === true ? 'true': 'false'" class="inputInfo" placeholder="请输入订单号"></div>
<!-- <input :class="isSelectConsignorSupplier === true ? 'nom input': 'select input'" :disabled="!isSelectConsignorSupplier" v-model="moreSearchInfo.orderNo" placeholder="请输入订单号" class="input" type="text"> --> <!-- <input :class="isSelectConsignorSupplier === true ? 'nom input': 'select input'" :disabled="!isSelectConsignorSupplier" v-model="moreSearchInfo.orderNo" placeholder="请输入订单号" class="input" type="text"> -->
</div> </div>
<div class="high-info" @click="showPost('goods')"> <div class="high-info" @click="showPost('goods')">
...@@ -318,12 +318,12 @@ export default { ...@@ -318,12 +318,12 @@ export default {
return return
} }
if (type !== 'supplier') { if (type !== 'supplier') {
// if (this.moreSearchInfo.supplier.org === '' || this.moreSearchInfo.supplier.org === null || this.moreSearchInfo.supplier.org === undefined) {
// this.$toast('请先供应商!')
// return
// }
if (this.moreSearchInfo.supplier.length === 0 ) { if (this.moreSearchInfo.supplier.length === 0 ) {
this.$toast('请先供应商!') this.$toast('请先选择供应商!')
return
}
if (type !== 'client' && !this.moreSearchInfo.client.comPartyId) {
this.$toast('请先选择客户!')
return return
} }
} }
......
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