Commit e2233622 authored by yujinyao's avatar yujinyao

客户设置开关参数重置

parent 1c49f721
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
zhongLines: [], zhongLines: [],
warehouseList: [], // 仓库列表 warehouseList: [], // 仓库列表
importCityList: [], // 进口地址 importCityList: [], // 进口地址
zhongLines: [], paoLines: [],
paoLines: [], paoLines: [],
} }
}, },
...@@ -137,18 +137,12 @@ export default { ...@@ -137,18 +137,12 @@ export default {
}); });
}, },
methods: { methods: {
getZhongPao() {
getZhongPaoBest({
customerId: this.customerId,
// departureId: this.departureId,
// objectiveId: this.objectiveId
}).then((r) => {
if (!this.form.weightUnit) this.form.weightUnit = r.data.zhongEdge;
if (!this.form.lightUnit) this.form.lightUnit = r.data.paoEdge;
});
},
init(id) { init(id) {
this.customerId = id this.customerId = id
this.showZhong = false
this.showPao = false
this.showZhong1 = false
this.showPao1 = false
getCustomer(this.customerId).then((response) => { getCustomer(this.customerId).then((response) => {
const row = response.data const row = response.data
this.form = { this.form = {
...@@ -178,6 +172,16 @@ export default { ...@@ -178,6 +172,16 @@ export default {
this.getZhongPao() this.getZhongPao()
}) })
}, },
getZhongPao() {
getZhongPaoBest({
customerId: this.customerId,
// departureId: this.departureId,
// objectiveId: this.objectiveId
}).then((r) => {
if (!this.form.weightUnit) this.form.weightUnit = r.data.zhongEdge;
if (!this.form.lightUnit) this.form.lightUnit = r.data.paoEdge;
});
},
handleClose() { handleClose() {
this.resetForm("form") this.resetForm("form")
this.dialogVisible = false this.dialogVisible = false
......
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