eight
2024-11-19 53aab22013a0092f5d3a8ad4758166fb355896c7
手动预约时间段 选择
已修改2个文件
11 ■■■■ 文件已修改
src/api/ecg/queuesequence/index.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/appointment/CheckItemPanel.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/ecg/queuesequence/index.ts
@@ -16,7 +16,7 @@
  // 获得当天未满的VIP时间段
  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 })
  }
}
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"