From 936c01060eea0924b88ca5c35d221a972a6aba7d Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期一, 05 十月 2026 10:47:22 +0800
Subject: [PATCH] 检查单列表调整
---
src/views/ecg/room/RoomSetting.vue | 81 +++++++++++++++++++++++++++-------------
1 files changed, 54 insertions(+), 27 deletions(-)
diff --git a/src/views/ecg/room/RoomSetting.vue b/src/views/ecg/room/RoomSetting.vue
index cf36c6e..258617f 100644
--- a/src/views/ecg/room/RoomSetting.vue
+++ b/src/views/ecg/room/RoomSetting.vue
@@ -1,24 +1,27 @@
<template>
<el-container>
- <el-main>
- <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px">
- <div class=wrap v-for="(value, key) in bedMap" :key="key">
+ <el-main class="room-setting-main">
+ <div class="card-area">
+ <div class="wrap" v-for="(value, key) in bedMap" :key="key">
<RoomStatus :title="key" :bedList="value" @refresh="getList"/>
</div>
</div>
- <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px">
- <el-button @click="startBiz" > 鎵嬪姩寮�璇� </el-button>
- <el-button @click="closeBiz" > 鎵嬪姩闂瘖 </el-button>
- <el-button @click="resetRoom" > 閲嶇疆璇婂 </el-button>
- <el-button @click="resetSchedule" > 閲嶇疆瀹氭椂浠诲姟 </el-button>
- <el-button @click="refresh" > 鍒锋柊 </el-button>
+ <div class="btn-area">
+ <el-button size="small" @click="startBiz" > 鎵嬪姩寮�璇� </el-button>
+ <el-button size="small" @click="closeBiz" > 鎵嬪姩闂瘖 </el-button>
+ <el-button size="small" @click="resetRoom" > 閲嶇疆璇婂 </el-button>
+ <el-button size="small" @click="resetSchedule" > 閲嶇疆瀹氭椂浠诲姟 </el-button>
+ <el-button size="small" @click="refresh" > 鍒锋柊 </el-button>
</div>
</el-main>
- <el-aside width="250px">
- <div>寮�璇婃椂闂达細{{ openingPeriod }} {{ monitorInfo.openingFlag }} {{monitorInfo.queueNum}} {{monitorInfo.activeQueueNum}}</div>
+ <el-aside width="210px" class="monitor-aside">
+ <div>寮�璇婃椂闂达細{{ openingPeriod }} {{ monitorInfo?.openingFlag }} </div>
+ <div>宸ヤ綅姒傚喌锛� {{monitorInfo?.openingBedNum}} {{monitorInfo?.docBedNum}} {{monitorInfo?.routingBedNum}} </div>
<div v-for="(value, key) in monitorInfo.checkTypeBedInfo" :key="key">
- {{ mapCheckType.get(Number(key)) }} {{ value }}
+ {{ getCheckTypeName(Number(key)) }} {{ value }}
</div>
+ <div>宸ヤ綅姒傚喌锛氬紑鏀剧殑宸ヤ綅 鏈夊尰鐢熷伐浣� 鍙備笌鍒嗘祦宸ヤ綅</div>
+ <div>妫�鏌ラ」鐩� 寮�鏀剧殑宸ヤ綅 (妫�鏌�/棰嗙敤 | 瀹夎) 鏈夊尰鐢熷伐浣� (妫�鏌�/棰嗙敤 | 瀹夎)</div>
</el-aside>
</el-container>
</template>
@@ -28,20 +31,23 @@
import { RoomApi, RoomVO, MonitorInfo } from '@/api/ecg/room'
import { QueueApi } from '@/api/ecg/queue'
import { getConfigKey } from '@/api/infra/config'
-import {DICT_TYPE, getIntDictOptions} from "@/utils/dict";
+import {useCheckTypeStore} from "@/store/modules/checkType";
+import {getCheckTypeName} from "../../../utils/checkTypeFormatter";
defineOptions({ name: 'RoomSetting' })
const bedMap = ref() // 鍒楄〃鐨勬暟鎹�
-let mapCheckType: Map<number, string> = new Map();
const openingPeriod = ref<string>('')
const monitorInfo = ref<MonitorInfo>({
- queueNum: 0,
- activeQueueNum: 0,
+ openingBedNum: 0,
+ docBedNum: 0,
+ routingBedNum: 0,
openingFlag: 0,
- checkTypeBedInfo: undefined
+ checkTypeBedInfo: {}
})
+
+const checkTypeStore = useCheckTypeStore();
const getOpeningPeriod = async () => {
const data = await getConfigKey('ecg.openingtime')
@@ -84,18 +90,9 @@
getMonitorInfo()
}
-const getCheckTypeList = () => {
- const data = getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE)
- console.info( data )
- data.forEach((checkTypeItem) => {
- mapCheckType.set(checkTypeItem.value, checkTypeItem.label)
- })
-}
-
/** 鍒濆鍖� **/
onMounted(() => {
getList()
- getCheckTypeList()
getOpeningPeriod()
getMonitorInfo()
})
@@ -103,7 +100,37 @@
</script>
<style scoped lang="scss">
+/* ==========================================================================
+ 闇�姹傦細寮�璇婅缃〉闈㈠崱鐗囧お澶э紝瑕佷笉婊氬姩榧犳爣灏辫兘鐪嬪叏銆�
+ 鍗$墖鏈韩宸插湪 RoomStatus 閲屽帇缂╋紙148px 瀹� / 鍥剧墖闄愰珮 46px锛夛紝
+ 杩欓噷鍐嶆敹绱у竷灞�澶栬竟璺濅笌鍙充晶鐩戞帶鏍忥紝鍑忓皯鏁翠綋绾靛悜鍗犵敤銆�
+ ========================================================================== */
+.room-setting-main {
+ padding: 8px 12px;
+}
+
+.card-area {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ margin-bottom: 8px;
+}
+
.wrap {
- margin-right: 20px;
+ margin: 0 6px;
+}
+
+.btn-area {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ margin-bottom: 8px;
+}
+
+/* 鍙充晶鐩戞帶淇℃伅锛氬瓧鍙锋敹绱э紝閬垮厤鎹㈣鎾戦珮 */
+.monitor-aside {
+ padding: 8px 10px;
+ font-size: 12px;
+ line-height: 18px;
}
</style>
--
Gitblit v1.9.3