|
|
@@ -32,11 +32,6 @@
|
|
|
<span>{{ row.SELL_PRICE }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="$t('shop.productBV')" align="center" prop="PRICE_PV">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <span>{{ row.PRICE_PV }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column :label="$t('shop.taxRate')" align="center" prop="TAX_RATE">
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.TAX_RATE / 100 }}</span>
|
|
|
@@ -67,7 +62,6 @@
|
|
|
</div>
|
|
|
<div class="flex data" style="float: right; display: inline-block; line-height: 35px; font-size: 14px; margin-top: 20px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 15px;">
|
|
|
<div style="margin-right: 2rem; display: inline-block;">{{ $t('shop.productPrice') }}:{{ $t('currency.sign') }} {{ sellPriceSum }}</div>
|
|
|
- <div style="margin-right: 2rem; display: inline-block;">{{ $t('shop.productBV') }}:{{ $t('currency.sign') }} {{ pricePvSum }}</div>
|
|
|
<div style="display: inline-block;">{{ $t('shop.taxAmount') }}:{{ $t('currency.sign') }} {{ taxSum }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -115,7 +109,6 @@ export default {
|
|
|
tool: tool,
|
|
|
multipleSelection: [],
|
|
|
sellPriceSum: 0.00,
|
|
|
- pricePvSum: 0.00,
|
|
|
taxSum: 0.00,
|
|
|
storeNums: [],
|
|
|
display: false,
|
|
|
@@ -164,7 +157,7 @@ export default {
|
|
|
let pageList = this.multipleSelection[this.currentPage]
|
|
|
let selectStatus = false
|
|
|
for (let i in pageList) {
|
|
|
- if( pageList[i].ID === row.ID ) {
|
|
|
+ if (pageList[i].ID === row.ID) {
|
|
|
pageList[i].chose_num = val
|
|
|
selectStatus = true
|
|
|
break
|
|
|
@@ -182,12 +175,10 @@ export default {
|
|
|
let accumulatorSellPrice = 0, accumulatorPricePv = 0, accumulatorTax = 0
|
|
|
this.multipleSelection.forEach(item => {
|
|
|
item.forEach(accumulator => { accumulatorSellPrice += accumulator.SELL_PRICE * accumulator.chose_num * accumulator.DISCOUNT / 100; })
|
|
|
- item.forEach(accumulator => { accumulatorPricePv += Number(accumulator.PRICE_PV) * Number(accumulator.chose_num) * (Number(accumulator.DISCOUNT) / 100); })
|
|
|
item.forEach(accumulator => { accumulatorTax += tool.calculateTax(Number(accumulator.SELL_PRICE), Number(accumulator.TAX_RATE), Number(accumulator.chose_num)); })
|
|
|
})
|
|
|
|
|
|
this.sellPriceSum = tool.formatPrice(accumulatorSellPrice)
|
|
|
- this.pricePvSum = tool.formatPrice(accumulatorPricePv)
|
|
|
this.taxSum = tool.formatPrice(accumulatorTax)
|
|
|
|
|
|
this.display = true
|
|
|
@@ -221,7 +212,6 @@ export default {
|
|
|
watch: {
|
|
|
// 监听多选按钮,判断结算按钮是否可用
|
|
|
multipleSelection: function (modern) {
|
|
|
- console.log(modern, modern.length)
|
|
|
this.$data.display = modern.length > 0
|
|
|
},
|
|
|
},
|