From 563952b6d7c953ab7888512ea6c78d9cad0f80b6 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 15 四月 2025 13:26:50 +0800 Subject: [PATCH] update --- src/views/ecg/doctor/Routine.vue | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/views/ecg/doctor/Routine.vue b/src/views/ecg/doctor/Routine.vue index 40ea739..671c8d0 100644 --- a/src/views/ecg/doctor/Routine.vue +++ b/src/views/ecg/doctor/Routine.vue @@ -1,3 +1,4 @@ +<!--甯歌妫�鏌ョ晫闈�--> <script setup lang="ts"> import TitlePanel from "@/views/ecg/doctor/components/TitlePanel.vue"; import QueuePanel from "@/views/ecg/doctor/components/QueuePanel.vue"; @@ -17,12 +18,12 @@ opType: null } -const onStagePatient = ref<QueueVO>({ +let onStagePatient: QueueVO = { id: 0, patId: "", patName: "", patGender: 0, bookTimeslot: 0, bookCheckType: 0, isVip: 0, seqNum: 0, bookSeqNum: 0, passed: 0, expired: 0, jumpFlag: 0, roomId: 0, roomName: "", bedNo: "", status: 0 -}) +} const patientStat = ref<PatientStatisticVO>({ finishedNum: 0, @@ -50,7 +51,7 @@ getOnstagePatient() // 鐢ㄤ簬瑙e喅 宸︿晶閲嶇疆鍚� 鑾峰彇褰撳墠銆愬氨璇婁腑銆戞偅鑰� - setOnStagePatient(onStagePatient.value) + setOnStagePatient(onStagePatient) } finally { finishFlag.value = false } @@ -75,9 +76,9 @@ const tempPatient : QueueVO | undefined = patientList.value.find(item => item.status === 30) if (undefined === tempPatient) { // setOnStagePatient(undefined) - } else if (tempPatient.patId !== onStagePatient.value.patId) { - onStagePatient.value= tempPatient - setOnStagePatient(onStagePatient.value) + } else if (tempPatient.patId !== onStagePatient.patId) { + onStagePatient = tempPatient + setOnStagePatient(onStagePatient) } } @@ -155,7 +156,12 @@ const onEventRoutine = () => { //console.info("onDevRentPanelEvent...") - onStagePatient.value.patId = "" + onStagePatient = { + id: 0, patId: "", patName: "", patGender: 0, + bookTimeslot: 0, bookCheckType: 0, isVip: 0, seqNum: 0, bookSeqNum: 0, + passed: 0, expired: 0, jumpFlag: 0, + roomId: 0, roomName: "", bedNo: "", status: 0 + } if (autoCall.value) { finishNextPatient() -- Gitblit v1.9.3