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() {
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) => {

Loading…
Cancel
Save