From 20e11b0f542d85c0008defabdd2f06169ed4a0af Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 29 八月 2024 16:41:21 +0800
Subject: [PATCH] update
---
src/api/ecg/doctor/index.ts | 45 ++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/src/api/ecg/doctor/index.ts b/src/api/ecg/doctor/index.ts
index a3129f0..3ee013c 100644
--- a/src/api/ecg/doctor/index.ts
+++ b/src/api/ecg/doctor/index.ts
@@ -1,16 +1,55 @@
import request from '@/config/axios'
export interface RoomBedVO {
+ roomId: number | null // 璇婂缂栧彿
+ bedNo: string | null // 璇婄枟搴婄紪鍙�
+}
+
+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 })
+ },
+
+ // 杩囧彿锛屽彇涓嬩竴浣嶆偅鑰�
+ 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