Commit 61fa029c authored by yujinyao's avatar yujinyao

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

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