| | |
| | | import {isCurrentDay} from "@/utils/dateUtil"; |
| | | import {QueueSequenceApi, QueueSequenceVO} from "@/api/ecg/queuesequence"; |
| | | import {formatDate} from "../../../utils/formatTime"; |
| | | import { cloneDeep } from 'lodash-es' |
| | | |
| | | defineComponent({ |
| | | name: 'CheckItemPanel' |
| | |
| | | } |
| | | ) |
| | | .then(async () => { |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: 'Delete completed', |
| | | }) |
| | | |
| | | const tempAppointment = cloneDeep(props.appointment) |
| | | tempAppointment.bookTimeslot = bookTimeSlotVip |
| | | if( undefined !== bookTimeSlotVip.value && null !== bookTimeSlotVip.value ) { |
| | | tempAppointment.bookTimeslot = bookTimeSlotVip.value |
| | | } |
| | | const data = await AppointmentApi.confirmAppointmentVip(tempAppointment) |
| | | ElNotification({ |
| | | title: '温馨提示', |
| | | message: data, |
| | | type: 'warning' |
| | | type: 'info' |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: 'Delete canceled', |
| | | ElNotification({ |
| | | title: '温馨提示', |
| | | message: '确认失败', |
| | | type: 'warning' |
| | | }) |
| | | }) |
| | | } else { |
| | |
| | | <el-card style="width: 200px" shadow="hover" > |
| | | <template #header>{{checkTypeStore.getCheckTypeName(appointment.bookCheckType)}}</template> |
| | | <div>{{formatDate(appointment.bookDate, 'YYYY-MM-DD')}}</div> |
| | | <div>{{formatTimeslot(appointment.bookTimeslot)}}</div> |
| | | |
| | | <div v-if="isCurrentDay(appointment.bookDate)">{{formatTimeslot(appointment.bookTimeslot)}}</div> |
| | | <el-select v-else v-model="bookTimeSlotVip" placeholder="请选择预约时间段"> |
| | | <el-select v-if="!isCurrentDay(appointment.bookDate)" v-model="bookTimeSlotVip" placeholder="请选择预约时间段"> |
| | | <el-option |
| | | v-for="item in checkTypeTimeslotList" |
| | | :key="item.id" |