| | |
| | | |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | |
| | | const checkTypeTimeslotList = ref<QueueSequenceVO>() |
| | | const bookTimeSlotVip = ref<number>() |
| | | |
| | | const _confirmAppointment = async () => { |
| | |
| | | } |
| | | } |
| | | |
| | | onMounted( async () => { |
| | | const data = await QueueSequenceApi.getTimeslotByCheckType(props.appointment.bookCheckType) |
| | | console.info( data ) |
| | | checkTypeTimeslotList.value = data |
| | | }) |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | <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" |