From 15ca62967e680151e0d0eea23e3126ec48b7f260 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Tue, 23 Jan 2024 16:02:28 +0800 Subject: [PATCH] bug --- .../views/cashier/NewComponents/homeindex.vue | 66 ++++++++++++++++++- gasStation-uni/pages/index/index.vue | 11 +--- 2 files changed, 68 insertions(+), 9 deletions(-) diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue b/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue index 0d4372997..b0e0d5909 100644 --- a/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue +++ b/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue @@ -446,7 +446,7 @@ ¥{{ +oilActualPay + (+goodsActualPay) }}
- 合计金额:{{ oilAmount + goodsAmount }}元、优惠合计{{ oilDiscount + goodsDiscount + fullReduction + couponAmount }}元 + 合计金额:{{ (oilAmount + goodsAmount).toFixed(2) }}元、优惠合计{{ (oilDiscount + goodsDiscount + fullReduction + couponAmount).toFixed(2) }}元
@@ -751,6 +751,37 @@ 确 定 + +
+
订单统计
+
+
+
{{ getName(oilNameList,item.oilName) }}_{{getName1(gunList,item.gunName)}}
+
¥{{ item.amount }}
+
+
+
{{ item.name }}
+
{{ item.retailPrice }}
+
{{ item.memberPrice }}
+
+
+
合计
+
¥{{ oilAmount+(+goodsAmount) }}
+
+
+
优惠合计
+
¥{{ oilDiscount + goodsDiscount + fullReduction + couponAmount }}
+
+
+
实付款
+
¥{{ (+oilActualPay)+(+goodsActualPay) }}
+
+
+
找零
+
¥{{ seekZero }}
+
+
+
@@ -1085,6 +1116,14 @@ }, }, methods:{ + async printLocally() { + const printHTML = document.querySelector('#reportSuccess').innerHTML + // 将打印的区域赋值,进行打印 + window.document.body.innerHTML = printHTML + window.print() // 调用window打印方法 + window.location.reload() // 打印完成后重新加载页面 + + }, clear(){ this.dialogVisiblej = false this.seekZero = 0 @@ -2672,6 +2711,7 @@ _this.oilPreferentialData[i].oilPreferential.cardFavorableId = _this.cardFavorableId usePaymentActive(_this.oilPreferentialData[i].oilPreferential).then(res => {}) } + _this.printLocally() return; } } @@ -2682,6 +2722,7 @@ _this.seekZero = 0 _this.amount = 0 _this.resetting1() + _this.printLocally() return; } } @@ -2801,6 +2842,7 @@ _this.isQuery = false; _this.amount = 0 + _this.printLocally() _this.loading = false; if (response.data.oilOrderAmount>0){ for (let i =0;i<_this.oilPreferentialData.length;i++){ @@ -3276,6 +3318,14 @@ /*color: white;*/ } + .box-center{ + width: 100%; + //height: 10px; + background-color: white; + margin: 10px auto; + box-sizing: border-box; + overflow: auto; + } .center-left-bottom{ width: 100%; background-color: white; @@ -3315,6 +3365,20 @@ margin: 15px 10px ; } + .input-box{ + width: 100%; + display: flex; + align-items: center; + justify-content: space-between; + font-size: 14px; + margin: 5px 0px; + } + .box-title{ + font-size: 18px; + text-align: center; + align-items: center; + margin-top: 15px; + } .bottom-price{ font-size: 26px; font-weight: bold; diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue index 3045d2098..0059c2024 100644 --- a/gasStation-uni/pages/index/index.vue +++ b/gasStation-uni/pages/index/index.vue @@ -86,9 +86,9 @@ {{store.name}}{{store.description ? "("+store.description+")" : ""}} - + @@ -216,9 +216,6 @@ import { callWithErrorHandling } from "vue" uni.setStorageSync("inviteStaffId", staffId) this.storeId = uni.getStorageSync("storeId") this.staffId = uni.getStorageSync("inviteStaffId") - uni.showLoading({ - title: uni.getStorageSync("storeId") + "++" + uni.getStorageSync("inviteStaffId") + q - }) this.getUserAuthority(); this.getOilType(); } else { @@ -404,9 +401,7 @@ import { callWithErrorHandling } from "vue" }) } }).catch((res) => { - uni.showLoading({ - title: res + "---" + 1 - }) + }) }, // 获取当前位置