From cfd2621f98e34e348a0e7ca7466464f9886d4eb2 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 12 十二月 2024 19:46:48 +0800 Subject: [PATCH] 工位选择界面 诊室安装room id排序 --- src/views/ecg/appointment/AppointmentConfirm.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue index c94ee49..f6e3664 100644 --- a/src/views/ecg/appointment/AppointmentConfirm.vue +++ b/src/views/ecg/appointment/AppointmentConfirm.vue @@ -6,7 +6,7 @@ </div> <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px"> - <div v-for="_appointment in appointmentVOList" :key="_appointment.applyNo"> + <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 } @@ -181,6 +184,11 @@ } const onEventAppointConfirm = () => { +/* + if (null !== appointmentVOList.value && appointmentVOList.value.length === 1) { + queryParams.patId = "" + } +*/ queryParams.patId = "" } -- Gitblit v1.9.3