From 4138fa77375ab7e1750fd7de7d2627306a7959bc Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 26 八月 2024 09:33:15 +0800
Subject: [PATCH] update
---
src/api/ecg/doctor/index.ts | 46 ++++++++++++++++++++++++++++++++++++++++------
1 files changed, 40 insertions(+), 6 deletions(-)
diff --git a/src/api/ecg/doctor/index.ts b/src/api/ecg/doctor/index.ts
index f6f9089..b9073a4 100644
--- a/src/api/ecg/doctor/index.ts
+++ b/src/api/ecg/doctor/index.ts
@@ -5,17 +5,51 @@
bedNo: string // 璇婄枟搴婄紪鍙�
}
+export interface PatientVO {
+ roomId: number // 璇婂缂栧彿
+ bedNo: string // 璇婄枟搴婄紪鍙�
+ patId: string // 鎮h�呯紪鍙�
+ jumpFlag: number // 鎻掗槦鏍囪
+}
+
+export interface PatientStatisticVO {
+ finishedNum: number
+ readyNum: number
+ passedNum: number
+ queuingNum: number
+}
+
// 鍖荤敓 API
export const DoctorApi = {
- // 涓嬩竴浣嶆偅鑰�
- nextPatient: async (params: RoomBedVO) => {
- return await request.get({ url: `/ecg/doctor/nextpatient`, params })
+ // 鐪嬪畬锛屽彇涓嬩竴浣嶆偅鑰�
+ finishNextPatient: async (params: RoomBedVO) => {
+ return await request.get({ url: `/ecg/doctor/finish-next-patient`, params })
},
- // 鐪嬪畬鎮h��
- finishPatient: async (params: RoomBedVO) => {
- return await request.get({ url: `/ecg/doctor/finishpatient`, params })
+ // 杩囧彿锛屽彇涓嬩竴浣嶆偅鑰�
+ passNextPatient: async (params: RoomBedVO) => {
+ return await request.get({ url: `/ecg/doctor/pass-next-patient`, params })
+ },
+
+ // 鍙栧垵濮嬫偅鑰呭垪琛�
+ getPatientList: async (params: RoomBedVO) => {
+ return await request.get({ url: `/ecg/doctor/get-patient-list`, params })
+ },
+
+ // 鍙栨偅鑰呯粺璁�
+ getPatientStatistic: async (params: RoomBedVO) => {
+ return await request.get({ url: `/ecg/doctor/get-patient-statistic`, params })
+ },
+
+ // 鍙洖杩囧彿鎮h��
+ recallPatient: async (params: PatientVO) => {
+ return await request.get({ url: `/ecg/doctor/recall-patient`, params })
+ },
+
+ // 鍙洖杩囧彿鎮h��
+ patientJump: async (params: PatientVO) => {
+ return await request.get({ url: `/ecg/doctor/patient-jump`, params })
}
}
--
Gitblit v1.9.3