From 41d9daf134e8f096eca81278967a2683f81ae03c Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 08 十二月 2025 10:39:06 +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