| | |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | /* |
| | | ElNotification({ |
| | | title: '温馨提示', |
| | | message: '确认失败', |
| | | type: 'warning' |
| | | }) |
| | | */ |
| | | }) |
| | | } else if (undefined !== bookTimeSlotVip.value && null !== bookTimeSlotVip.value && props.appointment.bookTimeslot !== bookTimeSlotVip.value) { |
| | | ElMessageBox.confirm( |
| | | '当天预约项,确定要走VIP吗?', |
| | | 'Warning', |
| | | { |
| | | confirmButtonText: '好的', |
| | | cancelButtonText: '不用', |
| | | type: 'warning', |
| | | } |
| | | ) |
| | | .then(async () => { |
| | | const tempAppointment = cloneDeep(props.appointment) |
| | | if (undefined !== bookTimeSlotVip.value && null !== bookTimeSlotVip.value) { |
| | | tempAppointment.bookTimeslot = bookTimeSlotVip.value |
| | | } |
| | | const data = await AppointmentApi.confirmAppointmentVip(tempAppointment) |
| | | bookSeqNum.value = data |
| | | // 发送操作成功的事件 |
| | | emit('event_appoint_confirm') |
| | | _printNote() |
| | | ElNotification({ |
| | | title: '温馨提示', |
| | | message: data, |
| | | type: 'info' |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | /* |
| | | ElNotification({ |
| | | title: '温馨提示', |
| | | message: '确认失败', |
| | | type: 'warning' |
| | | }) |
| | | */ |
| | | }) |
| | | } else { |
| | | const data = await AppointmentApi.confirmAppointment(props.appointment) |
| | |
| | | <div>{{formatDate(appointment.bookDate, 'YYYY-MM-DD')}}</div> |
| | | <div>{{formatTimeslot(appointment.bookTimeslot)}}</div> |
| | | |
| | | <el-select v-if="!isCurrentDay(appointment.bookDate)" v-model="bookTimeSlotVip" placeholder="请选择预约时间段"> |
| | | <!-- <el-select v-if="!isCurrentDay(appointment.bookDate)" v-model="bookTimeSlotVip" placeholder="请选择预约时间段">--> |
| | | <el-select v-model="bookTimeSlotVip" clearable placeholder="请选择预约时间段"> |
| | | <el-option |
| | | v-for="item in checkTypeTimeslotList" |
| | | :key="item.id" |