From 48e0da0a92272f6c7ac2d5fbf45e2e84cf3e8f76 Mon Sep 17 00:00:00 2001 From: zhaohengkun Date: Fri, 18 Oct 2024 10:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E9=93=B6=E5=8F=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/cashier/NewComponents/newHome.vue | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue b/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue index 3d44d1809..8f680951f 100644 --- a/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue +++ b/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue @@ -1415,11 +1415,11 @@ export default { //油品订单金额 this.payForm.oilAmount = this.oilGunClearing.amount || 0 //商品订单金额 - this.payForm.goodsAmount = this.getGoodsNum + this.payForm.goodsAmount = this.getGoodsNum || 0 //油品实付金额 - this.payForm.oilActualPay = this.oilGunClearing.amount || 0 + this.payForm.oilActualPay = this.oilGunClearing.amount ? this.oilGunClearing.getAmount-this.disOil : 0 //商品实付金额 - this.payForm.goodsActualPay = this.getGoodsNum + this.payForm.goodsActualPay = this.getGoodsNum ? this.getGoodsNum-this.disGoods : 0 //油枪id this.payForm.oilGunId = this.oilGunClearing.id //活动营销优惠金额 @@ -1433,9 +1433,9 @@ export default { //付款用户 this.payForm.payUser = this.chooseVipUser.mobile //油品优惠金额 - this.payForm.oilDiscount = 0; + this.payForm.oilDiscount = this.disOil; //商品优惠金额 - this.payForm.goodsDiscount = 0; + this.payForm.goodsDiscount = this.disGoods; //会员消费金额 (储值卡需要减少的金额) this.payForm.consumeAmount = this.realAmount; @@ -1449,7 +1449,7 @@ export default { //购买商品的总数量 计算属性 this.payForm.goodsNum = this.getGoodsListNum //油品 + 商品 的实付总额 - this.payForm.allAmount = this.realAmount + this.payForm.allAmount = (this.oilGunClearing.getAmount-this.disOil) + (this.getGoodsNum-this.disGoods) this.payForm.paymentType = this.payType @@ -1929,11 +1929,11 @@ export default { //油品订单金额 this.payForm.oilAmount = this.oilGunClearing.amount || 0 //商品订单金额 - this.payForm.goodsAmount = this.getGoodsNum + this.payForm.goodsAmount = this.getGoodsNum || 0 //油品实付金额 - this.payForm.oilActualPay = this.oilGunClearing.amount || 0 + this.payForm.oilActualPay = this.oilGunClearing.amount ? this.oilGunClearing.getAmount-this.disOil : 0 //商品实付金额 - this.payForm.goodsActualPay = this.getGoodsNum + this.payForm.goodsActualPay = this.getGoodsNum ? this.getGoodsNum-this.disGoods : 0 //油枪id this.payForm.oilGunId = this.oilGunClearing.id //活动营销优惠金额 @@ -1947,9 +1947,9 @@ export default { //付款用户 this.payForm.payUser = this.chooseVipUser.mobile //油品优惠金额 - this.payForm.oilDiscount = 0; + this.payForm.oilDiscount = this.disOil; //商品优惠金额 - this.payForm.goodsDiscount = 0; + this.payForm.goodsDiscount = this.disGoods; //会员消费金额 (储值卡需要减少的金额) this.payForm.consumeAmount = this.realAmount; @@ -1963,7 +1963,8 @@ export default { //购买商品的总数量 计算属性 this.payForm.goodsNum = this.getGoodsListNum //油品 + 商品 的实付总额 - this.payForm.allAmount = this.realAmount + this.payForm.allAmount = (this.oilGunClearing.getAmount-this.disOil) + (this.getGoodsNum-this.disGoods) + this.payForm.paymentType = this.payType