From fb34ba28cb908bd328cf6690ab0b19a56428f4e2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 13 十一月 2026 10:56:55 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/discharge/index.vue | 56 ++++++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 44 insertions(+), 12 deletions(-)
diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue
index 0e88fa5..5712ad2 100644
--- a/src/views/followvisit/discharge/index.vue
+++ b/src/views/followvisit/discharge/index.vue
@@ -142,6 +142,16 @@
</el-option>
</el-select>
</el-form-item>
+ <el-form-item
+ v-if="isTongdeCampus"
+ label="鏃ラ棿鏍囪"
+ prop="importanceFlagCode"
+ >
+ <el-input
+ v-model="topqueryParams.importanceFlagCode"
+ placeholder="璇疯緭鍏ユ棩闂存爣璁�"
+ ></el-input>
+ </el-form-item>
<el-form-item>
<el-button
@@ -467,6 +477,16 @@
key="currentPreachform"
prop="currentPreachform"
width="160"
+ :show-overflow-tooltip="true"
+ >
+ </el-table-column>
+ <el-table-column
+ v-if="isTongdeCampus"
+ label="鏃ラ棿鏍囪"
+ align="center"
+ key="importanceFlagCode"
+ prop="importanceFlagCode"
+ width="120"
:show-overflow-tooltip="true"
>
</el-table-column>
@@ -1421,6 +1441,7 @@
leaveldeptcodes: [],
leavehospitaldistrictcodes: [],
currentPreachforms: [],
+ importanceFlagCode: "",
},
orgname: "",
propss: { multiple: true },
@@ -1702,9 +1723,13 @@
// 鉁� 绗洓姝ワ細澶勭悊鍏朵粬鏁版嵁
if (refresh) {
this.yfsvalue = response.rows[0].yfs;
- // 椤堕儴鍗$墖鐨勬暟瀛椾笉璺熴�岄殢璁跨姸鎬�/寮傚父銆嶈蛋锛氬崟鐙煡涓�娆″幓鎺夌姸鎬佹潯浠剁殑缁熻锛�
- // 鍚﹀垯绛涗簡銆屽緟闅忚銆嶅悗銆屽凡瀹屾垚銆嶆案杩滄槸 0锛岀湅鐫�鍍忕畻閿欎簡
- this.refreshCardCounts(params);
+ if (this.isTongdeOrg) {
+ // 鐪佺珛鍚屽痉/鍗楀崕锛氶《閮ㄥ崱鐗囨暟瀛椾笉璺熴�岄殢璁跨姸鎬�/寮傚父銆嶈蛋锛屽崟鐙煡涓�娆″幓鎺夌姸鎬佹潯浠剁殑缁熻
+ this.refreshCardCounts(params);
+ } else {
+ // 鍏朵粬鍖婚櫌锛氶《閮ㄦ暟鎹窡闅忕瓫閫夋潯浠跺彉鍔紝鍗曟鏌ヨ鍗冲彲
+ this.setCardValues(response.rows[0]);
+ }
}
// 鉁� 绗簲姝ワ細澶勭悊 preachform 绛夊叾浠栨暟鎹�
@@ -1713,7 +1738,7 @@
if (item.endtime) {
item.endDay = this.daysBetween(item.endtime);
}
- console.log(item,'3');
+ console.log(item, "3");
if (item.preachform) {
item.preachformson = item.preachform;
@@ -2152,6 +2177,7 @@
leaveldeptcodes: [],
leavehospitaldistrictcodes: [],
currentPreachforms: [],
+ importanceFlagCode: "",
};
this.handleQuery(1);
},
@@ -2173,6 +2199,7 @@
leaveldeptcodes: [],
leavehospitaldistrictcodes: [],
currentPreachforms: [],
+ importanceFlagCode: "",
};
},
handleSelectionChange(rows) {
@@ -2495,6 +2522,18 @@
// 椤堕儴缁熻鍗$墖鐐瑰嚮锛氭妸瀵瑰簲绛涢�夋潯浠朵笅甯﹀埌涓嬮潰鐨勫垪琛紙鏁板�间负 0 鐨勫崱鐗囧悓鏍峰彲鐐癸級
// 椤堕儴鍗$墖缁熻锛氬幓鎺夈�岄殢璁跨姸鎬� / 寮傚父銆嶆潯浠跺悗鍐嶇粺璁★紝
// 杩欐牱鍗$墖鏁板瓧鍙窡鏃ユ湡銆佺瀹�/鐥呭尯绛夋潯浠惰蛋锛屼笉浼氬洜涓虹瓫浜嗐�屽緟闅忚銆嶅氨鎶娿�屽凡瀹屾垚銆嶇畻鎴� 0
+ // 鎶婁竴娆℃煡璇㈣繑鍥炵殑缁熻琛屽啓鍏ラ《閮ㄥ崱鐗�
+ setCardValues(row) {
+ if (!row) return;
+ this.cardlist[0].value = Number(row.wxsf || 0) + Number(row.xsf || 0);
+ this.cardlist[1].value = Number(row.wxsf) || 0;
+ this.cardlist[2].value = Number(row.xsf) || 0;
+ this.cardlist[3].value = Number(row.dsf) || 0;
+ this.cardlist[4].value = Number(row.fssb) || 0;
+ this.cardlist[5].value = Number(row.ywc) || 0;
+ this.ycvalue = Number(row.yc) || 0;
+ this.jgvalue = Number(row.jg) || 0;
+ },
async refreshCardCounts(baseQuery) {
const query = {
...(baseQuery || this.topqueryParams),
@@ -2512,14 +2551,7 @@
if (!res || !res.rows || !res.rows.length) {
return;
}
- this.cardlist[0].value = Number(row.wxsf || 0) + Number(row.xsf || 0);
- this.cardlist[1].value = Number(row.wxsf) || 0;
- this.cardlist[2].value = Number(row.xsf) || 0;
- this.cardlist[3].value = Number(row.dsf) || 0;
- this.cardlist[4].value = Number(row.fssb) || 0;
- this.cardlist[5].value = Number(row.ywc) || 0;
- this.ycvalue = Number(row.yc) || 0;
- this.jgvalue = Number(row.jg) || 0;
+ this.setCardValues(row);
} catch (e) {
console.warn("鍒锋柊椤堕儴鍗$墖缁熻澶辫触", e);
}
--
Gitblit v1.9.3