eight
2024-11-19 53aab22013a0092f5d3a8ad4758166fb355896c7
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"