炼厂下单确认

pull/13/head
KongDuo 2 years ago
parent 0c88d0fa1d
commit 81015fd44f
  1. 21
      src/views/order/components/confirmSubmit.vue

@ -149,20 +149,23 @@ 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, floorPrice, 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[1], { Object.assign(this.tableData[1], {
salePrice: this.newSalePrice, salePrice: (this.newSalePrice).toFixed(2),
floorPrice: this.newCostPrice, floorPrice: (this.newCostPrice).toFixed(2),
preQuantity, preQuantity: preQuantity.toFixed(2),
preAmount: +this.newSalePrice * +preQuantity preAmount: (+this.newSalePrice * +preQuantity).toFixed(2)
}) })
// //
Object.assign(this.tableData[2], { Object.assign(this.tableData[2], {
salePrice: this.newSalePrice, salePrice: (this.newSalePrice).toFixed(2),
floorPrice: this.newCostPrice, floorPrice: (this.newCostPrice).toFixed(2),
preQuantity: +preAmount / +this.newSalePrice, preQuantity: (+preAmount / +this.newSalePrice).toFixed(2),
preAmount preAmount: preAmount.toFixed(2)
}) })
this.undergoChanges = true this.undergoChanges = true
} }

Loading…
Cancel
Save