Commit b28e2c51 authored by 我在何方's avatar 我在何方

新建拆单初始化

parent 1280a926
......@@ -290,6 +290,7 @@ export default {
form:{
},
importCityList:[],
selectedUsers:[],
shopOpen:false,
......@@ -318,7 +319,10 @@ export default {
},
created() {
this.getChannel()
getWarehouseList().then(res => this.tradeCityList = res.data)
getWarehouseList().then(res => {
this.tradeCityList = res.data
this.importCityList = this.tradeCityList.filter(item => item.type == 1)
})
if (this.$route.query.orderId) {
this.queryParams.orderId = this.$route.query.orderId
}
......@@ -352,9 +356,6 @@ export default {
},
getDictDatas(){
return getDictDatas
},
importCityList(){
return this.tradeCityList.filter(item => item.type == 1)
}
},
methods: {
......@@ -454,6 +455,16 @@ export default {
this.shopOpen = true
},
addSplit(){
this.form.transportId = this.orderData.transportId
this.form.destWarehouseId = this.orderData.destWarehouseId
if(this.orderData.logisticsInfoDto&&this.orderData.logisticsInfoDto.destTitleZh){
this.form.destWarehouseId = this.importCityList.find(item=>item.titleZh==this.orderData.logisticsInfoDto.destTitleZh).id
if(this.orderData.logisticsInfoDto&&this.orderData.logisticsInfoDto.channelId){
this.form.channelId = this.orderData.logisticsInfoDto.channelId
}
}
this.open = true
},
changeProdTitleZh(){
......
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