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

新建拆单初始化

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