diff --git a/src/views/order/components/confirmSubmit.vue b/src/views/order/components/confirmSubmit.vue index 0427a35..be151b3 100644 --- a/src/views/order/components/confirmSubmit.vue +++ b/src/views/order/components/confirmSubmit.vue @@ -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) => {