From 4e80712bf8eae6094baf1fae25d6e2979b423d9d Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 01 十一月 2024 18:22:56 +0800
Subject: [PATCH] 小票打印

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

diff --git a/src/api/ecg/appointment/index.ts b/src/api/ecg/appointment/index.ts
index e3e4960..e5d9f03 100644
--- a/src/api/ecg/appointment/index.ts
+++ b/src/api/ecg/appointment/index.ts
@@ -2,10 +2,12 @@
 
 // 棰勭害 VO
 export interface AppointmentVO {
+  id: number,
   patId: string // 鎮h�呯紪鍙�
   patName: string // 鎮h�呭鍚�
   patGender: number // 鎮h�呮�у埆
   patBirthday: Date // 鎮h�呯敓鏃�
+  patAge: number
   patMobile: string // 鎮h�呮墜鏈�
   patPhone: string // 鎮h�呯數璇�
   patIdentityId: string // 韬唤璇佸彿
@@ -16,10 +18,11 @@
   patWardDesc: string // 鎮h�呮墍鍦ㄧ梾鍖哄悕绉�
   patBedNo: string // 搴婂彿
   bookId: string // 棰勭害缂栧彿
-  bookPeriodStart: Date // 棰勭害妫�鏌ユ椂闂存
-  bookPeriodEnd: Date // 棰勭害妫�鏌ユ椂闂存
-  bookTime: Date // 棰勭害鍙戠敓鏃堕棿
-  bookCheckType: boolean // 棰勭害妫�鏌ョ被鍨�
+  bookDate: Date // 棰勭害鏃ユ湡
+  bookTimeslot: number // 棰勭害鏃堕棿娈�
+  bookTime: Date // 棰勭害鍙戠敓鏃堕棿, 鐐瑰嚮棰勭害鐨勬椂闂�
+  bookCheckType: number // 棰勭害妫�鏌ョ被鍨�
+  paid: number //宸蹭粯娆�
 }
 
 // 棰勭害 API
@@ -32,6 +35,21 @@
   // 鏌ヨ棰勭害璇︽儏
   getAppointment: async (id: number) => {
     return await request.get({ url: `/ecg/appointment/get?id=` + id })
+  },
+
+  //
+  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 })
   },
 
   // 鏂板棰勭害
@@ -52,5 +70,11 @@
   // 瀵煎嚭棰勭害 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 })
   }
+
 }

--
Gitblit v1.9.3