From e84705f4809b57509b8665f0b5db4fc435e08496 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 10 十月 2024 16:36:59 +0800
Subject: [PATCH] 工位状态 动态查看
---
src/components/RoomStatus/src/RoomStatus.vue | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/components/RoomStatus/src/RoomStatus.vue b/src/components/RoomStatus/src/RoomStatus.vue
index 7ec1a71..417a93b 100644
--- a/src/components/RoomStatus/src/RoomStatus.vue
+++ b/src/components/RoomStatus/src/RoomStatus.vue
@@ -2,6 +2,7 @@
import { RoomApi, RoomVO } from '@/api/ecg/room'
import { QueueApi } from '@/api/ecg/queue'
import {PropType} from "vue";
+import {DICT_TYPE, getIntDictOptions} from "@/utils/dict";
const emit = defineEmits(['refresh'])
defineComponent({
@@ -19,6 +20,8 @@
}
})
+let mapCheckType: Map<number, string> = new Map();
+
const openBed = async (item) => {
await QueueApi.bedOpen(item)
emit('refresh')
@@ -28,6 +31,19 @@
await QueueApi.bedClose(item)
emit('refresh')
}
+
+const getCheckTypeList = () => {
+ const data = getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE)
+ console.info( data )
+ data.forEach((checkTypeItem) => {
+ mapCheckType.set(checkTypeItem.value, checkTypeItem.label)
+ })
+}
+
+/** 鍒濆鍖� **/
+onMounted(() => {
+ getCheckTypeList()
+})
</script>
@@ -55,6 +71,12 @@
style="width: 100%"
/>
{{bedItem.bedNo}} {{bedItem.docName}} {{bedItem.status === 30?"-鏆傚仠":""}}
+ <div v-for="(checkType, subIndex) in bedItem.checkTypes" :key="subIndex">
+ {{mapCheckType.get(checkType)}}
+ </div>
+ <div>
+ {{bedItem.opType === 1?"棰嗙敤":""}}
+ </div>
</div>
</div>
</el-card>
--
Gitblit v1.9.3