From 6ab4b1e0b68e4c347110e37018fa005603f53904 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 29 九月 2026 23:49:04 +0800
Subject: [PATCH] ai优化
---
src/api/ecg/doctor/index.ts | 78 +++++++++++++++++++++++++++++++++++---
1 files changed, 71 insertions(+), 7 deletions(-)
diff --git a/src/api/ecg/doctor/index.ts b/src/api/ecg/doctor/index.ts
index 889a2f8..b6c70a7 100644
--- a/src/api/ecg/doctor/index.ts
+++ b/src/api/ecg/doctor/index.ts
@@ -1,24 +1,36 @@
import request from '@/config/axios'
+export interface RoomProfileVO {
+ roomId: number | null // 璇婂缂栧彿
+ roomName: string | null
+ bedNum: number | null // 璇婄枟搴婃暟閲�
+ callingScreenType: number | null // 鍙彿灞忕被鍨�
+}
+
export interface RoomBedVO {
roomId: number | null // 璇婂缂栧彿
roomName: string | null
bedNo: string | null // 璇婄枟搴婄紪鍙�
+ checkTypes: number[] | null
+ opType: number | null
}
export interface PatientVO {
roomId: number // 璇婂缂栧彿
bedNo: string // 璇婄枟搴婄紪鍙�
patId: string // 鎮h�呯紪鍙�
- jumpFlag: number // 鎻掗槦鏍囪
+ checkType: number // 妫�鏌ョ被鍨�
+ jumpFlag?: number // 鎻掗槦鏍囪
+ roomId_operator: number | null
+ bedNo_operator: string | null
}
export interface PatientStatisticVO {
- finishedNum: number
- readyNum: number
- receivedNum: number
- passedNum: number
- queuingNum: number
+ finishedNum?: number
+ readyNum?: number
+ receivedNum?: number
+ passedNum?: number
+ queuingNum?: number
}
// 鍖荤敓 API
@@ -109,6 +121,16 @@
return await request.get({ url: `/ecg/doctor/get-dev-install-statistic`, params })
},
+ // 杩囧彿 [鎺掗槦涓璢 鎮h��
+ passWaitingPatient: async (params: PatientVO) => {
+ return await request.get({ url: `/ecg/doctor/pass-waiting-patient`, params })
+ },
+
+ // 鍙洖 [杩囧彿-鎺掗槦涓璢 鎮h��
+ recallPassWaitingPatient: async (params: PatientVO) => {
+ return await request.get({ url: `/ecg/doctor/recall-pass-waiting-patient`, params })
+ },
+
// 鍙洖杩囧彿鎮h��
recallPatient: async (params: PatientVO) => {
return await request.get({ url: `/ecg/doctor/recall-patient`, params })
@@ -122,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