From 8d11e11a86bbfe84ea4156bd68e865bb2986e9bd Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 18 十一月 2024 11:18:21 +0800
Subject: [PATCH] 领用界面 自动叫号控制

---
 src/api/ecg/appointment/index.ts |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/src/api/ecg/appointment/index.ts b/src/api/ecg/appointment/index.ts
index 45283ba..9451565 100644
--- a/src/api/ecg/appointment/index.ts
+++ b/src/api/ecg/appointment/index.ts
@@ -3,6 +3,8 @@
 // 棰勭害 VO
 export interface AppointmentVO {
   id: number,
+  applyNo: string
+  patSrc: number
   patId: string // 鎮h�呯紪鍙�
   patName: string // 鎮h�呭鍚�
   patGender: number // 鎮h�呮�у埆
@@ -36,9 +38,19 @@
     return await request.get({ url: `/ecg/appointment/get?id=` + id })
   },
 
-  // 鏌ヨ棰勭害璇︽儏
-  getAppointmentByPatId: async (patId: string) => {
-    return await request.get({ url: `/ecg/appointment/get-by-patient?patId=` + patId })
+  //
+  getCurAppointmentByPatId: async (patId: string) => {
+    return await request.get({ url: `/ecg/appointment/get-current-by-patient?patId=` + patId })
+  },
+
+  // 浠嶩IS鎴栬�匘B鏌ヨ棰勭害璇︽儏
+  queryAndCreateAppointmentByPatId: async (patId: string) => {
+    return await request.get({ url: `/ecg/appointment/query-and-create-by-patient?patId=` + patId })
+  },
+
+  // 浠嶩IS鏌ヨ棰勭害鎴栧紑鍗曚俊鎭�
+  queryAppointmentFromHis: async (patId: string) => {
+    return await request.get({ url: `/ecg/appointment/query-his-by-patient?patId=` + patId })
   },
 
   // 鏂板棰勭害
@@ -61,9 +73,14 @@
     return await request.download({ url: `/ecg/appointment/export-excel`, params })
   },
 
-  // 淇敼棰勭害
+  // 棰勭害纭
   confirmAppointment: async (data: AppointmentVO) => {
       return await request.post({ url: `/ecg/appointment/confirm`, data })
+  },
+
+  // VIP棰勭害纭
+  confirmAppointmentVip: async (data: AppointmentVO) => {
+      return await request.post({ url: `/ecg/appointment/confirm-vip`, data })
   }
 
 }

--
Gitblit v1.9.3