pull/17/head^2
xiaozhiyong 2 years ago
parent f996006dad
commit f4f44eb502
  1. 7
      src/views/order/components/confirmSubmit.vue

@ -146,18 +146,17 @@ export default {
// //
policyPopulation() { policyPopulation() {
let { salePrice, floorPrice, preQuantity, preAmount } = this.controlWindows.addInfo let { salePrice, floorPrice, preQuantity, preAmount } = this.controlWindows.addInfo
// console.log(salePrice, preQuantity, preAmount)
if (salePrice && floorPrice && preQuantity && preAmount) { if (salePrice && floorPrice && preQuantity && preAmount) {
let strategyArr = [ let strategyArr = [
// //
{ salePrice, floorPrice: floorPrice, preQuantity: preQuantity, preAmount, preCostAmount: +floorPrice * +preQuantity }, { salePrice, floorPrice, preQuantity, preAmount, preCostAmount: +floorPrice * +preQuantity },
// //
{ {
salePrice: this.newSalePrice, salePrice: this.newSalePrice,
floorPrice: this.newCostPrice, floorPrice: this.newCostPrice,
preQuantity, preQuantity,
preAmount: +this.newSalePrice * +preQuantity, preAmount: +this.newSalePrice * +preQuantity,
preCostAmount: +floorPrice * +preQuantity preCostAmount: +this.newCostPrice * +preQuantity
}, },
// //
{ {
@ -165,7 +164,7 @@ export default {
floorPrice: this.newCostPrice, floorPrice: this.newCostPrice,
preQuantity: +preAmount / +this.newSalePrice, preQuantity: +preAmount / +this.newSalePrice,
preAmount, preAmount,
preCostAmount: +floorPrice * +preQuantity preCostAmount: +this.newCostPrice * (+preAmount / +this.newSalePrice)
} }
] ]
strategyArr.forEach((item, index) => { strategyArr.forEach((item, index) => {

Loading…
Cancel
Save