Compare commits

..

No commits in common. '81015fd44f8b4be232eb755b98e10166a91f2429' and 'e45ef1d44ccff9db71eb0a2dbbbe1ce67bf1a526' have entirely different histories.

  1. 21
      src/views/order/components/confirmSubmit.vue

@ -149,23 +149,20 @@ export default {
// console.log(salePrice, preQuantity, preAmount)
if ((salePrice, preQuantity, preAmount)) {
//
Object.assign(this.tableData[0], { salePrice: salePrice.toFixed(2),
floorPrice: floorPrice.toFixed(2),
preQuantity: preQuantity.toFixed(2),
preAmount: preAmount.toFixed(2) })
Object.assign(this.tableData[0], { salePrice, floorPrice, preQuantity, preAmount })
//
Object.assign(this.tableData[1], {
salePrice: (this.newSalePrice).toFixed(2),
floorPrice: (this.newCostPrice).toFixed(2),
preQuantity: preQuantity.toFixed(2),
preAmount: (+this.newSalePrice * +preQuantity).toFixed(2)
salePrice: this.newSalePrice,
floorPrice: this.newCostPrice,
preQuantity,
preAmount: +this.newSalePrice * +preQuantity
})
//
Object.assign(this.tableData[2], {
salePrice: (this.newSalePrice).toFixed(2),
floorPrice: (this.newCostPrice).toFixed(2),
preQuantity: (+preAmount / +this.newSalePrice).toFixed(2),
preAmount: preAmount.toFixed(2)
salePrice: this.newSalePrice,
floorPrice: this.newCostPrice,
preQuantity: +preAmount / +this.newSalePrice,
preAmount
})
this.undergoChanges = true
}

Loading…
Cancel
Save