From b9292e1e2d4ee1b461d7724a9d0f5ca27802ed70 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 14 十月 2024 15:38:40 +0800
Subject: [PATCH] bug fix

---
 src/views/ecg/doctor/components/QueuePanel.vue |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/src/views/ecg/doctor/components/QueuePanel.vue b/src/views/ecg/doctor/components/QueuePanel.vue
index a864a1b..f55d1a2 100644
--- a/src/views/ecg/doctor/components/QueuePanel.vue
+++ b/src/views/ecg/doctor/components/QueuePanel.vue
@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import {defineComponent, PropType} from "vue";
-import { queueVO } from '@/api/ecg/queue'
+import { QueueVO } from '@/api/ecg/queue'
 import {DICT_TYPE} from "@/utils/dict";
 import {PatientVO, DoctorApi} from "@/api/ecg/doctor";
 
@@ -8,11 +8,13 @@
   name: 'QueuePanel'
 })
 
+const emit = defineEmits(['event_RecallFinish']) // 瀹氫箟 success 浜嬩欢锛岀敤浜庢搷浣滄垚鍔熷悗鐨勫洖璋�
+
 const message = useMessage() // 娑堟伅寮圭獥
 
 const  props = defineProps({
   queue: {
-    type: Array as PropType<queueVO[]>,
+    type: Array as PropType<QueueVO[]>,
     required: true
   }
   /*,
@@ -32,6 +34,7 @@
   }
 
   const data = await DoctorApi.recallPatient(patientVO);
+  emit("event_RecallFinish")
   message.info(data)
 }
 
@@ -39,16 +42,19 @@
 
 <template>
 <div v-for="(item, index) in queue" :key="index">
-  {{item.patName}}
+  <span style="display:inline-block; width:70px;"> {{item.seqNum}} &nbsp; {{item.patName}}{{item.passed === 0 ? "":"*"}} </span>
   <dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="item.patGender" />
-  {{item.roomName}}
-  {{item.bedNo}}
+<!--  {{item.roomName}} {{item.bedNo}}-->
   <dict-tag :type="DICT_TYPE.ECG_CHECK_TYPE" :value="item.bookCheckType" />
   <dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="item.status" />
-  <el-button v-if="item.status === 50" @click="recall(item)"> 鍙洖 </el-button>
+  <el-button v-if="item.status === 5" @click="recall(item)"> 鍙洖 </el-button>
 </div>
 </template>
 
 <style scoped lang="scss">
+div {
+  padding-left: 5px;
+  padding-bottom: 5px;
+}
 
 </style>

--
Gitblit v1.9.3