更新
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
<template slot-scope="{ row }"> {{ row.floorPrice }}元 </template>
|
||||
</el-table-column>
|
||||
<el-table-column label="成本总金额">
|
||||
<template slot-scope="{ row }"> {{ (row.floorPrice * row.preQuantity) | toNumberFixed }}元 </template>
|
||||
<template slot-scope="{ row }"> {{ row.preCostAmount | toNumberFixed }}元 </template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
@@ -150,20 +150,22 @@ export default {
|
||||
if (salePrice && floorPrice && preQuantity && preAmount) {
|
||||
let strategyArr = [
|
||||
// 原策略
|
||||
{ salePrice: salePrice, floorPrice: floorPrice, preQuantity: preQuantity, preAmount: preAmount },
|
||||
{ salePrice, floorPrice: floorPrice, preQuantity: preQuantity, preAmount, preCostAmount: +floorPrice * +preQuantity },
|
||||
// 以提货量为准
|
||||
{
|
||||
salePrice: this.newSalePrice,
|
||||
floorPrice: this.newCostPrice,
|
||||
preQuantity: preQuantity,
|
||||
preAmount: +this.newSalePrice * +preQuantity
|
||||
preQuantity,
|
||||
preAmount: +this.newSalePrice * +preQuantity,
|
||||
preCostAmount: +floorPrice * +preQuantity
|
||||
},
|
||||
// 以订单金额为准
|
||||
{
|
||||
salePrice: this.newSalePrice,
|
||||
floorPrice: this.newCostPrice,
|
||||
preQuantity: +preAmount / +this.newSalePrice,
|
||||
preAmount: preAmount
|
||||
preAmount,
|
||||
preCostAmount: +floorPrice * +preQuantity
|
||||
}
|
||||
]
|
||||
strategyArr.forEach((item, index) => {
|
||||
|
||||
Reference in New Issue
Block a user