From 336441bd3d811427f957654f12936c4cab9b4c1a Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 28 十一月 2025 16:42:00 +0800
Subject: [PATCH] fix: bug
---
src/views/FinanceManage/components/CustomerRechargeDialog.vue | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/views/FinanceManage/components/CustomerRechargeDialog.vue b/src/views/FinanceManage/components/CustomerRechargeDialog.vue
index 69b8171..d1d2839 100644
--- a/src/views/FinanceManage/components/CustomerRechargeDialog.vue
+++ b/src/views/FinanceManage/components/CustomerRechargeDialog.vue
@@ -145,14 +145,18 @@
const handleConfirm = _.debounce(
() => {
- if (!dialogForm.value) return;
- dialogForm.value.validate((valid) => {
- if (valid) {
- emit('onConfirm');
- } else {
- return;
- }
- });
+ if (form.value.isDetail) {
+ emit('onCancel');
+ } else {
+ if (!dialogForm.value) return;
+ dialogForm.value.validate((valid) => {
+ if (valid) {
+ emit('onConfirm');
+ } else {
+ return;
+ }
+ });
+ }
},
1000,
{
--
Gitblit v1.9.1