From d553a4be94d4f6ee162cc353a28b220403909cfc Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期六, 03 十月 2026 00:58:19 +0800
Subject: [PATCH] ai优化

---
 src/api/ecg/doctor/index.ts |   46 ++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/src/api/ecg/doctor/index.ts b/src/api/ecg/doctor/index.ts
index f41ab61..2eec85e 100644
--- a/src/api/ecg/doctor/index.ts
+++ b/src/api/ecg/doctor/index.ts
@@ -19,7 +19,7 @@
   roomId: number // 璇婂缂栧彿
   bedNo: string // 璇婄枟搴婄紪鍙�
   patId: string // 鎮h�呯紪鍙�
-  checkType: number // 妫�鏌ョ被鍨�
+  checkType: number // 妫�鏌ラ」鐩�
   jumpFlag?: number // 鎻掗槦鏍囪
   roomId_operator: number | null
   bedNo_operator: string | null
@@ -144,6 +144,48 @@
   // 鍔犳�ユ偅鑰�
   patientJump: async (params: PatientVO) => {
     return await request.get({ url: `/ecg/doctor/patient-jump`, params })
-  }
+  },
+
+  // ==================== 闇�姹�2锛氭挙閿�銆屽彨鍙� / 妫�鏌ュ畬鎴愩�� ====================
+
+  // 鎾ら攢妫�鏌ュ畬鎴愶細宸插氨璇�(40) 鈫� 鍊欒瘖涓�(20)銆傚繀椤诲甫 patId + checkType 绮剧‘瀹氫綅
+  undoFinishPatient: async (params: PatientVO) => {
+    return await request.get({ url: `/ecg/doctor/undo-finish-patient`, params })
+  },
+
+  // 鎾ら攢鍙彿锛氬氨璇婁腑(30) 鈫� 鍊欒瘖涓�(20)
+  undoCallPatient: async (params: { roomId: number | null; bedNo: string | null }) => {
+    return await request.get({ url: `/ecg/doctor/undo-call-patient`, params })
+  },
+
+  // 鍙栨湰宸ヤ綅浠婃棩鏈�杩戜竴浣嶅凡瀹屾垚鎮h�咃紙渚涙挙閿�鎻愮ず锛�
+  lastFinishedPatient: async (params: { roomId: number | null; bedNo: string | null }) => {
+    return await request.get({ url: `/ecg/doctor/last-finished-patient`, params })
+  },
+
+  // ==================== 闇�姹�3锛氬仠姝㈠�欒瘖寮�鍏� ====================
+
+  // 鍋滄鍊欒瘖锛氫笉鍐嶆柊澧炲�欒瘖鎮h�咃紙宸叉湁鍊欒瘖浠嶅彲鍙彿锛�
+  stopReady: async (params: { roomId: number | null; bedNo: string | null }) => {
+    return await request.get({ url: `/ecg/doctor/stop-ready`, params })
+  },
+
+  // 鎭㈠鍊欒瘖锛氶噸鏂板紑濮嬫帴鏀跺�欒瘖鎮h��
+  resumeReady: async (params: { roomId: number | null; bedNo: string | null }) => {
+    return await request.get({ url: `/ecg/doctor/resume-ready`, params })
+  },
+
+  // 鏌ヨ鍋滄鍊欒瘖鐘舵��
+  getStopReady: async (params: { roomId: number | null; bedNo: string | null }) => {
+    return await request.get({ url: `/ecg/doctor/get-stop-ready`, params })
+  },
+
+  // 涓嬭浇
+ yddownload: async (id: number | string) => {
+  return await request.get({ url: `/ecg/template/download/${id}` })
+},
+ sgdownload: async (id: number | string) => {
+  return await request.get({ url: `/ecg/template/downloadesophagus/${id}` })
+}
 
 }

--
Gitblit v1.9.3