| | |
| | | import {useUserStore} from "@/store/modules/user"; |
| | | import {QueueVO} from "@/api/ecg/queue"; |
| | | import {ElNotification} from "element-plus"; |
| | | import DevRentPanel from "@/views/ecg/doctor/components/DevRentPanel.vue"; |
| | | import DevInstallPanel from "@/views/ecg/doctor/components/DevInstallPanel.vue"; |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | |
| | | |
| | | const getOnstagePatient = () => { |
| | | const tempPatient : QueueVO | undefined = patientList.value.find(item => item.status === 30) |
| | | if (tempPatient !== undefined) { |
| | | if (tempPatient !== undefined && tempPatient.patId !== onStagePatient.value.patId) { |
| | | onStagePatient.value= tempPatient |
| | | //onStagePatient.value.patName = tempPatient.patName |
| | | setOnStagePatient(tempPatient) |
| | | } |
| | | } |
| | | |
| | |
| | | console.info("onDevRentPanelEvent...") |
| | | } |
| | | |
| | | /** 患者变更操作 */ |
| | | const devInstallPanelRef = ref() |
| | | const setOnStagePatient = (tempPatient: QueueVO) => { |
| | | devInstallPanelRef.value.setPatient(tempPatient) |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | </el-header> |
| | | <el-container> |
| | | <el-main> |
| | | <DevRentPanel :patient="onStagePatient" @success="onEvent"/> |
| | | <DevInstallPanel ref="devInstallPanelRef" @success="onEvent"/> |
| | | </el-main> |
| | | <el-aside width="300px" style="background-color: var(--el-color-primary-light-7);"> |
| | | <QueuePanel :queue="patientList"/> |