eight
2024-09-10 08c5612cb1bfc239428b5bb1bf073b62eda012cd
src/views/ecg/doctor/index.vue
@@ -5,7 +5,7 @@
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();
@@ -58,9 +58,9 @@
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)
  }
}
@@ -138,6 +138,12 @@
  console.info("onDevRentPanelEvent...")
}
/** 患者变更操作 */
const devInstallPanelRef = ref()
const setOnStagePatient = (tempPatient: QueueVO) => {
  devInstallPanelRef.value.setPatient(tempPatient)
}
</script>
<template>
@@ -147,7 +153,7 @@
    </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"/>