From cfd2621f98e34e348a0e7ca7466464f9886d4eb2 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 12 十二月 2024 19:46:48 +0800
Subject: [PATCH] 工位选择界面 诊室安装room id排序

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

diff --git a/src/api/ecg/appointment/index.ts b/src/api/ecg/appointment/index.ts
index 609fa7b..fbb1e29 100644
--- a/src/api/ecg/appointment/index.ts
+++ b/src/api/ecg/appointment/index.ts
@@ -2,7 +2,10 @@
 
 // 棰勭害 VO
 export interface AppointmentVO {
-  id: string
+  id: number,
+  applyNo: string  // 棰勭害鐢宠缂栧彿
+  episodeId: number //灏辫瘖娴佹按鍙�
+  patSrc: number
   patId: string // 鎮h�呯紪鍙�
   patName: string // 鎮h�呭鍚�
   patGender: number // 鎮h�呮�у埆
@@ -16,11 +19,12 @@
   patWardCode: string // 鎮h�呮墍鍦ㄧ梾鍖轰唬鐮�
   patWardDesc: string // 鎮h�呮墍鍦ㄧ梾鍖哄悕绉�
   patBedNo: string // 搴婂彿
-  bookId: string // 棰勭害缂栧彿
   bookDate: Date // 棰勭害鏃ユ湡
   bookTimeslot: number // 棰勭害鏃堕棿娈�
-  bookTime: Date // 棰勭害鍙戠敓鏃堕棿
-  bookCheckType: boolean // 棰勭害妫�鏌ョ被鍨�
+  bookTime: Date // 棰勭害鍙戠敓鏃堕棿, 鐐瑰嚮棰勭害鐨勬椂闂�
+  bookCheckType: number // 棰勭害妫�鏌ョ被鍨�
+  paid: number //宸蹭粯娆�
+  bookSeqNum: number
 }
 
 // 棰勭害 API
@@ -33,6 +37,21 @@
   // 鏌ヨ棰勭害璇︽儏
   getAppointment: async (id: number) => {
     return await request.get({ url: `/ecg/appointment/get?id=` + id })
+  },
+
+  //
+  getCurAppointmentByPatIdAndCheckType: async (patId: string, checkType: number) => {
+    return await request.get({ url: `/ecg/appointment/get-current-by-patient?patId=` + patId + '&checkType=' + checkType })
+  },
+
+  // 浠嶩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 })
   },
 
   // 鏂板棰勭害
@@ -53,5 +72,16 @@
   // 瀵煎嚭棰勭害 Excel
   exportAppointment: async (params) => {
     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