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

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

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