From 6e7f546cc37ed57e7e2eda4fdfc32fa2b3e0160c Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 20 十月 2026 17:41:10 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/patient/behospitalized.vue | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/src/views/patient/patient/behospitalized.vue b/src/views/patient/patient/behospitalized.vue
index 555eb68..f1f22c6 100644
--- a/src/views/patient/patient/behospitalized.vue
+++ b/src/views/patient/patient/behospitalized.vue
@@ -819,13 +819,34 @@
/** 鏌ヨ鎮h�呭垪琛� */
getList() {
this.loading = true;
- listpatient(this.queryParams).then((response) => {
+ listpatient(this.buildListQueryParams()).then((response) => {
console.log(response);
this.userList = response.rows;
this.total = response.total;
this.loading = false;
});
},
+ /**
+ * 缁勮 listpatient 鍏ュ弬锛�
+ * cry = 0 涓旂櫥褰曟満鏋勪负銆岀渷绔嬪悓寰风繝鑻戦櫌鍖� / 鍗楀崕澶у闄勫睘绗竴鍖婚櫌銆嶆椂锛�
+ * 绉戝/鐥呭尯瀛楁 leaveldeptcodes銆乴eavehospitaldistrictcodes 闇�鎹㈡垚
+ * deptcodeList銆乭ospitaldistrictcodeList銆�
+ */
+ buildListQueryParams() {
+ const params = { ...this.queryParams };
+ const orgname = localStorage.getItem("orgname");
+ const needRename =
+ params.cry === 0 &&
+ (orgname === "鐪佺珛鍚屽痉缈犺嫅闄㈠尯" ||
+ orgname === "鍗楀崕澶у闄勫睘绗竴鍖婚櫌");
+ if (needRename) {
+ params.deptcodeList = params.leaveldeptcodes;
+ params.hospitaldistrictcodeList = params.leavehospitaldistrictcodes;
+ delete params.leaveldeptcodes;
+ delete params.leavehospitaldistrictcodes;
+ }
+ return params;
+ },
/** 琛ㄦ牸琛屾牱寮� */
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 === 0) {
--
Gitblit v1.9.3