From a062db35a946c65352467a473990548987cd8b9e Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期二, 11 十一月 2025 09:59:25 +0800
Subject: [PATCH] fix:更新登录
---
app/api/hospital.js | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 53 insertions(+), 3 deletions(-)
diff --git a/app/api/hospital.js b/app/api/hospital.js
index 0607054..dc1d7d0 100644
--- a/app/api/hospital.js
+++ b/app/api/hospital.js
@@ -2,14 +2,16 @@
/**
* 鎼滅储鍖婚櫌
- * @param {string} keyword 鎼滅储鍏抽敭璇嶏紙鍖婚櫌鍚嶇О鎴栧湴鍧�锛�
+ * @param {string} keyword 鎼滅储鍏抽敭璇嶏紙鍖婚櫌鍚嶇О銆佸湴鍧�銆佺畝绉般�佺渷甯傚尯锛�
+ * @param {number} deptId 閮ㄩ棬ID锛堢敤浜庢牴鎹儴闂ㄥ尯鍩熼厤缃繃婊ゅ尰闄級
*/
-export function searchHospitals(keyword) {
+export function searchHospitals(keyword, deptId) {
return request({
url: '/system/hospital/search',
method: 'get',
params: {
- keyword: keyword
+ keyword: keyword,
+ deptId: deptId
}
})
}
@@ -27,3 +29,51 @@
}
})
}
+
+/**
+ * 鑾峰彇甯哥敤杞嚭鍖婚櫌鍒楄〃
+ * @param {string} serviceOrdClass 鍒嗗叕鍙哥紪鐮侊紙service_order_class锛�
+ * @param {string} region 鍦板煙鍏抽敭璇嶏紙鍙�夛級
+ */
+export function getFrequentOutHospitals(serviceOrdClass, region) {
+ return request({
+ url: '/system/hospital/frequent/out',
+ method: 'get',
+ params: {
+ serviceOrdClass: serviceOrdClass,
+ region: region
+ }
+ })
+}
+
+/**
+ * 鑾峰彇甯哥敤杞叆鍖婚櫌鍒楄〃
+ * @param {string} serviceOrdClass 鍒嗗叕鍙哥紪鐮侊紙service_order_class锛�
+ * @param {string} region 鍦板煙鍏抽敭璇嶏紙鍙�夛級
+ */
+export function getFrequentInHospitals(serviceOrdClass, region) {
+ return request({
+ url: '/system/hospital/frequent/in',
+ method: 'get',
+ params: {
+ serviceOrdClass: serviceOrdClass,
+ region: region
+ }
+ })
+}
+
+/**
+ * 鏍规嵁閮ㄩ棬鍖哄煙閰嶇疆鎼滅储鍖婚櫌锛堟敮鎸佸绾у尯鍩燂級
+ * @param {string} keyword 鎼滅储鍏抽敭璇�
+ * @param {number} deptId 閮ㄩ棬ID
+ */
+export function searchHospitalsByDeptRegion(keyword, deptId) {
+ return request({
+ url: '/system/hospital/search/by-dept-region',
+ method: 'get',
+ params: {
+ keyword: keyword,
+ deptId: deptId
+ }
+ })
+}
--
Gitblit v1.9.1