| | |
| | | import {DoctorApi, PatientStatisticVO, RoomBedVO} from '@/api/ecg/doctor'; |
| | | import {useUserStore} from "@/store/modules/user"; |
| | | import {QueueVO} from "@/api/ecg/queue"; |
| | | import {ElMessage} from "element-plus"; |
| | | import {ElMessage, ElNotification} from "element-plus"; |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | |
| | | } |
| | | |
| | | const initLoad = async () => { |
| | | if (roomBedVO.roomId == null) { |
| | | ElNotification.error({ |
| | | message: '请重新就座!', |
| | | type: 'info', |
| | | duration: 3000 // 自动关闭时间,默认为3000ms |
| | | }) |
| | | return |
| | | } |
| | | |
| | | patientList.value = await DoctorApi.getPatientList(roomBedVO) |
| | | patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO) |
| | | const queueVO2 = await DoctorApi.bedDoctorGet(roomBedVO) |
| | |
| | | } else { |
| | | roomBedVO.roomId = null |
| | | roomBedVO.bedNo = null |
| | | |
| | | ElMessage({ |
| | | message: '请先入座!', |
| | | type: 'info', |
| | | duration: 3000 // 自动关闭时间,默认为3000ms |
| | | }) |
| | | } |
| | | |
| | | bedControlFlag.value = false |