| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="服务类型" prop="userName"> |
| | | <el-select |
| | | v-model="serviceTypeSingle" |
| | | placeholder="请选择" |
| | | > |
| | | <el-select v-model="serviceTypeSingle" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :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> |
| | |
| | | /> |
| | | </el-tab-pane> |
| | | |
| | | <!-- 出院随访分析:患者表单 + 随访问卷题目占比(表/柱状图/饼图) --> |
| | | <el-tab-pane |
| | | label="患者随访信息表单" |
| | | name="followupForm" |
| | | v-if="isTongdeOrg" |
| | | > |
| | | <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" |
| | | v-if="isTongdeOrg" |
| | | > |
| | | <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" |
| | | v-if="isTongdeOrg" |
| | | > |
| | | <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" |
| | | v-if="isTongdeOrg" |
| | | > |
| | | <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" |
| | | v-if="orgname == '省立同德翠苑院区'" |
| | | v-if="isTongdeCampus" |
| | | > |
| | | <ContinuedCare |
| | | ref="continuedCare" |
| | |
| | | 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 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, getTasklist } from "@/api/AiCentre/index"; |
| | | |
| | | export default { |
| | | name: "Percentage", |
| | | mixins: [followupAnalysisMixin], |
| | | components: { |
| | | FirstFollowUp, |
| | | SecondFollowUp, |
| | |
| | | DetailDialog, |
| | | TimelyRateDialog, |
| | | CombinedFollowUp, |
| | | FollowupPatientTable, |
| | | QuestionRatioTable, |
| | | QuestionChart, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | options: this.$store.getters.tasktypes, |
| | | queryParams: { |
| | | serviceType: [2], |
| | | dateRange: [], |
| | | dateRangecy: this.getLastMonthRange(), |
| | | dateRange: |
| | | localStorage.getItem("orgname") == "丽水市中医院" |
| | | ? this.getLastMonthRange() |
| | | : [], |
| | | dateRangecy: "", |
| | | statisticaltype: |
| | | localStorage.getItem("orgname") == "缙云县人民医院" || |
| | | localStorage.getItem("orgname") == "景宁畲族自治县人民医院" |
| | |
| | | : 1, |
| | | leavehospitaldistrictcodes: ["all"], |
| | | deptcodes: ["all"], |
| | | taskIds: [], |
| | | }, |
| | | pickerOptions: { |
| | | shortcuts: [ |
| | |
| | | }, |
| | | flatArrayhospit: [], |
| | | flatArraydept: [], |
| | | taskList: [], |
| | | allDeptCodes: [], |
| | | allWardCodes: [], |
| | | showSearch: true, |
| | |
| | | }, |
| | | 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: { |
| | |
| | | |
| | | this.flatArraydept.push({ label: "全部", value: "all" }); |
| | | this.flatArrayhospit.push({ label: "全部", value: "all" }); |
| | | |
| | | // 任务列表(用于任务筛选) |
| | | getTasklist({ pageNum: 1, pageSize: 100 }).then((response) => { |
| | | this.taskList = response.rows || []; |
| | | }); |
| | | }, |
| | | // 添加获取最近一个月时间范围的方法 |
| | | getLastMonthRange() { |
| | |
| | | }, |
| | | 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(); |
| | | }, |
| | | |
| | |
| | | } |
| | | |
| | | 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() { |
| | | this.queryParams.dateRange = []; |
| | | this.queryParams.leavehospitaldistrictcodes = []; |
| | | this.queryParams.taskIds = []; |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | |
| | | 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; |
| | | } |
| | | }, |
| | |
| | | if (type == 1) { |
| | | obj.drcode = row.drcode; |
| | | } |
| | | // 统计类型:病区统计(1)传病区code,科室统计(2)传科室code |
| | | if (this.queryParams.statisticaltype == 1) { |
| | | obj.leavehospitaldistrictcodes = [row.leavehospitaldistrictcode]; |
| | | obj.deptcodes = []; |
| | |
| | | obj.deptcodes = [row.deptcode]; |
| | | obj.leavehospitaldistrictcodes = []; |
| | | } |
| | | // 应随访时间范围 |
| | | 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; |
| | |
| | | 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; |
| | | } |