From b4fe2c16274a91fee4fb26d91374f95fbe2dbcec Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 09 十一月 2026 15:28:21 +0800
Subject: [PATCH] 测试完成
---
src/views/sfstatistics/percentage/index.vue | 86 +++++++++++++++++++++++++++++++++++++++---
1 files changed, 79 insertions(+), 7 deletions(-)
diff --git a/src/views/sfstatistics/percentage/index.vue b/src/views/sfstatistics/percentage/index.vue
index b6cb27c..9fdb102 100644
--- a/src/views/sfstatistics/percentage/index.vue
+++ b/src/views/sfstatistics/percentage/index.vue
@@ -14,6 +14,7 @@
<el-select
v-model="queryParams.statisticaltype"
placeholder="璇烽�夋嫨缁熻绫诲瀷"
+ @change="handleQuery"
>
<el-option
v-for="item in Statisticallist"
@@ -57,8 +58,7 @@
<el-form-item label="鏈嶅姟绫诲瀷" prop="userName">
<el-select
- v-model="queryParams.serviceType"
- multiple
+ v-model="serviceTypeSingle"
placeholder="璇烽�夋嫨"
>
<el-option
@@ -66,6 +66,25 @@
:key="item.value"
:label="item.label"
:value="item.value"
+ />
+ </el-select>
+ </el-form-item>
+
+ <el-form-item label="浠诲姟" prop="taskIds">
+ <el-select
+ v-model="queryParams.taskIds"
+ multiple
+ filterable
+ clearable
+ collapse-tags
+ placeholder="璇烽�夋嫨浠诲姟"
+ style="width: 220px"
+ >
+ <el-option
+ v-for="item in taskList"
+ :key="item.taskid"
+ :label="item.taskName"
+ :value="item.taskid"
/>
</el-select>
</el-form-item>
@@ -230,7 +249,7 @@
import DetailDialog from "./components/DetailDialog.vue";
import TimelyRateDialog from "./components/TimelyRateDialog.vue";
import CombinedFollowUp from "./components/CombinedFollowUp.vue";
-import { getSfStatisticsHyperlink } from "@/api/AiCentre/index";
+import { getSfStatisticsHyperlink, getTasklist } from "@/api/AiCentre/index";
export default {
name: "Percentage",
@@ -254,8 +273,11 @@
options: this.$store.getters.tasktypes,
queryParams: {
serviceType: [2],
- dateRange: this.getLastMonthRange(),
- dateRangecy: [],
+ dateRange:
+ localStorage.getItem("orgname") == "涓芥按甯備腑鍖婚櫌"
+ ? this.getLastMonthRange()
+ : [],
+ dateRangecy: '',
statisticaltype:
localStorage.getItem("orgname") == "缂欎簯鍘夸汉姘戝尰闄�" ||
localStorage.getItem("orgname") == "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�"
@@ -263,6 +285,7 @@
: 1,
leavehospitaldistrictcodes: ["all"],
deptcodes: ["all"],
+ taskIds: [],
},
pickerOptions: {
shortcuts: [
@@ -297,6 +320,7 @@
},
flatArrayhospit: [],
flatArraydept: [],
+ taskList: [],
allDeptCodes: [],
allWardCodes: [],
showSearch: true,
@@ -318,8 +342,29 @@
},
};
},
+ 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();
+ // 褰撳墠鏈烘瀯涓轰附姘村競涓尰闄㈡椂锛屽簲闅忚鏃堕棿鑼冨洿榛樿鏈�杩戜竴涓湀骞剁洿鎺ュ簲鐢�
+ if (localStorage.getItem("orgname") == "涓芥按甯備腑鍖婚櫌") {
+ this.queryParams.startTime = this.parseTime(
+ this.queryParams.dateRange[0]
+ );
+ this.queryParams.endTime = this.parseTime(
+ this.queryParams.dateRange[1]
+ );
+ }
this.loadCurrentTabData();
},
methods: {
@@ -348,6 +393,11 @@
this.flatArraydept.push({ label: "鍏ㄩ儴", value: "all" });
this.flatArrayhospit.push({ label: "鍏ㄩ儴", value: "all" });
+
+ // 浠诲姟鍒楄〃锛堢敤浜庝换鍔$瓫閫夛級
+ getTasklist({ pageNum: 1, pageSize: 100 }).then((response) => {
+ this.taskList = response.rows || [];
+ });
},
// 娣诲姞鑾峰彇鏈�杩戜竴涓湀鏃堕棿鑼冨洿鐨勬柟娉�
getLastMonthRange() {
@@ -395,6 +445,9 @@
},
handleQuery() {
+ if (!this.queryParams.dateRange) this.queryParams.dateRange = [];
+ if (!this.queryParams.dateRangecy) this.queryParams.dateRangecy = [];
+
this.queryParams.startTime = this.parseTime(
this.queryParams.dateRange[0]
);
@@ -417,6 +470,7 @@
resetQuery() {
this.queryParams.dateRange = [];
this.queryParams.leavehospitaldistrictcodes = [];
+ this.queryParams.taskIds = [];
this.handleQuery();
},
@@ -468,6 +522,7 @@
if (type == 1) {
obj.drcode = row.drcode;
}
+ // 缁熻绫诲瀷锛氱梾鍖虹粺璁�(1)浼犵梾鍖篶ode锛岀瀹ょ粺璁�(2)浼犵瀹ode
if (this.queryParams.statisticaltype == 1) {
obj.leavehospitaldistrictcodes = [row.leavehospitaldistrictcode];
obj.deptcodes = [];
@@ -475,8 +530,23 @@
obj.deptcodes = [row.deptcode];
obj.leavehospitaldistrictcodes = [];
}
- obj.endTime = this.queryParams.endTime;
- obj.startTime = this.queryParams.startTime;
+ // 搴旈殢璁挎椂闂磋寖鍥�
+ if (this.queryParams.endTime) {
+ obj.endTime = this.queryParams.endTime;
+ obj.startTime = this.queryParams.startTime;
+ } else {
+ 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;
getSfStatisticsHyperlink(obj).then((response) => {
@@ -512,6 +582,8 @@
SeedetailsgGo(row) {
this.SeedetailsVisible = false;
+ this.infotitleVisible = false;
+
let type = "";
if (row.preachformson && row.preachformson.includes("3")) {
type = 1;
--
Gitblit v1.9.3