Commit 7d155129 authored by liuzeheng's avatar liuzeheng

目的城市清空

parent 53dc43b3
......@@ -739,7 +739,7 @@ export default {
this.objectiveId = "";
this.destWarehouseId = "";
this.findByprovinceCode();
if(this.destCountryId=="" && this.objectiveId=="" ){
if(this.destCountryId=="" ){
getRegionList(4, 4).then(({data}) => {
this.AddressCity = data;
})
......@@ -756,21 +756,13 @@ export default {
}else if(this.destCountryId!="" && this.objectiveId=="" && this.destWarehouseId==""){
getRegionList(5, 5).then(({data}) => {
this.AddressTown = data;
})
.catch(error => {
console.log(error);
});
}else if(this.destCountryId=="" && this.objectiveId=="" && this.destWarehouseId==""){
getRegionList(4, 4).then(({data}) => {
getRegionList(2, this.destCountryId).then(({data}) => {
this.AddressCity = data;
})
.catch(error => {
console.log(error);
});
getRegionList(5, 5).then(({data}) => {
getRegionList(5, 5).then(({data}) => {
this.AddressTown = data;
})
.catch(error => {
......@@ -827,6 +819,19 @@ export default {
}).catch(error => {
console.log(error);
});
}else if(this.destCountryId!="" && this.objectiveId=="" && this.destWarehouseId==""){
getRegionList(2, this.destCountryId).then(({data}) => {
this.AddressCity = data;
})
.catch(error => {
console.log(error);
});
getRegionList(5, 5).then(({data}) => {
this.AddressTown = data;
})
.catch(error => {
console.log(error);
});
}
// else if(this.objectiveId!="" && this.objectiveId=="" ){
// getRegionList(5, 5).then(({data}) => {
......@@ -866,14 +871,15 @@ export default {
console.log(error);
});
}else if(this.objectiveId=="" && this.destWarehouseId==""){
getRegionList(5, 5).then(({data}) => {
this.AddressTown = data;
})
.catch(error => {
console.log(error);
});
}
// else if(this.objectiveId=="" && this.destWarehouseId==""){
// getRegionList(5, 5).then(({data}) => {
// this.AddressTown = data;
// })
// .catch(error => {
// console.log(error);
// });
// }
}
},
},
......
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