From 22a9a5fe525fb893ecaa8d4a8bfb65169ce02fc4 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 11 四月 2025 14:52:27 +0800 Subject: [PATCH] update & refactor --- src/views/ecg/doctor/components/QueuePanel.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/ecg/doctor/components/QueuePanel.vue b/src/views/ecg/doctor/components/QueuePanel.vue index 60ed25f..25bcf17 100644 --- a/src/views/ecg/doctor/components/QueuePanel.vue +++ b/src/views/ecg/doctor/components/QueuePanel.vue @@ -4,6 +4,7 @@ import {DICT_TYPE} from "@/utils/dict"; import {PatientVO, DoctorApi, RoomBedVO} from "@/api/ecg/doctor"; import {useCheckTypeStore} from "@/store/modules/checkType"; +import {getCheckTypeName, getCheckTypeSeqPrefix} from "../../../../utils/checkTypeFormatter"; defineComponent({ name: 'QueuePanel' @@ -32,7 +33,7 @@ bedNo: item.bedNo, patId: item.patId, checkType: item.bookCheckType, - jumpFlag: 0, + //jumpFlag: 0, roomId_operator: props.room.roomId, bedNo_operator: props.room.bedNo, } @@ -43,7 +44,7 @@ else if (item.status === 7) data = await DoctorApi.recallInstallPatient(patientVO); - emit("event_RecallFinish") // 瑁呮満 杩囧彿 + emit("event_RecallFinish") // 鍙洖瀹屾垚 message.info(data) } @@ -51,10 +52,12 @@ <template> <div v-for="(item, index) in queue" :key="index"> - <span style="display:inline-block; width:120px;"> {{item.seqNum}} {{item.bookSeqNum}} {{item.patName}}{{item.passed === 0 ? "":"*"}} </span> + <span style="display:inline-block; width:30px;"> {{item.seqNum}} </span> + <span style="display:inline-block; width:40px;"> {{getCheckTypeSeqPrefix(item.bookCheckType)}}{{item.bookSeqNum}} </span> + <span style="display:inline-block; width:70px;"> {{item.patName}}{{item.passed === 0 ? "":"*"}} </span> <dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="item.patGender" /> <!-- {{item.roomName}} {{item.bedNo}}--> - {{checkTypeStore.getCheckTypeName(item.bookCheckType)}} + {{getCheckTypeName(item.bookCheckType)}} <dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="item.status" /> <el-button v-if="item.status === 5 || item.status === 7" @click="recall(item)"> 鍙洖 </el-button> </div> -- Gitblit v1.9.3