From 3047fe0404b013ae81427d0547bbf15ca67297c0 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Wed, 28 Aug 2024 09:53:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=EF=BC=8C?= =?UTF-8?q?=E6=8A=98=E6=89=A3=E6=89=93=E5=8D=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/lodop/receiptPrint.js | 23 +++++++----- src/components/payCard/payCard.vue | 10 ++--- src/views/home/components/settleAccount.vue | 10 ++++- src/views/member/index.vue | 4 +- src/views/order/components/add.vue | 15 ++++++-- src/views/order/index.vue | 30 +++++++++++---- src/views/table/components/tableInfo.vue | 41 +++++++++++---------- 8 files changed, 85 insertions(+), 50 deletions(-) diff --git a/package.json b/package.json index 4a353ee..6ce7da9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vite-electron", "private": true, - "version": "1.4.17", + "version": "1.4.18", "main": "dist-electron/main.js", "scripts": { "dev": "chcp 65001 && vite", diff --git a/src/components/lodop/receiptPrint.js b/src/components/lodop/receiptPrint.js index adf7a7d..95eab94 100644 --- a/src/components/lodop/receiptPrint.js +++ b/src/components/lodop/receiptPrint.js @@ -75,17 +75,20 @@ export default (data) => {

-
- 应收 - ¥${data.discountAmount} +
+ 原价 + ${data.amount}
-
- 共计: - ¥${data.amount} - 优惠: - ¥${formatDecimal(data.amount - data.discountAmount)}(${ - data.discount - }折) +
+ 折扣 + -${formatDecimal(data.amount - data.discountAmount)} +
+
+
+
+
+ 实付 + ¥${data.discountAmount}

diff --git a/src/components/payCard/payCard.vue b/src/components/payCard/payCard.vue index 375ad0b..cde1e35 100644 --- a/src/components/payCard/payCard.vue +++ b/src/components/payCard/payCard.vue @@ -6,10 +6,10 @@ {{ money }}
- 共计:¥{{ props.amount }} + 原价:¥{{ formatDecimal(props.amount) }} 优惠:¥{{ formatDecimal(props.amount - money) }} - ({{ formatDecimal(props.discount * 10, 1, true) }}折) - + 折扣:{{ formatDecimal(props.discount * 10, 1, true) }}折 + @@ -124,7 +124,7 @@ const money = ref('0') const scanModalRef = ref(null) watch(props, (value) => { - money.value = `${props.amount}` + money.value = `${formatDecimal(props.amount)}` if (props.discount > 0) { money.value = `${formatDecimal(props.amount * props.discount)}` } @@ -334,7 +334,7 @@ function cancelDiscount() { } onMounted(() => { - money.value = `${props.amount}` + money.value = `${formatDecimal(props.amount)}` queryPayTypeAjax() }) diff --git a/src/views/home/components/settleAccount.vue b/src/views/home/components/settleAccount.vue index c49b6cc..5290e06 100644 --- a/src/views/home/components/settleAccount.vue +++ b/src/views/home/components/settleAccount.vue @@ -1,6 +1,6 @@