From 877bc44463bdf1ce01b93d6c98f82fd9506d34fe Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 31 三月 2025 10:38:27 +0800
Subject: [PATCH] just comment

---
 src/views/ecg/appointment/AppointmentConfirm.vue |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue
index 3dd9892..f6e3664 100644
--- a/src/views/ecg/appointment/AppointmentConfirm.vue
+++ b/src/views/ecg/appointment/AppointmentConfirm.vue
@@ -6,8 +6,8 @@
   </div>
 
   <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" />
+    <div v-for="(_appointment, index) in appointmentVOList" :key="index">
+      <CheckItemPanel  :appointment="_appointment"  @event_appoint_confirm="onEventAppointConfirm"/>
     </div>
   </div>
 
@@ -130,14 +130,17 @@
 const searchBookInfo = async () => {
   resetForm()
 
-  if (null === queryParams.patId || "" === queryParams.patId)
+  if (null === queryParams.patId || "" === queryParams.patId.trim())
     return
 
-  const data = await AppointmentApi.queryAndCreateAppointmentByPatId(queryParams.patId) // 瀵瑰簲鏁版嵁搴撲腑 pat_id
+  const _patId = queryParams.patId.trim()
+  console.warn("===" + _patId + "===")
+
+  const data = await AppointmentApi.queryAndCreateAppointmentByPatId(_patId) // 瀵瑰簲鏁版嵁搴撲腑 pat_id
   console.info( data )
-  appointmentVOList.value = data
   if (null !== data && data.length > 0) {
     formData.value = data[0]
+    appointmentVOList.value = data
     console.info( formData.value )
     return
   }
@@ -151,6 +154,7 @@
 
 /** 閲嶇疆琛ㄥ崟 */
 const resetForm = () => {
+  appointmentVOList.value.length=0;
   formData.value = {
     id: 0,
     applyNo: "",
@@ -174,10 +178,20 @@
     bookTimeslot: 9301030,
     bookCheckType: checkTypeStore.getCheckTypeName(100),
     paid: 0,
+    bookSeqNum: 0
   }
   formRef.value?.resetFields()
 }
 
+const onEventAppointConfirm = () => {
+/*
+  if (null !== appointmentVOList.value && appointmentVOList.value.length === 1) {
+    queryParams.patId = ""
+  }
+*/
+  queryParams.patId = ""
+}
+
 /** 鍒濆鍖� **/
 onMounted(() => {
   resetForm()

--
Gitblit v1.9.3