Commit 61fa029c authored by yujinyao's avatar yujinyao

线路价格筛选加目的国和目的仓

parent 2770d74e
......@@ -312,7 +312,7 @@ export default {
this.destWarehouseId == ""
) {
//获取当前城市值id,获取该城市下区域
this.getChannelList()
} else if (
this.destCountryId == "" &&
this.destCityId == "" &&
......@@ -332,9 +332,10 @@ export default {
this.destWarehouseId == ""
) {
//获取当前城市值id,获取该城市下区域
this.getChannelList()
}
this.getOpenedRouterList()
this.getChannelList()
},
},
destWarehouseId: {
......@@ -360,7 +361,7 @@ export default {
) {
this.findBycityCode()
}
// this.getOpenedRouterList()
this.getOpenedRouterList()
},
},
},
......@@ -433,6 +434,9 @@ export default {
if(this.destCityId){
params.destCityId = this.destCityId
}
if(this.destWarehouseId){
params.destWarehouseId = this.destWarehouseId
}
const res = await openedRouterList(params)
this.openedRouterList = res.data.filter(item => {
return this.exportCityIds.indexOf(item.startCityId) > -1 && this.importCityIds.indexOf(item.destCityId) > -1
......@@ -494,7 +498,7 @@ export default {
getCountryList() {
getListTree({ treeType: 1 }).then((response) => {
this.countryList = response.data;
});
})
},
getAddressCity() {
getRegionList(4, 4).then(({ data }) => {
......@@ -507,16 +511,21 @@ export default {
})
},
findByprovinceCode() {
if (this.destCountryId != null && this.destCountryId != '') {
//获取当前省份值id,获取该省份下城市 destCountryId provinceCode
getRegionList(2, this.destCountryId).then(({ data }) => {
this.AddressCity = data;
})
}
},
findBycityCode() {
if (this.destCityId != null && this.destCityId != '') {
//获取当前城市值id,获取该城市下区域
getRegionList(3, this.destCityId).then(({ data }) => {
this.AddressTown = data;
})
}
},
}
}
......
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