From 39c8b288ec8294e026459dfb1955f0bbc49ebb52 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 19 十月 2026 11:10:40 +0800
Subject: [PATCH] 测试完成
---
src/views/sfstatistics/percentage/index.vue | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/views/sfstatistics/percentage/index.vue b/src/views/sfstatistics/percentage/index.vue
index a542f86..9171a12 100644
--- a/src/views/sfstatistics/percentage/index.vue
+++ b/src/views/sfstatistics/percentage/index.vue
@@ -58,8 +58,7 @@
<el-form-item label="鏈嶅姟绫诲瀷" prop="userName">
<el-select
- v-model="queryParams.serviceType"
- multiple
+ v-model="serviceTypeSingle"
placeholder="璇烽�夋嫨"
>
<el-option
@@ -319,6 +318,18 @@
},
};
},
+ computed: {
+ // 鏈嶅姟绫诲瀷鍗曢�夛細UI 缁戝畾鍗曞�硷紝鍐呴儴浠嶄互鏁扮粍褰㈠紡浼犵粰鍚庣
+ serviceTypeSingle: {
+ get() {
+ const st = this.queryParams.serviceType;
+ return Array.isArray(st) ? st[0] : st;
+ },
+ set(val) {
+ this.queryParams.serviceType = val == null || val === "" ? [] : [val];
+ },
+ },
+ },
created() {
this.getDeptTree();
this.loadCurrentTabData();
@@ -472,6 +483,7 @@
if (type == 1) {
obj.drcode = row.drcode;
}
+ // 缁熻绫诲瀷锛氱梾鍖虹粺璁�(1)浼犵梾鍖篶ode锛岀瀹ょ粺璁�(2)浼犵瀹ode
if (this.queryParams.statisticaltype == 1) {
obj.leavehospitaldistrictcodes = [row.leavehospitaldistrictcode];
obj.deptcodes = [];
@@ -479,6 +491,7 @@
obj.deptcodes = [row.deptcode];
obj.leavehospitaldistrictcodes = [];
}
+ // 搴旈殢璁挎椂闂磋寖鍥�
if (this.queryParams.endTime) {
obj.endTime = this.queryParams.endTime;
obj.startTime = this.queryParams.startTime;
@@ -486,6 +499,14 @@
obj.startTime = this.parseTime(this.queryParams.dateRange[0]);
obj.endTime = this.parseTime(this.queryParams.dateRange[1]);
}
+ // 鍑洪櫌鏃堕棿鑼冨洿
+ if (this.queryParams.hospitalEndTime) {
+ obj.hospitalEndTime = this.queryParams.hospitalEndTime;
+ obj.hospitalStartTime = this.queryParams.hospitalStartTime;
+ } else {
+ obj.hospitalStartTime = this.parseTime(this.queryParams.dateRangecy[0]);
+ obj.hospitalEndTime = this.parseTime(this.queryParams.dateRangecy[1]);
+ }
obj.statisticaltype = this.queryParams.statisticaltype;
--
Gitblit v1.9.3