Commit 85be7758 authored by dragondean@qq.com's avatar dragondean@qq.com

打印标签bug和订单详情支持空运价格

parent bf441e68
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
this.$set(this, 'tags', res.data) this.$set(this, 'tags', res.data)
// this.form.start = res.data[0].num // this.form.start = res.data[0].num
// 起始标签为入仓数 + 1 // 起始标签为入仓数 + 1
this.form.start = this.warehouseInNum + 1 this.form.start = (this.warehouseInNum || 0) + 1
this.form.end = res.data[res.data.length-1].num this.form.end = res.data[res.data.length-1].num
}) })
}, },
......
...@@ -404,7 +404,12 @@ ...@@ -404,7 +404,12 @@
</div> </div>
</el-col> </el-col>
<el-col :span="12" v-if="feeDetail.charging != 1"> <el-col :span="12" v-if="feeDetail.charging != 1">
<div>{{$t('清关费')}}</div> <div>
{{$t('清关费')}}
<template v-if="order.transportId == 3 || order.transportId == 4">
{{$t('来自{source}', {source: feeDetail.airClearanceSource + feeDetail.sourceName})}}
</template>
</div>
<div v-for="item in feeDetail.clearance"> <div v-for="item in feeDetail.clearance">
{{item.label}}: {{item.value}} {{item.label}}: {{item.value}}
<template v-if="item.currency"> <template v-if="item.currency">
...@@ -506,7 +511,7 @@ export default { ...@@ -506,7 +511,7 @@ export default {
currencyList: [], currencyList: [],
unitList:[], unitList:[],
feeList: [], feeList: [],
channelName: '/', channel: null,
region: '', region: '',
orderWarehouseIn: null, // 入仓详情 orderWarehouseIn: null, // 入仓详情
showWarehouseInItemId: null, // 当前显示的入仓 showWarehouseInItemId: null, // 当前显示的入仓
...@@ -552,6 +557,10 @@ export default { ...@@ -552,6 +557,10 @@ export default {
return JSON.parse(this.order.departureVO.departure) return JSON.parse(this.order.departureVO.departure)
} }
return {} return {}
},
channelName(){
if(!this.channel) return '/'
return this.$l(this.chanel, 'name')
} }
}, },
watch:{ watch:{
...@@ -687,7 +696,16 @@ export default { ...@@ -687,7 +696,16 @@ export default {
label: this.$t('价格更新时间'), label: this.$t('价格更新时间'),
value: parseTime(row.updateTime) value: parseTime(row.updateTime)
}) })
this.feeDetail = {freight, clearance, charging: row.charging, coupons: row.couponInfoVOList} this.feeDetail = {
freight,
clearance,
charging:
row.charging,
coupons: row.couponInfoVOList,
airClearanceSource: row.airClearanceSource == 1 ? this.$t('商品') : this.$t('渠道'), // 空运清关费来源:1 商品 2 渠道
airClearanceInfo: JSON.parse(row.airClearanceInfo), //空运清关费来源数据详情,
sourceName: row.airClearanceSource == 1 ? this.$l(row, 'prodTitle') : this.channelName
}
}, },
closeFeeDetail(){ closeFeeDetail(){
...@@ -720,7 +738,7 @@ export default { ...@@ -720,7 +738,7 @@ export default {
getChannel(){ getChannel(){
if(!this.order || !this.order.channelId || this.order.transportId == 1 || this.order.transportId == 2) return if(!this.order || !this.order.channelId || this.order.transportId == 1 || this.order.transportId == 2) return
getChannel(this.order.channelId).then(res => { getChannel(this.order.channelId).then(res => {
this.channelName = res.data.nameZh this.channel = res.data
}) })
}, },
loadFeeList(){ loadFeeList(){
......
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