更新
This commit is contained in:
@@ -146,18 +146,17 @@ export default {
|
||||
// 策略选择
|
||||
policyPopulation() {
|
||||
let { salePrice, floorPrice, preQuantity, preAmount } = this.controlWindows.addInfo
|
||||
// console.log(salePrice, preQuantity, preAmount)
|
||||
if (salePrice && floorPrice && preQuantity && preAmount) {
|
||||
let strategyArr = [
|
||||
// 原策略
|
||||
{ salePrice, floorPrice: floorPrice, preQuantity: preQuantity, preAmount, preCostAmount: +floorPrice * +preQuantity },
|
||||
{ salePrice, floorPrice, preQuantity, preAmount, preCostAmount: +floorPrice * +preQuantity },
|
||||
// 以提货量为准
|
||||
{
|
||||
salePrice: this.newSalePrice,
|
||||
floorPrice: this.newCostPrice,
|
||||
preQuantity,
|
||||
preAmount: +this.newSalePrice * +preQuantity,
|
||||
preCostAmount: +floorPrice * +preQuantity
|
||||
preCostAmount: +this.newCostPrice * +preQuantity
|
||||
},
|
||||
// 以订单金额为准
|
||||
{
|
||||
@@ -165,7 +164,7 @@ export default {
|
||||
floorPrice: this.newCostPrice,
|
||||
preQuantity: +preAmount / +this.newSalePrice,
|
||||
preAmount,
|
||||
preCostAmount: +floorPrice * +preQuantity
|
||||
preCostAmount: +this.newCostPrice * (+preAmount / +this.newSalePrice)
|
||||
}
|
||||
]
|
||||
strategyArr.forEach((item, index) => {
|
||||
|
||||
Reference in New Issue
Block a user