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 | 84 ++++++++++++++++++++++++++++++++---------
1 files changed, 65 insertions(+), 19 deletions(-)
diff --git a/src/views/ecg/room/RoomSetting.vue b/src/views/ecg/room/RoomSetting.vue
index f95e1bc..258617f 100644
--- a/src/views/ecg/room/RoomSetting.vue
+++ b/src/views/ecg/room/RoomSetting.vue
@@ -1,19 +1,29 @@
<template>
- <div style="display: flex; flex-direction: column; align-items: center;">
- <div>寮�璇婃椂闂达細{{ openingPeriod }} 鐩戞帶淇℃伅: {{ monitorInfo.openingFlag }} {{ monitorInfo.queueNum }} {{ monitorInfo.activeQueueNum }}</div>
- <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px">
- <div class=wrap v-for="(value, key) in bedMap" :key="key">
- <RoomStatus :title="key" :bedList="value" @refresh="getList"/>
- </div>
- </div>
- <div>
- <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>
- </div>
+ <el-container>
+ <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 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="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">
+ {{ getCheckTypeName(Number(key)) }} {{ value }}
+ </div>
+ <div>宸ヤ綅姒傚喌锛氬紑鏀剧殑宸ヤ綅 鏈夊尰鐢熷伐浣� 鍙備笌鍒嗘祦宸ヤ綅</div>
+ <div>妫�鏌ラ」鐩� 寮�鏀剧殑宸ヤ綅 (妫�鏌�/棰嗙敤 | 瀹夎) 鏈夊尰鐢熷伐浣� (妫�鏌�/棰嗙敤 | 瀹夎)</div>
+ </el-aside>
+ </el-container>
</template>
<script setup lang="ts">
@@ -21,6 +31,8 @@
import { RoomApi, RoomVO, MonitorInfo } from '@/api/ecg/room'
import { QueueApi } from '@/api/ecg/queue'
import { getConfigKey } from '@/api/infra/config'
+import {useCheckTypeStore} from "@/store/modules/checkType";
+import {getCheckTypeName} from "../../../utils/checkTypeFormatter";
defineOptions({ name: 'RoomSetting' })
@@ -28,10 +40,14 @@
const openingPeriod = ref<string>('')
const monitorInfo = ref<MonitorInfo>({
- queueNum : 0,
- activeQueueNum : 0,
- openingFlag : 0
+ openingBedNum: 0,
+ docBedNum: 0,
+ routingBedNum: 0,
+ openingFlag: 0,
+ checkTypeBedInfo: {}
})
+
+const checkTypeStore = useCheckTypeStore();
const getOpeningPeriod = async () => {
const data = await getConfigKey('ecg.openingtime')
@@ -84,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