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 | 40 +++++++++++++++++++++++++++++++++++++++-
1 files changed, 39 insertions(+), 1 deletions(-)
diff --git a/src/views/patient/patient/behospitalized.vue b/src/views/patient/patient/behospitalized.vue
index e35a72e..f1f22c6 100644
--- a/src/views/patient/patient/behospitalized.vue
+++ b/src/views/patient/patient/behospitalized.vue
@@ -66,6 +66,17 @@
end-placeholder="缁撴潫鏃ユ湡"
></el-date-picker>
</el-form-item>
+ <el-form-item label="搴婂彿鎺掑簭" prop="bedSort">
+ <el-select
+ v-model="queryParams.bedSort"
+ placeholder="涓嶆寜搴婂彿鎺掑簭"
+ style="width: 160px"
+ >
+ <el-option label="涓嶆寜搴婂彿鎺掑簭" :value="null"></el-option>
+ <el-option label="鎸夊簥鍙锋搴�" :value="1"></el-option>
+ <el-option label="鎸夊簥鍙峰�掑簭" :value="2"></el-option>
+ </el-select>
+ </el-form-item>
<el-row>
<el-form-item>
@@ -767,6 +778,7 @@
pageNum: 1,
pageSize: 10,
cry: 0,
+ bedSort: null,
searchscope: 3,
scopetype: [],
leaveldeptcodes: [],
@@ -807,12 +819,33 @@
/** 鏌ヨ鎮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 }) {
@@ -848,6 +881,10 @@
this.queryParams.leaveldeptcodes.push(code);
this.queryParams.leavehospitaldistrictcodes = [];
this.queryParams.searchscope = 1;
+ } else if (type == 2) {
+ this.queryParams.leavehospitaldistrictcodes.push(code);
+ this.queryParams.leaveldeptcodes = [];
+ this.queryParams.searchscope = 2;
} else if (type == 3) {
this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
(obj) => obj.deptCode
@@ -1118,6 +1155,7 @@
pageNum: 1,
pageSize: 10,
cry: 0,
+ bedSort: null,
searchscope: 3,
scopetype: [],
leaveldeptcodes: [],
--
Gitblit v1.9.3