| | |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | |
| | | const _confirmAppointment = async () => { |
| | | if (!isCurrentDay(props.appointment.bookDate)) { |
| | | ElMessageBox.confirm( |
| | | '非当天预约项,确定要今天检查吗?', |
| | | 'Warning', |
| | | { |
| | | confirmButtonText: '好的', |
| | | cancelButtonText: '不用', |
| | | type: 'warning', |
| | | } |
| | | ) |
| | | .then(async () => { |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: 'Delete completed', |
| | | }) |
| | | const data = await AppointmentApi.confirmAppointmentVip(props.appointment) |
| | | ElNotification({ |
| | | title: '温馨提示', |
| | | message: data, |
| | | type: 'warning' |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: 'Delete canceled', |
| | | }) |
| | | }) |
| | | } else { |
| | | const data = await AppointmentApi.confirmAppointment(props.appointment) |
| | | ElNotification({ |
| | | title: '温馨提示', |
| | |
| | | type: 'warning' |
| | | }) |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |