Commit 219fb2b4 authored by 我在何方's avatar 我在何方

合单出货渠道

parents 05218724 246ca0f3
......@@ -331,12 +331,12 @@
</el-descriptions>
<el-descriptions v-if="[3,4].indexOf(list.transportId) > -1">
<el-descriptions-item :label="$t('航空公司')">
{{airCompanyName||'/'}}
{{airlineCompany ? $l(airlineCompany, 'company') : '/'}}
</el-descriptions-item>
</el-descriptions>
<el-descriptions v-if="list.transportId==2">
<el-descriptions-item :label="$t('船公司')">
{{shipCompanyName||'/'}}
{{shippingCompany ? $l(shippingCompany, 'company') : '/'}}
</el-descriptions-item>
</el-descriptions>
<el-descriptions v-if="[2,3,4].indexOf(list.transportId) > -1">
......@@ -419,8 +419,10 @@
customerSource: getDictDatas(DICT_TYPE.CUSTOMER_SOURCE),
couponAvailableGroupDtoList: [], // 可用优惠
couponTotalAmountList: [], // 优惠总额
airCompanyName:'',
shipCompanyName:''
// 航空公司
airlineCompany: null,
// 船公司
shippingCompany: null,
};
},
computed:{
......@@ -613,17 +615,6 @@
that.orderData = response.data;
});
},
getSupplierData(id,type){
getSupplier(id).then(res=>{
if(res.data){
if(type==1){
this.airCompanyName = res.data.companyZh
}else{
this.shipCompanyName = res.data.companyZh
}
}
})
},
getProductListWithDefaultValue(){
let arr = []
this.list.offerProdRespVOList.forEach(item => {
......@@ -675,12 +666,6 @@
if(that.list.channelId){
that.getChannelData()
}
if(that.list.transportVO.airlineCompany){
that.getSupplierData(that.list.transportVO.airlineCompany,1)
}
if(that.list.transportVO.shippingCompany){
that.getSupplierData(that.list.transportVO.shippingCompany,2)
}
that.calculationPrice()
// if(that.list.orderId){
// that.getOrderData(that.list.orderId)
......@@ -713,6 +698,21 @@
that.loading = false;
that.getOpenedRouterList()
if(this.list.transportVO.airlineCompany){
getSupplier(this.list.transportVO.airlineCompany).then(res=>{
if(res.data){
this.airlineCompany = res.data.companyZh
}
})
}
if(this.list.transportVO.shippingCompany){
getSupplier(this.list.transportVO.shippingCompany).then(res=>{
if(res.data){
this.shippingCompany = res.data.companyZh
}
})
}
});
},
getCity(id){
......
......@@ -300,7 +300,7 @@
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="order.transportId" />
</el-table-column>
<el-table-column :label="$t('出货渠道')">
{{channelName}}
{{order.channelName}}
</el-table-column>
<el-table-column :label="$t('始发地')" prop="orderNo">
{{$l(departure, 'title') || '-'}}
......
......@@ -1077,7 +1077,7 @@ export default {
this.$nextTick(() => {
console.log('nextTick 订单渲染完成')
res.data.orderItemVOList.forEach(item => {
item.prodAttrArr = item.prodAttrIds.split(',').filter(item => item != '').map(attrId => +attrId)
item.prodAttrArr = item.prodAttrIds?.split(',').filter(item => item != '').map(attrId => +attrId) || []
this.form.orderItemVOList.push({...item})
})
......
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