Commit 5269bb9e authored by zhoutong's avatar zhoutong
parents 68640c14 219fb2b4
...@@ -331,12 +331,12 @@ ...@@ -331,12 +331,12 @@
</el-descriptions> </el-descriptions>
<el-descriptions v-if="[3,4].indexOf(list.transportId) > -1"> <el-descriptions v-if="[3,4].indexOf(list.transportId) > -1">
<el-descriptions-item :label="$t('航空公司')"> <el-descriptions-item :label="$t('航空公司')">
{{getSupplierData(list.transportVO.airlineCompany)||'/'}} {{airlineCompany ? $l(airlineCompany, 'company') : '/'}}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions v-if="list.transportId==2"> <el-descriptions v-if="list.transportId==2">
<el-descriptions-item :label="$t('船公司')"> <el-descriptions-item :label="$t('船公司')">
{{getSupplierData(list.transportVO.shippingCompany)||'/'}} {{shippingCompany ? $l(shippingCompany, 'company') : '/'}}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions v-if="[2,3,4].indexOf(list.transportId) > -1"> <el-descriptions v-if="[2,3,4].indexOf(list.transportId) > -1">
...@@ -419,6 +419,10 @@ ...@@ -419,6 +419,10 @@
customerSource: getDictDatas(DICT_TYPE.CUSTOMER_SOURCE), customerSource: getDictDatas(DICT_TYPE.CUSTOMER_SOURCE),
couponAvailableGroupDtoList: [], // 可用优惠 couponAvailableGroupDtoList: [], // 可用优惠
couponTotalAmountList: [], // 优惠总额 couponTotalAmountList: [], // 优惠总额
// 航空公司
airlineCompany: null,
// 船公司
shippingCompany: null,
}; };
}, },
computed:{ computed:{
...@@ -611,17 +615,6 @@ ...@@ -611,17 +615,6 @@
that.orderData = response.data; that.orderData = response.data;
}); });
}, },
getSupplierData(id){
var labelname = ''
if(id){
getSupplier(id).then(res=>{
if(res.data){
labelname = res.data.companyZh
}
})
}
return labelname
},
getProductListWithDefaultValue(){ getProductListWithDefaultValue(){
let arr = [] let arr = []
this.list.offerProdRespVOList.forEach(item => { this.list.offerProdRespVOList.forEach(item => {
...@@ -705,6 +698,21 @@ ...@@ -705,6 +698,21 @@
that.loading = false; that.loading = false;
that.getOpenedRouterList() 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){ getCity(id){
......
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="order.transportId" /> <dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="order.transportId" />
</el-table-column> </el-table-column>
<el-table-column :label="$t('出货渠道')"> <el-table-column :label="$t('出货渠道')">
{{channelName}} {{order.channelName}}
</el-table-column> </el-table-column>
<el-table-column :label="$t('始发地')" prop="orderNo"> <el-table-column :label="$t('始发地')" prop="orderNo">
{{$l(departure, 'title') || '-'}} {{$l(departure, 'title') || '-'}}
......
...@@ -1077,7 +1077,7 @@ export default { ...@@ -1077,7 +1077,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
console.log('nextTick 订单渲染完成') console.log('nextTick 订单渲染完成')
res.data.orderItemVOList.forEach(item => { 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}) this.form.orderItemVOList.push({...item})
}) })
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="orderData.transportId" /> <dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="orderData.transportId" />
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('出货渠道')"> <el-descriptions-item :label="$t('出货渠道')">
{{orderData.channelId?getChannelName(orderData.channelId):'/'}} {{orderData.channelName||'/'}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('始发地')" > <el-descriptions-item :label="$t('始发地')" >
{{orderData.logisticsInfoDto?orderData.logisticsInfoDto.startTitleZh:$t('')}} {{orderData.logisticsInfoDto?orderData.logisticsInfoDto.startTitleZh:$t('')}}
......
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