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 +++++++- src/views/ecg/appointment/AppointmentConfirm.vue | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue index 791bda5..c94ee49 100644 --- a/src/views/ecg/appointment/AppointmentConfirm.vue +++ b/src/views/ecg/appointment/AppointmentConfirm.vue @@ -7,7 +7,7 @@ <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px"> <div v-for="_appointment in appointmentVOList" :key="_appointment.applyNo"> - <CheckItemPanel :appointment="_appointment" /> + <CheckItemPanel :appointment="_appointment" @event_appoint_confirm="onEventAppointConfirm"/> </div> </div> @@ -180,6 +180,10 @@ formRef.value?.resetFields() } +const onEventAppointConfirm = () => { + queryParams.patId = "" +} + /** 鍒濆鍖� **/ onMounted(() => { resetForm() 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