|  |  | 
 |  |  |     return await request.download({ url: `/ecg/appointment/export-excel`, params }) | 
 |  |  |   }, | 
 |  |  |  | 
 |  |  |   // 修改预约 | 
 |  |  |   // 预约确认 | 
 |  |  |   confirmAppointment: async (data: AppointmentVO) => { | 
 |  |  |       return await request.post({ url: `/ecg/appointment/confirm`, data }) | 
 |  |  |   }, | 
 |  |  |  | 
 |  |  |   // VIP预约确认 | 
 |  |  |   confirmAppointmentVip: async (data: AppointmentVO) => { | 
 |  |  |       return await request.post({ url: `/ecg/appointment/confirm-vip`, data }) | 
 |  |  |   } | 
 |  |  |  | 
 |  |  | } | 
 
 |  |  | 
 |  |  | const checkTypeStore = useCheckTypeStore(); | 
 |  |  |  | 
 |  |  | const _confirmAppointment = async () => { | 
 |  |  |   const data = await AppointmentApi.confirmAppointment(props.appointment) | 
 |  |  |   ElNotification({ | 
 |  |  |     title: '温馨提示', | 
 |  |  |     message: data, | 
 |  |  |     type: 'warning' | 
 |  |  |   }) | 
 |  |  |   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: '温馨提示', | 
 |  |  |       message: data, | 
 |  |  |       type: 'warning' | 
 |  |  |     }) | 
 |  |  |   } | 
 |  |  | } | 
 |  |  |  | 
 |  |  | </script> |