Commit d78c98a8 authored by dragondean@qq.com's avatar dragondean@qq.com

完善批量加价及其审核

parent 59042b75
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</div> </div>
<el-form label-position="left" label-width="100px"> <el-form label-position="left" label-width="100px">
<el-form-item :label="$t('抄送')"> <el-form-item :label="$t('抄送')">
<el-select v-model="valueSync" multiple :placeholder="$t('请选择抄送人')" style="width:100%" filterable > <el-select v-model="valueSync" multiple :placeholder="$t('请选择抄送人')" style="width:100%" filterable :disabled="disabled" >
<el-option <el-option
v-for="item in users" v-for="item in users"
:key="item.id" :key="item.id"
...@@ -45,7 +45,8 @@ export default { ...@@ -45,7 +45,8 @@ export default {
taskData: { // 任务实例的数据。传递时,可展示 UserTask 审核相关的信息 taskData: { // 任务实例的数据。传递时,可展示 UserTask 审核相关的信息
type: Array, type: Array,
default: () => [], default: () => [],
} },
disabled: Boolean
}, },
data(){ data(){
return { return {
...@@ -87,4 +88,4 @@ export default { ...@@ -87,4 +88,4 @@ export default {
.workflow ::v-deep .my-process-designer{ .workflow ::v-deep .my-process-designer{
height: auto; height: auto;
} }
</style> </style>
\ No newline at end of file
This diff is collapsed.
...@@ -36,23 +36,22 @@ ...@@ -36,23 +36,22 @@
<template v-slot="{row}"> <template v-slot="{row}">
<section> <section>
<div v-for="(item, index) in row.goodsList" :key="index"> <div v-for="(item, index) in row.goodsList" :key="index">
<div>{{index+1}}{{item.prodTitleZh}}</div> <div>{{index+1}}{{$l(item, 'prodTitle')}}</div>
<div>{{index+1}}{{item.prodTitleEn}}</div>
</div> </div>
</section> </section>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('收费箱数')" align="center" prop="num"></el-table-column> <el-table-column :label="$t('收费箱数')" align="center" prop="num"></el-table-column>
<el-table-colume :label="$t('收费体积')" align="center" prop="chargeVolume"></el-table-colume> <el-table-column :label="$t('收费体积')" align="center" prop="chargeVolume"></el-table-column>
<el-table-column :label="$t('收费重量')" align="center" prop="chargeWeight"></el-table-column> <el-table-column :label="$t('收费重量')" align="center" prop="chargeWeight"></el-table-column>
<el-table-column :label="$t('原成交单价')" align="center"> <el-table-column :label="$t('加价金额')" align="center">
<template> <template slot-scope="{row}" v-if="details">
// TODO <div>
</template> {{$t('运费')}}{{details.freightFee || 0}}{{ currencyMap[details.freightCurrencyId]}}/{{unitMap[details.freightUnitId]}}
</el-table-column> </div>
<el-table-column :label="$t('新成交单价')" align="center"> <div>
<template> {{$t('清关费')}}{{details.clearanceFee || 0}}{{ currencyMap[details.clearanceCurrencyId]}}/{{unitMap[details.clearanceUnitId]}}
// TODO </div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -66,6 +65,8 @@ import { getCabinetPage } from "@/api/ecw/cabinet"; ...@@ -66,6 +65,8 @@ import { getCabinetPage } from "@/api/ecw/cabinet";
import { getChannelList } from "@/api/ecw/channel"; import { getChannelList } from "@/api/ecw/channel";
import Decimal from "decimal.js"; import Decimal from "decimal.js";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import {getUnitList} from "@/api/ecw/unit";
import {getCurrencyList} from "@/api/ecw/currency";
/** /**
* 批量加价审核详情 * 批量加价审核详情
...@@ -81,6 +82,8 @@ export default { ...@@ -81,6 +82,8 @@ export default {
}, },
data() { data() {
return { return {
unitList:[],
currencyList:[],
approvalInfo: {}, approvalInfo: {},
boxBackVO: {}, boxBackVO: {},
loadDetail: {}, loadDetail: {},
...@@ -97,6 +100,8 @@ export default { ...@@ -97,6 +100,8 @@ export default {
}; };
}, },
created() { created() {
getUnitList().then(res => this.unitList = res.data)
getCurrencyList().then(res => this.currencyList = res.data)
getChannelList().then((res) => (this.channelList = res.data)); getChannelList().then((res) => (this.channelList = res.data));
}, },
methods: { methods: {
...@@ -169,6 +174,24 @@ export default { ...@@ -169,6 +174,24 @@ export default {
return getSeaStatus(shippingVO) >= 182 ? true : false; return getSeaStatus(shippingVO) >= 182 ? true : false;
}; };
}, },
details(){
if(!this.approvalInfo) return null
return JSON.parse(this.approvalInfo?.details)
},
currencyMap(){
let map = {}
this.currencyList.forEach(item => {
map[item.id] = this.$l(item, 'title')
})
return map
},
unitMap(){
let map = {}
this.unitList.forEach(item => {
map[item.id] = this.$l(item, 'title')
})
return map
},
}, },
}; };
</script> </script>
......
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