Commit 4fd22b92 authored by 邓春圆's avatar 邓春圆

回显的重泡货标准不对 bug修复

parent ab0bb0ca
......@@ -479,7 +479,6 @@ export default {
// 获取重泡货路线
getCustomerLines(this.customerId).then(res => {
console.log({getCustomerLines: res})
this.zhongLines = res.data.filter(item => item.zhongPaoType == 1)
this.paoLines = res.data.filter(item => item.zhongPaoType == 2)
if(this.zhongLines.length)this.showZhong1 = true
......@@ -489,6 +488,7 @@ export default {
})
})
} else {
this.getZhongPao()
// 新建客户
this.handleAddContact()
if(this.isCustomerServiceConfirmed){
......@@ -517,7 +517,6 @@ export default {
getCountryListAll().then(r => {
this.countryList = r.data
})
this.getZhongPao()
},
data(){
return {
......@@ -761,6 +760,7 @@ export default {
this.form = { ...this.form, ...response.data, id: this.customerId };
this.open = true;
this.title = this.$t('修改客户');
this.getZhongPao()
});
},
updateCustomerLines() {
......@@ -805,8 +805,8 @@ export default {
// departureId: this.departureId,
// objectiveId: this.objectiveId
}).then(r => {
this.form.weightUnit = r.data.zhongEdge
this.form.lightUnit = r.data.paoEdge
if(!this.form.weightUnit) this.form.weightUnit = r.data.zhongEdge
if(!this.form.lightUnit) this.form.lightUnit = r.data.paoEdge
})
}
},
......
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