From d6aa663043a23bb37f1c712a19424690c5a2062f Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 03 十一月 2026 09:35:12 +0800
Subject: [PATCH] nhfy@0230
---
src/views/sfstatistics/percentage/index.vue | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 105 insertions(+), 0 deletions(-)
diff --git a/src/views/sfstatistics/percentage/index.vue b/src/views/sfstatistics/percentage/index.vue
index 9171a12..83946c0 100644
--- a/src/views/sfstatistics/percentage/index.vue
+++ b/src/views/sfstatistics/percentage/index.vue
@@ -172,6 +172,63 @@
/>
</el-tab-pane>
+ <!-- 鍑洪櫌闅忚鍒嗘瀽锛氭偅鑰呰〃鍗� + 闅忚闂嵎棰樼洰鍗犳瘮锛堣〃/鏌辩姸鍥�/楗煎浘锛� -->
+ <el-tab-pane label="鎮h�呴殢璁夸俊鎭〃鍗�" name="followupForm">
+ <div v-if="followupTaskName" class="analysis-task-title">
+ 浠诲姟鍚嶇О锛歿{ followupTaskName }}
+ </div>
+ <followup-patient-table
+ v-if="activeTab === 'followupForm'"
+ ref="followupFormRef"
+ :rows="followupRows"
+ :meta="followupPatientMeta"
+ :loading="followupRowsLoading"
+ />
+ </el-tab-pane>
+ <el-tab-pane label="闂璇︽儏鍗犳瘮" name="followupRatio">
+ <div v-if="followupTaskName" class="analysis-task-title">
+ 浠诲姟鍚嶇О锛歿{ followupTaskName }}
+ </div>
+ <question-ratio-table
+ v-if="activeTab === 'followupRatio'"
+ ref="followupRatioRef"
+ hide-index
+ hide-type
+ :topic-list="followupTopics"
+ :loading="followupTopicLoading"
+ />
+ </el-tab-pane>
+ <el-tab-pane label="闂璇︽儏鍗犳瘮鍥捐〃" name="followupBar">
+ <div v-if="followupTaskName" class="analysis-task-title">
+ 浠诲姟鍚嶇О锛歿{ followupTaskName }}
+ </div>
+ <question-chart
+ v-if="activeTab === 'followupBar'"
+ ref="followupBarRef"
+ view="bar"
+ hide-index
+ :columns="2"
+ :chart-height="320"
+ :topic-list="followupTopics"
+ :loading="followupTopicLoading"
+ />
+ </el-tab-pane>
+ <el-tab-pane label="闂璇︽儏鍗犳瘮楗煎浘" name="followupPie">
+ <div v-if="followupTaskName" class="analysis-task-title">
+ 浠诲姟鍚嶇О锛歿{ followupTaskName }}
+ </div>
+ <question-chart
+ v-if="activeTab === 'followupPie'"
+ ref="followupPieRef"
+ view="pie"
+ hide-index
+ :columns="2"
+ :chart-height="320"
+ :topic-list="followupTopics"
+ :loading="followupTopicLoading"
+ />
+ </el-tab-pane>
+
<el-tab-pane
label="寤剁画鎶ょ悊缁熻"
name="continued"
@@ -230,10 +287,15 @@
import DetailDialog from "./components/DetailDialog.vue";
import TimelyRateDialog from "./components/TimelyRateDialog.vue";
import CombinedFollowUp from "./components/CombinedFollowUp.vue";
+import FollowupPatientTable from "./components/FollowupPatientTable.vue";
+import QuestionRatioTable from "@/views/Satisfaction/sfstatistics/components/QuestionRatioTable.vue";
+import QuestionChart from "@/views/Satisfaction/sfstatistics/components/QuestionChart.vue";
+import followupAnalysisMixin from "./followupAnalysisMixin";
import { getSfStatisticsHyperlink } from "@/api/AiCentre/index";
export default {
name: "Percentage",
+ mixins: [followupAnalysisMixin],
components: {
FirstFollowUp,
SecondFollowUp,
@@ -242,6 +304,9 @@
DetailDialog,
TimelyRateDialog,
CombinedFollowUp,
+ FollowupPatientTable,
+ QuestionRatioTable,
+ QuestionChart,
},
data() {
return {
@@ -386,6 +451,17 @@
},
handleTabClick(tab) {
this.activeTab = tab.name;
+ if (tab.name === "first") {
+ this.setAnalysisVisitCount(1);
+ } else if (tab.name === "second") {
+ this.setAnalysisVisitCount(2);
+ } else if (tab.name === "followupForm") {
+ this.loadFollowupAnalysis();
+ } else if (
+ ["followupRatio", "followupBar", "followupPie"].includes(tab.name)
+ ) {
+ this.ensureFollowupQuestionStats();
+ }
this.loadCurrentTabData();
},
@@ -427,6 +503,16 @@
}
this.loadCurrentTabData();
+ const promise = this.loadFollowupAnalysis(true);
+ if (
+ ["followupRatio", "followupBar", "followupPie"].includes(
+ this.activeTab
+ )
+ ) {
+ if (promise && typeof promise.then === "function") {
+ promise.then(() => this.loadFollowupQuestionStats());
+ }
+ }
},
resetQuery() {
@@ -448,6 +534,18 @@
break;
case "combined":
await this.$refs.combinedFollowUp.exportTable();
+ break;
+ case "followupForm":
+ await this.$refs.followupFormRef.exportExcel();
+ break;
+ case "followupRatio":
+ await this.$refs.followupRatioRef.exportExcel();
+ break;
+ case "followupBar":
+ await this.$refs.followupBarRef.exportExcel();
+ break;
+ case "followupPie":
+ await this.$refs.followupPieRef.exportExcel();
break;
}
},
@@ -576,6 +674,13 @@
border: 1px solid #dcdfe6;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
+ .analysis-task-title {
+ margin-bottom: 10px;
+ font-size: 14px;
+ font-weight: 600;
+ color: #303133;
+ }
+
.search-section {
margin-bottom: 20px;
}
--
Gitblit v1.9.3