From 53aab22013a0092f5d3a8ad4758166fb355896c7 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 19 十一月 2024 18:24:55 +0800 Subject: [PATCH] 手动预约时间段 选择 --- src/views/ecg/appointment/CheckItemPanel.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/views/ecg/appointment/CheckItemPanel.vue b/src/views/ecg/appointment/CheckItemPanel.vue index 89423c0..4353077 100644 --- a/src/views/ecg/appointment/CheckItemPanel.vue +++ b/src/views/ecg/appointment/CheckItemPanel.vue @@ -20,6 +20,7 @@ const checkTypeStore = useCheckTypeStore(); +const checkTypeTimeslotList = ref<QueueSequenceVO>() const bookTimeSlotVip = ref<number>() const _confirmAppointment = async () => { @@ -64,6 +65,12 @@ } } +onMounted( async () => { + const data = await QueueSequenceApi.getTimeslotByCheckType(props.appointment.bookCheckType) + console.info( data ) + checkTypeTimeslotList.value = data +}) + </script> <template> @@ -74,7 +81,7 @@ <div v-if="isCurrentDay(appointment.bookDate)">{{formatTimeslot(appointment.bookTimeslot)}}</div> <el-select v-else v-model="bookTimeSlotVip" placeholder="璇烽�夋嫨棰勭害鏃堕棿娈�"> <el-option - v-for="item in QueueSequenceApi.getTimeslotByCheckType(appointment.bookCheckType)" + v-for="item in checkTypeTimeslotList" :key="item.id" :label="formatTimeslot(item.timeSlot)" :value="item.timeSlot" -- Gitblit v1.9.3