Commit a8c601d5 authored by xxx's avatar xxx

1

parent 567c8aee
...@@ -395,7 +395,10 @@ export default { ...@@ -395,7 +395,10 @@ export default {
let query1 = {...this.desform}; let query1 = {...this.desform};
query1.carNo = item.number; query1.carNo = item.number;
query1.flag = 1; query1.flag = 1;
query1.destination = this.zaDestination[0] + (this.zaDestination[1] ? '/' + this.zaDestination[1] : ''); if(this.zaDestination.length == 1){
HttpReq.truckDispatching.RegionalCaiDianQuery({size:9999,areaName:this.zaDestination[0]}).then((res1Reg) => {
if(res1Reg.code == 200 && res1Reg.data.totalElements != 0){
query1.destination = this.zaDestination[0] + '/' + res1Reg.data.content[0].name;
HttpReq.truckDispatching.manualSchedulingAdd(query1).then((res) => { HttpReq.truckDispatching.manualSchedulingAdd(query1).then((res) => {
if(res.code == 200){ if(res.code == 200){
...@@ -418,6 +421,33 @@ export default { ...@@ -418,6 +421,33 @@ export default {
}) })
} }
}).catch(function(error) { }); }).catch(function(error) { });
};
})
}else{
query1.destination = this.zaDestination[0] + '/' + this.zaDestination[1];
HttpReq.truckDispatching.manualSchedulingAdd(query1).then((res) => {
if(res.code == 200){
}else{
this.$notify({
title: res.msg,
type: 'error',
duration: 2500
})
}
}).catch(function(error) { });
HttpReq.truckDispatching.manualOrderAdd(query1).then((res) => {
if(res.code == 200){
}else{
this.$notify({
title: res.msg,
type: 'error',
duration: 2500
})
}
}).catch(function(error) { });
}
} }
if(this.xzDestination){ if(this.xzDestination){
let query2 = {...this.desform}; let query2 = {...this.desform};
......
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