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

合单出货渠道

parent f24d1446
...@@ -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)||'/'}} {{airCompanyName||'/'}}
</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)||'/'}} {{shipCompanyName||'/'}}
</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,8 @@ ...@@ -419,6 +419,8 @@
customerSource: getDictDatas(DICT_TYPE.CUSTOMER_SOURCE), customerSource: getDictDatas(DICT_TYPE.CUSTOMER_SOURCE),
couponAvailableGroupDtoList: [], // 可用优惠 couponAvailableGroupDtoList: [], // 可用优惠
couponTotalAmountList: [], // 优惠总额 couponTotalAmountList: [], // 优惠总额
airCompanyName:'',
shipCompanyName:''
}; };
}, },
computed:{ computed:{
...@@ -611,16 +613,16 @@ ...@@ -611,16 +613,16 @@
that.orderData = response.data; that.orderData = response.data;
}); });
}, },
getSupplierData(id){ getSupplierData(id,type){
var labelname = '' getSupplier(id).then(res=>{
if(id){ if(res.data){
getSupplier(id).then(res=>{ if(type==1){
if(res.data){ this.airCompanyName = res.data.companyZh
labelname = res.data.companyZh }else{
this.shipCompanyName = res.data.companyZh
} }
}) }
} })
return labelname
}, },
getProductListWithDefaultValue(){ getProductListWithDefaultValue(){
let arr = [] let arr = []
...@@ -673,6 +675,12 @@ ...@@ -673,6 +675,12 @@
if(that.list.channelId){ if(that.list.channelId){
that.getChannelData() 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() that.calculationPrice()
// if(that.list.orderId){ // if(that.list.orderId){
// that.getOrderData(that.list.orderId) // that.getOrderData(that.list.orderId)
......
...@@ -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