Commit 8a19e1b8 authored by Marcus's avatar Marcus

特价组件 费用单位

parent 90a00e55
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
<el-table-column <el-table-column
prop="prodTitleZh" prop="prodTitleZh"
label="品名"> label="品名">
<template v-slot="{row}">
{{ row.prodTitleZh }}/{{ row.prodTitleEn }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="prodAttrIds" prop="prodAttrIds"
...@@ -20,6 +23,12 @@ ...@@ -20,6 +23,12 @@
<el-table-column <el-table-column
prop="address" prop="address"
label="入库货物属性"> label="入库货物属性">
<template v-slot="{row}">
品牌: <br>
箱数:{{ row.num }}<br>
体积:{{ row.volume }}<br>
重量:{{ row.weight }}Kg
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="address"
...@@ -28,23 +37,33 @@ ...@@ -28,23 +37,33 @@
<el-table-column <el-table-column
label="原价"> label="原价">
<template v-slot="{row}"> <template v-slot="{row}">
运费:{{ row.originalSeaFreight }}美元/立方米 清关费:{{ row.originalClearanceFreight }}奈拉/立方米 运费:{{ row.originalSeaFreight }} {{ currentMap[row.seaFreightCurrency] }}/{{ unitMap[row.seaFreightVolume] }}
<br>
清关费:{{ row.originalClearanceFreight }} {{ currentMap[row.clearanceFreightCurrency] }}/{{ unitMap[row.clearanceFreightVolume] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="address"
label="成本价"> label="成本价">
<template v-slot="{row}"> <template v-slot="{row}">
运费:{{ row.seaFreight }}美元/立方米 清关费:{{ row.clearanceFreight }}奈拉/立方米 运费:{{ row.seaFreight }} {{ currentMap[row.seaFreightCurrency] }}/{{ unitMap[row.seaFreightVolume] }}
<br>
清关费:{{ row.clearanceFreight }} {{ currentMap[row.clearanceFreightCurrency] }}/{{ unitMap[row.clearanceFreightVolume] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="address"
label="销售价"> label="销售价">
<template v-slot="{row}"> <template v-slot="{row}">
运费:{{ row.seaFreight }}美元/立方米 清关费:{{ row.clearanceFreight }}奈拉/立方米 运费:{{ row.seaFreight }} {{ currentMap[row.seaFreightCurrency] }}/{{ unitMap[row.seaFreightVolume] }}
<br>
清关费:{{ row.clearanceFreight }} {{ currentMap[row.clearanceFreightCurrency] }}/{{ unitMap[row.clearanceFreightVolume] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="address"
label="审核状态">
</el-table-column>
<el-table-column <el-table-column
prop="address" prop="address"
label="操作"> label="操作">
...@@ -67,19 +86,21 @@ ...@@ -67,19 +86,21 @@
</template> </template>
<script> <script>
import {getOfferLogPage} from "@/api/ecw/offerLog"; import {DICT_TYPE, getDictDataLabel} from '@/utils/dict'
import {DICT_TYPE} from '@/utils/dict'
import {getOffer} from '@/api/ecw/offer' import {getOffer} from '@/api/ecw/offer'
import {getUnitList} from "@/api/ecw/unit"
import {getCurrencyList} from "@/api/ecw/currency"
export default { export default {
name: "OfferSpecial", name: "OfferSpecial",
components: { components: {
}, },
props: { props: {
offerId: String offerId: String
}, },
data() { data() {
return { return {
DICT_TYPE,
getDictDataLabel,
// 遮罩层 // 遮罩层
loading: true, loading: true,
list: [], list: [],
...@@ -95,7 +116,9 @@ export default { ...@@ -95,7 +116,9 @@ export default {
offer: { offer: {
number: '', number: '',
offerProdRespVOList: [] offerProdRespVOList: []
} },
unitList:[],
currencyList:[],
}; };
}, },
created() { created() {
...@@ -103,6 +126,8 @@ export default { ...@@ -103,6 +126,8 @@ export default {
this.params.offerId = this.offerId this.params.offerId = this.offerId
this.getOffer() this.getOffer()
} }
getUnitList().then(res => this.unitList = res.data)
getCurrencyList().then(res => this.currencyList = res.data)
}, },
methods: { methods: {
getOffer(){ getOffer(){
...@@ -112,7 +137,24 @@ export default { ...@@ -112,7 +137,24 @@ export default {
this.offer = response.data this.offer = response.data
}) })
} }
},
computed: {
currentMap(){
let map = {}
this.currencyList.forEach(item => {
map[item.id] = item.titleZh
})
return map
},
unitMap(){
let map = {}
this.unitList.forEach(item => {
map[item.id] = item.titleZh
})
return map
}
} }
}; };
</script> </script>
<style> <style>
......
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