From d90b45d7e9e38e34c044b772006004f2a4cb8b8e Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 26 六月 2026 13:51:50 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/discharge/index.vue | 34 ++++++++++++++++++++++++----------
1 files changed, 24 insertions(+), 10 deletions(-)
diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue
index dfe664f..8725d92 100644
--- a/src/views/followvisit/discharge/index.vue
+++ b/src/views/followvisit/discharge/index.vue
@@ -94,6 +94,8 @@
:options="sourcetype"
:props="{ expandTrigger: 'hover' }"
@change="handleChange"
+ filterable
+ clearable
></el-cascader>
</el-form-item>
@@ -486,7 +488,6 @@
prop="nurseName"
/>
<el-table-column
- v-if="orgname != '涓芥按甯備腑鍖婚櫌'"
label="缁忕鍖荤敓"
align="center"
key="managementDoctor"
@@ -1096,7 +1097,7 @@
dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」
inputVisible: false,
Labelchange: false,
- ycvalue: "",
+ ycvalue: 0,
jgvalue: "",
yfsvalue: "",
inputValue: "",
@@ -1205,7 +1206,8 @@
btstatus: "",
},
// endOut: 1,
- endOut: localStorage.getItem("orgname") == "涓芥按甯備腑鍖婚櫌" ? 0 : 1, //0 鍑洪櫌鏃堕棿(姝e簭) 1 鍑洪櫌鏃堕棿(鍊掑簭) 2 鍙戦�佹椂闂�(姝e簭) 3 鍙戦�佹椂闂�(鍊掑簭) 7搴旈殢璁挎棩鏈�(鍊掑簭) 搴旈殢璁挎棩鏈�(姝e簭)
+ endOut:
+ localStorage.getItem("orgname") == "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�" ? 0 : 1, //0 鍑洪櫌鏃堕棿(姝e簭) 1 鍑洪櫌鏃堕棿(鍊掑簭) 2 鍙戦�佹椂闂�(姝e簭) 3 鍙戦�佹椂闂�(鍊掑簭) 7搴旈殢璁挎棩鏈�(鍊掑簭) 搴旈殢璁挎棩鏈�(姝e簭)
endOuts: [
{
value: 0,
@@ -1362,10 +1364,9 @@
// 鐩戝惉璺敱鍙傛暟鍙樺寲
"$route.query": {
handler(newQuery, oldQuery) {
- if (newQuery.errtype !== oldQuery.errtype) {
+ if (newQuery?.errtype !== oldQuery?.errtype) {
console.log(22);
-
- this.loadData(); // 閲嶆柊鍔犺浇鏁版嵁
+ this.loadData();
}
},
immediate: true,
@@ -1478,7 +1479,7 @@
Number(response.rows[0].wxsf) + Number(response.rows[0].xsf) || 0;
// this.cardlist[1].value = response.rows[0].wzx;
this.cardlist[1].value = response.rows[0].wxsf || 0;
- this.ycvalue = response.rows[0].yc;
+ this.ycvalue = Number(response.rows[0].yc) || 0;
this.jgvalue = response.rows[0].jg;
this.cardlist[2].value = response.rows[0].xsf || 0;
this.cardlist[3].value = response.rows[0].dsf || 0;
@@ -1589,7 +1590,7 @@
Number(response.rows[0].wxsf) + Number(response.rows[0].xsf) || 0;
this.cardlist[1].value = response.rows[0].wzx;
this.cardlist[2].value = response.rows[0].ysf;
- this.ycvalue = response.rows[0].yc;
+ this.ycvalue = Number(response.rows[0].yc) || 0;
this.jgvalue = response.rows[0].jg;
this.cardlist[3].value = response.rows[0].fssb;
this.cardlist[4].value = response.rows[0].dsf;
@@ -1694,10 +1695,20 @@
},
// 鎮h�呰寖鍥村鐞�
handleChange(value) {
- let type = value[0];
- let code = value.slice(-1)[0];
+ console.log("閫夋嫨鐨勬偅鑰呰寖鍥�:", value);
+
+ // 娓呯┖涔嬪墠鐨勬煡璇㈠弬鏁�
this.topqueryParams.leavehospitaldistrictcodes = [];
this.topqueryParams.leaveldeptcodes = [];
+ this.topqueryParams.searchscope = null;
+
+ if (!value || value.length === 0) {
+ return;
+ }
+
+ let type = value[0];
+ let code = value.slice(-1)[0];
+
if (type == 1) {
this.topqueryParams.leaveldeptcodes.push(code);
this.topqueryParams.leavehospitaldistrictcodes = [];
@@ -1761,6 +1772,8 @@
this.handleQuery(1);
},
handleSelectionChange(rows) {
+ console.log(rows, 911);
+
this.selectedRows = rows.map((row) => {
// 鍒濆鍖栬瘎鍒嗗瓧娈�
return {
@@ -2080,6 +2093,7 @@
const originalPageSize = this.topqueryParams.pageSize;
this.topqueryParams.pageNum = null;
this.topqueryParams.pageSize = null;
+ this.topqueryParams.subIdList = this.selectedRows.map((item) => item.id);
this.download(
"smartor/serviceSubtask/patItemExport",
{
--
Gitblit v1.9.3