From fd047fa7234dc11643dab8ecbf38e8d7a8ba0854 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 22 十一月 2025 23:48:12 +0800
Subject: [PATCH] feat:修改任务

---
 app/api/hospital.js |   62 +++++++++++++++++++++++++++++-
 1 files changed, 59 insertions(+), 3 deletions(-)

diff --git a/app/api/hospital.js b/app/api/hospital.js
index d962fe7..39e474f 100644
--- a/app/api/hospital.js
+++ b/app/api/hospital.js
@@ -3,15 +3,17 @@
 /**
  * 鎼滅储鍖婚櫌
  * @param {string} keyword 鎼滅储鍏抽敭璇嶏紙鍖婚櫌鍚嶇О銆佸湴鍧�銆佺畝绉般�佺渷甯傚尯锛�
- * @param {string} region 鍦板煙鍏抽敭璇嶏紙鐢ㄤ簬杩囨护鐪佸競鍖猴級
+ * @param {number} deptId 閮ㄩ棬ID锛堢敤浜庢牴鎹儴闂ㄥ尯鍩熼厤缃繃婊ゅ尰闄級
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛屽湪鍓嶇澶勭悊锛�
  */
-export function searchHospitals(keyword, region) {
+export function searchHospitals(keyword, deptId, limit = 50) {
   return request({
     url: '/system/hospital/search',
     method: 'get',
     params: {
       keyword: keyword,
-      region: region
+      deptId: deptId,
+      pageSize: limit
     }
   })
 }
@@ -29,3 +31,57 @@
     }
   })
 }
+
+/**
+ * 鑾峰彇甯哥敤杞嚭鍖婚櫌鍒楄〃
+ * @param {string} serviceOrdClass 鍒嗗叕鍙哥紪鐮侊紙service_order_class锛�
+ * @param {string} region 鍦板煙鍏抽敭璇嶏紙鍙�夛級
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛�
+ */
+export function getFrequentOutHospitals(serviceOrdClass, region, limit = 50) {
+  return request({
+    url: '/system/hospital/frequent/out',
+    method: 'get',
+    params: {
+      serviceOrdClass: serviceOrdClass,
+      region: region,
+      pageSize: limit
+    }
+  })
+}
+
+/**
+ * 鑾峰彇甯哥敤杞叆鍖婚櫌鍒楄〃
+ * @param {string} serviceOrdClass 鍒嗗叕鍙哥紪鐮侊紙service_order_class锛�
+ * @param {string} region 鍦板煙鍏抽敭璇嶏紙鍙�夛級
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛�
+ */
+export function getFrequentInHospitals(serviceOrdClass, region, limit = 50) {
+  return request({
+    url: '/system/hospital/frequent/in',
+    method: 'get',
+    params: {
+      serviceOrdClass: serviceOrdClass,
+      region: region,
+      pageSize: limit
+    }
+  })
+}
+
+/**
+ * 鏍规嵁閮ㄩ棬鍖哄煙閰嶇疆鎼滅储鍖婚櫌锛堟敮鎸佸绾у尯鍩燂級
+ * @param {string} keyword 鎼滅储鍏抽敭璇�
+ * @param {number} deptId 閮ㄩ棬ID
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛屽湪鍓嶇澶勭悊锛�
+ */
+export function searchHospitalsByDeptRegion(keyword, deptId, limit = 50) {
+  return request({
+    url: '/system/hospital/search/by-dept-region',
+    method: 'get',
+    params: {
+      keyword: keyword,
+      deptId: deptId,
+      pageSize: limit
+    }
+  })
+}

--
Gitblit v1.9.1