From 61c4c3f45e4257e2e7662f033e2719e62366c632 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期二, 31 三月 2026 23:02:22 +0800
Subject: [PATCH] feat: 优化申请发票,还可以修改发票信息

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

diff --git a/app/api/hospital.js b/app/api/hospital.js
index 0607054..2551dbb 100644
--- a/app/api/hospital.js
+++ b/app/api/hospital.js
@@ -2,14 +2,18 @@
 
 /**
  * 鎼滅储鍖婚櫌
- * @param {string} keyword 鎼滅储鍏抽敭璇嶏紙鍖婚櫌鍚嶇О鎴栧湴鍧�锛�
+ * @param {string} keyword 鎼滅储鍏抽敭璇嶏紙鍖婚櫌鍚嶇О銆佸湴鍧�銆佺畝绉般�佺渷甯傚尯锛�
+ * @param {number} deptId 閮ㄩ棬ID锛堢敤浜庢牴鎹儴闂ㄥ尯鍩熼厤缃繃婊ゅ尰闄級
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛屽湪鍓嶇澶勭悊锛�
  */
-export function searchHospitals(keyword) {
+export function searchHospitals(keyword, deptId, limit = 50) {
   return request({
     url: '/system/hospital/search',
     method: 'get',
     params: {
-      keyword: keyword
+      keyword: keyword,
+      deptId: deptId,
+      pageSize: limit
     }
   })
 }
@@ -27,3 +31,75 @@
     }
   })
 }
+
+/**
+ * 鑾峰彇甯哥敤杞嚭鍖婚櫌鍒楄〃
+ * @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
+    }
+  })
+}
+
+/**
+ * 鍩轰簬鍒嗚瘝鍖归厤鎼滅储鍖婚櫌锛堟柊绠楁硶锛屾櫤鑳藉垎璇�+璇勫垎鎺掑簭锛�
+ * @param {string} searchText 鎼滅储鏂囨湰
+ * @param {number} deptId 閮ㄩ棬ID锛堝彲閫夛紝鐢ㄤ簬鍖哄煙杩囨护锛�
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛�
+ */
+export function searchHospitalsByKeywords(searchText, deptId, limit = 50) {
+  return request({
+    url: '/system/hospital/searchByKeywords',
+    method: 'get',
+    params: {
+      searchText: searchText,
+      deptId: deptId,
+      pageSize: limit
+    }
+  })
+}

--
Gitblit v1.9.1