diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue b/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue index 8f680951f..867dad5ed 100644 --- a/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue +++ b/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue @@ -1417,9 +1417,9 @@ export default { //商品订单金额 this.payForm.goodsAmount = this.getGoodsNum || 0 //油品实付金额 - this.payForm.oilActualPay = this.oilGunClearing.amount ? this.oilGunClearing.getAmount-this.disOil : 0 + this.payForm.oilActualPay = (this.oilGunClearing.getAmount || 0)-(this.disOil || 0) //商品实付金额 - this.payForm.goodsActualPay = this.getGoodsNum ? this.getGoodsNum-this.disGoods : 0 + this.payForm.goodsActualPay = (this.getGoodsNum || 0) - (this.disGoods || 0) //油枪id this.payForm.oilGunId = this.oilGunClearing.id //活动营销优惠金额 @@ -1449,7 +1449,7 @@ export default { //购买商品的总数量 计算属性 this.payForm.goodsNum = this.getGoodsListNum //油品 + 商品 的实付总额 - this.payForm.allAmount = (this.oilGunClearing.getAmount-this.disOil) + (this.getGoodsNum-this.disGoods) + this.payForm.allAmount = this.realAmount this.payForm.paymentType = this.payType @@ -1963,7 +1963,7 @@ export default { //购买商品的总数量 计算属性 this.payForm.goodsNum = this.getGoodsListNum //油品 + 商品 的实付总额 - this.payForm.allAmount = (this.oilGunClearing.getAmount-this.disOil) + (this.getGoodsNum-this.disGoods) + this.payForm.allAmount = this.realAmount