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 @@