From d09fe6aa593b974119628baf5e91bdfd0de7c378 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 10 四月 2025 10:42:26 +0800
Subject: [PATCH] 翻译 设备状态信息

---
 src/api/ecg/room/index.ts |   56 +++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 49 insertions(+), 7 deletions(-)

diff --git a/src/api/ecg/room/index.ts b/src/api/ecg/room/index.ts
index 325aadd..6e527b9 100644
--- a/src/api/ecg/room/index.ts
+++ b/src/api/ecg/room/index.ts
@@ -2,11 +2,24 @@
 
 // 璇婂鍜岃瘖鐤楀簥 VO
 export interface RoomVO {
-  id: number  //
-  roomId: number // 璇婂缂栧彿
-  roomName: string // 璇婂鍚嶇О
-  bedNo: string // 璇婄枟搴婄紪鍙�
-  onstage: boolean //寮�璇婄姸鎬�
+  id: number | null  //
+  roomId: number | null // 璇婂缂栧彿
+  roomName: string | null // 璇婂鍚嶇О
+  bedNo: string | null // 璇婄枟搴婄紪鍙�
+  ip: string | null // 璇婂IP
+  status: number | null //寮�璇婄姸鎬�  0-鍏抽棴 1-鍏抽棴涓� 10-宸插紑閫� 20-鏈夊尰鐢� 30-鏆傚仠
+  docId: number | null
+  docName: string | null
+  checkTypes: number[] | null
+  opType: number | null
+}
+
+export interface MonitorInfo {
+  openingBedNum : number
+  docBedNum : number
+  routingBedNum : number
+  openingFlag : number
+  checkTypeBedInfo: object
 }
 
 // 璇婂鍜岃瘖鐤楀簥 API
@@ -19,6 +32,15 @@
   // 鏌ヨ璇婂鍜岃瘖鐤楀簥璇︽儏
   getRoom: async (id: number) => {
     return await request.get({ url: `/clinic/room/get?id=` + id })
+  },
+
+  // 鏌ヨ璇婂鍜岃瘖鐤楀簥璇︽儏
+  getRoomByIP: async (roomId :number) => {
+    if (!roomId || roomId === 0) {
+      return await request.get({url: `/clinic/room/get-room-by-ip`})
+    }
+
+    return await request.get({url: `/clinic/room/get-room-by-ip?roomId=` + roomId})
   },
 
   // 鏂板璇婂鍜岃瘖鐤楀簥
@@ -47,13 +69,33 @@
   },
 
   // 鑾峰彇璇婂绮剧畝淇℃伅鍒楄〃锛岀敤浜庡尰鐢熼�夋嫨鐧诲綍鐨勮瘖瀹�
-  getOnstageBedMap: async () => {
+  getOpeningBedMap: async () => {
     return await request.get({ url: `/clinic/room/list-simple-room` })
   },
-
 
   // 鑾峰彇璇婂簥Map
   getAllBedMap: async () => {
     return await request.get({ url: `/clinic/room/list-all-bed` })
+  },
+
+  //
+  resetRoom: async () => {
+    return await request.get({ url: `/clinic/room/reset-room` })
+  },
+
+  //
+  getMonitorInfo: async () => {
+    return await request.get({ url: `/clinic/room/monitor` })
+  },
+
+  // 鎵嬪姩寮�璇�
+  startBiz: async () => {
+    return await request.get({ url: `/clinic/room/start-biz` })
+  },
+
+  // 鎵嬪姩闂瘖
+  closeBiz: async () => {
+    return await request.get({ url: `/clinic/room/close-biz` })
   }
+
 }

--
Gitblit v1.9.3