Commit d47fc25a authored by dragondean@qq.com's avatar dragondean@qq.com

修复订单编辑路线回填失效

parent ba183300
......@@ -725,7 +725,7 @@ export default {
'form.objectiveId'(){
this.getOpenedRouterList()
},
'form.transportId'(transportId){
'form.transportId'(transportId, oldTransportId){
// 海运拼柜给表单默认值
if(this.form.transportId == 4){
this.$nextTick(() => {
......@@ -738,7 +738,8 @@ export default {
})
}
// 更换运输方式之后,之前选择的路线会失效,需要重新选择
if(transportId != this.selectedRouter?.transportType){
if(oldTransportId && oldTransportId != transportId && transportId != this.selectedRouter?.transportType){
console.log('重置路线',oldTransportId, transportId, this.selectedRouter?.transportType)
this.$set(this.form, 'lineId', undefined)
}
......
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