From d553a4be94d4f6ee162cc353a28b220403909cfc Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期六, 03 十月 2026 00:58:19 +0800
Subject: [PATCH] ai优化
---
src/api/ecg/appointment/index.ts | 66 +++++++++++++++++++++++++++++---
1 files changed, 59 insertions(+), 7 deletions(-)
diff --git a/src/api/ecg/appointment/index.ts b/src/api/ecg/appointment/index.ts
index d980b96..c8aa681 100644
--- a/src/api/ecg/appointment/index.ts
+++ b/src/api/ecg/appointment/index.ts
@@ -2,9 +2,14 @@
// 棰勭害 VO
export interface AppointmentVO {
+ id: number,
+ applyNo: string // 棰勭害鐢宠缂栧彿
+ episodeId: string //灏辫瘖娴佹按鍙�
+ patSrc: number
+ tolerance:number// 鏄惁鑰愯嵂
patId: string // 鎮h�呯紪鍙�
patName: string // 鎮h�呭鍚�
- patGender: boolean // 鎮h�呮�у埆
+ patGender: number // 鎮h�呮�у埆
patBirthday: Date // 鎮h�呯敓鏃�
patMobile: string // 鎮h�呮墜鏈�
patPhone: string // 鎮h�呯數璇�
@@ -15,11 +20,28 @@
patWardCode: string // 鎮h�呮墍鍦ㄧ梾鍖轰唬鐮�
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 //宸蹭粯娆�
+ bookSeqNum: number
+ // ========== 浠ヤ笅瀛楁鍚庣 AppointmentRespVO 涓�鐩存湁杩斿洖锛屾鍓� TS 鏈0鏄� ==========
+ // 闇�姹�1 浣跨敤锛氱姸鎬� / 寮�鍗曞尰甯� / 寮�鍗曟棩鏈� / 璺濅粖澶╂暟锛堢敱 doctorTime 璁$畻锛�/ 灏辫瘖鍗″彿
+ status?: string // 鐘舵�侊紙瀛楀吀 ecg_status锛�
+ doctor?: string // 寮�鍗曞尰甯�
+ doctorCode?: string // 寮�鍗曞尰甯堜唬鐮�
+ doctorTime?: Date | number | string // 寮�鍗曟棩鏈燂紙寮�鍗曟椂闂达級
+ registerDate?: Date | number | string // 鐧昏鏃堕棿
+ hospitalNo?: string // 浣忛櫌鍙�
+ medicalCard?: string // 灏辫瘖鍗″彿锛堝簱涓涓虹┖锛岄〉闈㈠洖閫�鍒� outpatientNo锛�
+ doctorAdviceNo?: string // 鍖诲槺鍙凤紙HIS root 2.16.156.10011.1.28锛涘簱涓巻鍙叉暟鎹负绌猴級
+ outpatientNo?: string // 闂ㄨ瘖鍙凤紙瀹炴祴閮ㄥ垎鏁版嵁瀛樼殑鏄韩浠借瘉鍙凤級
+ bookSrc?: number // 棰勭害鏉ユ簮锛�0浜哄伐 10骞冲彴
+ roomName?: string // 璇婂鍚嶇О
+ remark?: string // 澶囨敞
+ jjbz?: string // 鍔犳�ユ爣璁�
+ createTime?: Date | number | string // 鍒涘缓鏃堕棿
}
// 棰勭害 API
@@ -34,9 +56,28 @@
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 })
+ },
+
// 鏂板棰勭害
createAppointment: async (data: AppointmentVO) => {
return await request.post({ url: `/ecg/appointment/create`, data })
+ },
+ // 鐘舵�佹洿鏂�
+ alterAppointment: async (data: AppointmentVO) => {
+ return await request.post({ url: `/ecg/appointment/updateStatus`, data })
},
// 淇敼棰勭害
@@ -52,5 +93,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 })
}
-}
\ No newline at end of file
+
+}
--
Gitblit v1.9.3