From 22a9a5fe525fb893ecaa8d4a8bfb65169ce02fc4 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 11 四月 2025 14:52:27 +0800
Subject: [PATCH] update & refactor
---
src/views/ecg/appointment/AppointmentConfirm.vue | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue
index 6d11df4..9ddf270 100644
--- a/src/views/ecg/appointment/AppointmentConfirm.vue
+++ b/src/views/ecg/appointment/AppointmentConfirm.vue
@@ -122,7 +122,7 @@
bookTime: new Date(),
bookDate: new Date(),
bookTimeslot: 9301030,
- bookCheckType: checkTypeStore.getCheckTypeName(100),
+ bookCheckType: getCheckTypeName(100),
paid: 0,
})
const formRef = ref() // 琛ㄥ崟 Ref
@@ -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
}
@@ -173,7 +176,7 @@
bookTime: new Date(),
bookDate: new Date(),
bookTimeslot: 9301030,
- bookCheckType: checkTypeStore.getCheckTypeName(100),
+ bookCheckType: getCheckTypeName(100),
paid: 0,
bookSeqNum: 0
}
--
Gitblit v1.9.3