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 ++++++++- src/api/ecg/queuesequence/index.ts | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/api/ecg/queuesequence/index.ts b/src/api/ecg/queuesequence/index.ts index 0ae1be3..4490d6d 100644 --- a/src/api/ecg/queuesequence/index.ts +++ b/src/api/ecg/queuesequence/index.ts @@ -16,7 +16,7 @@ // 鑾峰緱褰撳ぉ鏈弧鐨刅IP鏃堕棿娈� getTimeslotByCheckType: async (checkType: number) => { - return await request.get({ url: `/ecg/queue-sequence/get-timeslot-by-checktype`, checkType }) + return await request.get({ url: `/ecg/queue-sequence/get-timeslot-by-checktype?checkType=` + checkType }) } } 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