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 @@
-
+
@@ -74,7 +74,7 @@
-
最低折扣比例:{{ staffDiscount }}折
+
最低折扣比例:{{ staffDiscount }}
@@ -174,6 +174,7 @@ async function getStaffDiscountAjax() {
staffId: store.userInfo.staffId
})
staffDiscount.value = res
+ discount.value = res
} catch (error) {
console.log(error);
}
@@ -187,6 +188,11 @@ function discountConfirm() {
showStaffDiscount.value = false
}
+// 关闭结算弹窗
+function drawerClose() {
+ propsDiscount.value = 0
+}
+
// 预打印操作
const printHandle = _.throttle(async function () {
try {
diff --git a/src/views/member/index.vue b/src/views/member/index.vue
index 7d56e3d..b910268 100644
--- a/src/views/member/index.vue
+++ b/src/views/member/index.vue
@@ -83,9 +83,9 @@
- 创建订单
+
- 账户充值
+ 账户充值