From c771431b0402393fb432a2a8536768086c9fd09b Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期二, 26 十一月 2024 15:06:00 +0800
Subject: [PATCH] 预约确认后清除

---
 src/views/ecg/appointment/CheckItemPanel.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/views/ecg/appointment/CheckItemPanel.vue b/src/views/ecg/appointment/CheckItemPanel.vue
index 366cf57..c625c59 100644
--- a/src/views/ecg/appointment/CheckItemPanel.vue
+++ b/src/views/ecg/appointment/CheckItemPanel.vue
@@ -21,6 +21,8 @@
   }
 })
 
+const emit = defineEmits(['event_appoint_confirm']) // 瀹氫箟 success 浜嬩欢锛岀敤浜庢搷浣滄垚鍔熷悗鐨勫洖璋�
+
 const checkTypeStore = useCheckTypeStore();
 
 const checkTypeTimeslotList = ref<QueueSequenceVO>()
@@ -46,6 +48,8 @@
           }
           const data = await AppointmentApi.confirmAppointmentVip(tempAppointment)
           bookSeqNum.value = data
+          // 鍙戦�佹搷浣滄垚鍔熺殑浜嬩欢
+          emit('event_appoint_confirm')
           _printNote()
           ElNotification({
             title: '娓╅Θ鎻愮ず',
@@ -63,11 +67,13 @@
   } else {
     const data = await AppointmentApi.confirmAppointment(props.appointment)
     bookSeqNum.value = data
+    // 鍙戦�佹搷浣滄垚鍔熺殑浜嬩欢
+    emit('event_appoint_confirm')
     _printNote()
     ElNotification({
       title: '娓╅Θ鎻愮ず',
       message: data,
-      type: 'warning'
+      type: 'info'
     })
   }
 }

--
Gitblit v1.9.3