From 6f1b2cf3dc89059104ca0eedebf5f3ec4d1147f0 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 26 十一月 2025 11:08:17 +0800
Subject: [PATCH] 打印
---
src/views/ecg/doctor/components/QueuePanel.vue | 55 +++++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 43 insertions(+), 12 deletions(-)
diff --git a/src/views/ecg/doctor/components/QueuePanel.vue b/src/views/ecg/doctor/components/QueuePanel.vue
index cf06b0c..663b521 100644
--- a/src/views/ecg/doctor/components/QueuePanel.vue
+++ b/src/views/ecg/doctor/components/QueuePanel.vue
@@ -1,38 +1,69 @@
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
-import { queueApi, queueVO } from '@/api/ecg/queue'
+import { QueueVO } from '@/api/ecg/queue'
import {DICT_TYPE} from "@/utils/dict";
+import {PatientVO, DoctorApi, RoomBedVO} from "@/api/ecg/doctor";
+import {getCheckTypeName, getCheckTypeSeqPrefix} from "../../../../utils/checkTypeFormatter";
defineComponent({
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
+ },
+ room: {
+ type: Object as PropType<RoomBedVO>,
required: true
}
- /*,
- modelValue: {
- type: Object as PropType<RoomVO>,
- required: true
- }
-*/
})
+
+const recall = async (item) => {
+ const patientVO: PatientVO = {
+ roomId: item.roomId,
+ bedNo: item.bedNo,
+ patId: item.patId,
+ checkType: item.bookCheckType,
+ //jumpFlag: 0,
+ roomId_operator: props.room.roomId,
+ bedNo_operator: props.room.bedNo,
+ }
+
+ let data = ""
+ if (item.status === 5) // 甯歌銆侀鐢� 杩囧彿
+ data = await DoctorApi.recallPatient(patientVO);
+ else if (item.status === 7)
+ data = await DoctorApi.recallInstallPatient(patientVO);
+
+ emit("event_RecallFinish") // 鍙洖瀹屾垚
+ message.info(data)
+}
</script>
<template>
<div v-for="(item, index) in queue" :key="index">
- {{item.patName}}
+ <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}}
- <dict-tag :type="DICT_TYPE.ECG_CHECK_TYPE" :value="item.bookCheckType" />
+<!-- {{item.roomName}} {{item.bedNo}}-->
+ {{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>
</template>
<style scoped lang="scss">
+div {
+ padding-left: 5px;
+ padding-bottom: 5px;
+}
</style>
--
Gitblit v1.9.3