Compare commits

..

No commits in common. '896182c58d2a7249c4f756e539e96bdbde3191bc' and '0c88d0fa1ded81a985556160131f74e0ff1ca929' have entirely different histories.

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

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

Loading…
Cancel
Save