| src/views/Satisfaction/sfstatistics/components/FollowupStatistics.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/Satisfaction/sfstatistics/components/visitStatistics.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/followvisit/again/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/followvisit/discharge/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/followvisit/operation/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/followvisit/operationAgain/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/followvisit/record/detailpage/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/knowledge/questionnaire/compilequer/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/login.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/sfstatistics/percentage/components/FirstFollowUp.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| vue.config.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/Satisfaction/sfstatistics/components/FollowupStatistics.vue
@@ -1509,10 +1509,7 @@ const topic = topiclist[key]; if (!topic || !topic.scriptContent) return; const tKey = topic.scriptid != null && topic.scriptid !== "" ? String(topic.scriptid) : topic.scriptContent; const tKey = topic.scriptContent; if (!topicMap.has(tKey)) { topicMap.set(tKey, { src/views/Satisfaction/sfstatistics/components/visitStatistics.vue
@@ -892,10 +892,7 @@ const topic = topiclist[key]; if (!topic || !topic.scriptContent) return; const tKey = topic.scriptid != null && topic.scriptid !== "" ? String(topic.scriptid) : topic.scriptContent; const tKey = topic.scriptContent; if (!topicMap.has(tKey)) { topicMap.set(tKey, { src/views/followvisit/again/index.vue
@@ -45,6 +45,17 @@ end-placeholder="结束日期" ></el-date-picker> </el-form-item> <el-form-item label="随访完成时间"> <el-date-picker v-model="dateRangefts" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" ></el-date-picker> </el-form-item> <el-form-item label="患者姓名" prop="sendname"> <el-input @@ -871,6 +882,7 @@ // 日期范围 dateRange: [], dateRangefs: [], dateRangefts: [], // 岗位选项 postOptions: [], ruleForm: { @@ -1379,7 +1391,8 @@ this.topqueryParams.endOutHospTime = this.dateRange[1]; this.topqueryParams.startSendDateTime = this.dateRangefs[0]; this.topqueryParams.endSendDateTime = this.dateRangefs[1]; console.log("2"); this.topqueryParams.finishtimeStart = this.dateRangefts[0]; this.topqueryParams.finishtimeEnd = this.dateRangefts[1]; this.getList(refresh); }, // 患者范围处理 @@ -1438,6 +1451,7 @@ resetQuery() { this.dateRange = []; this.dateRangefs = []; this.dateRangefts = []; this.serviceStatusValue = 10; this.topqueryParams = { src/views/followvisit/discharge/index.vue
@@ -47,6 +47,17 @@ end-placeholder="结束日期" ></el-date-picker> </el-form-item> <el-form-item label="随访完成时间"> <el-date-picker v-model="dateRangefts" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" ></el-date-picker> </el-form-item> <el-form-item label="患者姓名" prop="sendname"> <el-input @@ -1245,6 +1256,7 @@ // 日期范围 dateRange: [], dateRangefs: [], dateRangefts: [], // 岗位选项 postOptions: [], ruleForm: { @@ -1701,7 +1713,8 @@ try { // 当前执行方式为多选,需转成逗号分隔字符串(如 1,2,5) const params = { ...this.topqueryParams }; // 叠加顶部卡片点击带来的临时筛选(cardFilter) const params = this.applyCardFilter({ ...this.topqueryParams }); if (Array.isArray(params.currentPreachforms)) { params.currentPreachforms = params.currentPreachforms.join(","); } @@ -1979,6 +1992,8 @@ this.topqueryParams.endOutHospTime = this.dateRange[1]; this.topqueryParams.startSendDateTime = this.dateRangefs[0]; this.topqueryParams.endSendDateTime = this.dateRangefs[1]; this.topqueryParams.finishtimeStart = this.dateRangefts[0]; this.topqueryParams.finishtimeEnd = this.dateRangefts[1]; } this.getList(refresh); }, @@ -2163,6 +2178,7 @@ resetQuery() { this.dateRange = []; this.dateRangefs = []; this.dateRangefts = []; this.serviceStatusValue = 10; this.lastScopeType = 3; this.topqueryParams = { @@ -2185,6 +2201,7 @@ resetQuerykj() { this.dateRange = []; this.dateRangefs = []; this.dateRangefts = []; this.serviceStatusValue = null; this.lastScopeType = 3; this.topqueryParams = { src/views/followvisit/operation/index.vue
@@ -126,6 +126,17 @@ end-placeholder="结束日期" ></el-date-picker> </el-form-item> <el-form-item label="随访完成时间"> <el-date-picker v-model="dateRangefts" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" ></el-date-picker> </el-form-item> <el-form-item label="患者姓名" prop="sendname"> <el-input @@ -1182,6 +1193,7 @@ // 日期范围 dateRange: [], dateRangefs: [], dateRangefts: [], // 岗位选项 postOptions: [], ruleForm: { @@ -1776,6 +1788,8 @@ this.topqueryParams.endOutHospTime = this.dateRange[1]; this.topqueryParams.startSendDateTime = this.dateRangefs[0]; this.topqueryParams.endSendDateTime = this.dateRangefs[1]; this.topqueryParams.finishtimeStart = this.dateRangefts[0]; this.topqueryParams.finishtimeEnd = this.dateRangefts[1]; } this.getList(refresh); }, @@ -1832,6 +1846,8 @@ resetQuery() { this.dateRange = []; this.dateRangefs = []; this.dateRangefts = []; this.serviceStatusValue = 10; this.topqueryParams = { src/views/followvisit/operationAgain/index.vue
@@ -45,6 +45,17 @@ end-placeholder="结束日期" ></el-date-picker> </el-form-item> <el-form-item label="随访完成时间"> <el-date-picker v-model="dateRangefts" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" ></el-date-picker> </el-form-item> <el-form-item label="患者姓名" prop="sendname"> <el-input @@ -867,6 +878,7 @@ // 日期范围 dateRange: [], dateRangefs: [], dateRangefts: [], // 岗位选项 postOptions: [], ruleForm: { @@ -1371,7 +1383,8 @@ this.topqueryParams.endOutHospTime = this.dateRange[1]; this.topqueryParams.startSendDateTime = this.dateRangefs[0]; this.topqueryParams.endSendDateTime = this.dateRangefs[1]; console.log("2"); this.topqueryParams.finishtimeStart = this.dateRangefts[0]; this.topqueryParams.finishtimeEnd = this.dateRangefts[1]; this.getList(refresh); }, // 患者范围处理 @@ -1430,6 +1443,7 @@ resetQuery() { this.dateRange = []; this.dateRangefs = []; this.dateRangefts = []; this.serviceStatusValue = 10; this.topqueryParams = { src/views/followvisit/record/detailpage/index.vue
@@ -1465,6 +1465,7 @@ import { messagelistpatient, alterpatient, particularpatient, listcontactinformation, } from "@/api/patient/homepage"; import CallButton from "@/components/CallButton"; @@ -1846,7 +1847,8 @@ unansweredQuestions() { return (this.tableDatatop || []) .map((item, i) => ({ index: i + 1, title: item.scriptContent || "未命名题目", raw: item })) .filter((q) => !this.hasOptionValue(q.raw)); // astrict=1 表示该题因选项跳转被跳过(已隐藏),跳过题不算“未作答” .filter((q) => !q.raw.astrict && !this.hasOptionValue(q.raw)); }, callStatusText() { if (this.customCallStatus) { @@ -2043,6 +2045,35 @@ const newPos = start + text.length; target.setSelectionRange(newPos, newPos); }); // 快捷语包含“死亡”时,过滤排除该患者 if (text && text.includes("死亡")) { this.filterDeathPatient(text); } }, // 快捷语包含“死亡”时过滤排除患者(参考 discharge 页患者过滤) filterDeathPatient(text) { this.$modal .confirm( "该快捷语包含“死亡”,确认将该患者过滤排除吗?过滤后该患者所有进行中任务将全部停止,且无法匹配新的随访任务,请谨慎操作!" ) .then(() => { particularpatient(this.patid).then((response) => { const patient = response.data; patient.isoperation = 2; patient.notrequiredFlag = 1; patient.notrequiredreason = text; patient.filterDrname = store.getters.nickName; alterpatient(patient).then((res) => { if (res.code == 200) { this.$modal.msgSuccess("患者过滤成功"); } else { this.$modal.msgError("患者过滤失败"); } }); }); }) .catch(() => {}); }, // 获取问卷数据 getsearchrResults(id) { @@ -2082,6 +2113,8 @@ }); this.taskname = res.data.taskName; this.overdata(); // 根据已保存答案回放选项跳转逻辑,恢复被跳过题目的隐藏状态 this.restoreJumpState(); } }); }, @@ -3252,6 +3285,63 @@ } }); }, // 根据已保存答案回放“选项跳转”逻辑,恢复被跳过题目的隐藏状态(astrict) restoreJumpState() { const list = this.tableDatatop; if (!list || !list.length) return; // 先全部置为可见 list.forEach((item) => { this.$set(item, "astrict", 0); this.$set(item, "hiddenByEnd", false); }); for (let i = 0; i < list.length; ) { const q = list[i]; let jumped = false; // 只有“单选 + 由选项配置跳转”且已作答的题目才可能产生跳转 if (q.branchFlag == 1 && q.scriptType == 1 && this.hasOptionValue(q)) { const opt = (q.svyTaskTemplateTargetoptions || []).find( (o) => o.optioncontent == q.scriptResult ); const next = opt ? opt.nextQuestion : null; if (next !== null && next !== undefined && next !== "") { const targetNum = Number(next); // 结束问答:隐藏后面所有题 if (targetNum === 0) { for (let j = i + 1; j < list.length; j++) { this.$set(list[j], "astrict", 1); this.$set(list[j], "hiddenByEnd", true); } break; } const target = targetNum - 1; // 转 0-indexed if (target > i && target < list.length) { // 隐藏当前题和目标题之间的题 for (let j = i + 1; j < target; j++) { this.$set(list[j], "astrict", 1); this.$set(list[j], "hiddenByEnd", false); } // 目标题保持可见 this.$set(list[target], "astrict", 0); this.$set(list[target], "hiddenByEnd", false); i = target; jumped = true; } } } if (!jumped) { i++; } } this.$forceUpdate(); }, // 切换随访类型后,重置医生处理意见的校验状态(必填条件随类型变化) handleResourceChange() { this.$nextTick(() => { src/views/index.vue
@@ -5,7 +5,12 @@ <el-row :gutter="20"> <el-col :span="8"> <!-- 就诊统计盒子 --> <div class="grid-content bg-purple headerBox bgc1"> <div class="grid-content bg-purple headerBox bgc1" v-loading="headerLoading" element-loading-text="加载中..." element-loading-background="rgba(255, 255, 255, 0.55)" > <div class="title"> 门诊服务<span style=" @@ -46,7 +51,12 @@ </div> </el-col> <el-col :span="12"> <div class="grid-content bg-purple headerBox bgc2"> <div class="grid-content bg-purple headerBox bgc2" v-loading="headerLoading" element-loading-text="加载中..." element-loading-background="rgba(255, 255, 255, 0.55)" > <div class="title"> 出院服务 <span @@ -104,7 +114,13 @@ <el-row :gutter="20"> <el-col :span="20"> <!-- echars数据可视化 --> <div class="grid-content bg-purple" style="min-height: 365px"> <div class="grid-content bg-purple" style="min-height: 365px" v-loading="chartLoading" element-loading-text="图表数据加载中..." element-loading-background="rgba(255, 255, 255, 0.55)" > <div class="title"> 服务统计 <span>{{ endatd }} ~ {{ statd }}</span> @@ -148,7 +164,13 @@ </el-col> <!-- 右边列表 --> <el-col :span="4" class="aside"> <div class="grid-contentsa bg-purple" style="margin-top: -180px"> <div class="grid-contentsa bg-purple" style="margin-top: -180px" v-loading="deptLoading" element-loading-text="加载中..." element-loading-background="rgba(255, 255, 255, 0.55)" > <div class="title"> 科室服务量 <span>{{ endatd }} ~ {{ statd }}</span> @@ -341,6 +363,9 @@ name: "home", data() { return { headerLoading: false, // 顶部统计卡加载中 chartLoading: false, // 服务统计趋势图加载中 deptLoading: false, // 科室服务量加载中 NodeCount: "", PrtnerCount: "", NodeCount: "", @@ -413,10 +438,10 @@ }, }, created() { // 各区块独立加载,loading 由各自方法内部管理 this.getTopdata(); this.getgraphdata(); // this.getranking(); this.$nextTick(function () { this.$nextTick(() => { this.myEcharts2(); this.getnodeCollect(); this.getSkuTop(); @@ -481,17 +506,24 @@ }, // top排行 async getSkuTop() { this.deptLoading = true; let Rankingdata = { startDate: this.endatd, endDate: this.statd, cy: 1, }; await getDeptRanking(Rankingdata).then((res) => { if (res.code == 200) { this.SkuTop = res.rows.sort((a, b) => b.rc - a.rc); console.log(this.SkuTop, "this.SkuTop"); } }); try { await getDeptRanking(Rankingdata).then((res) => { if (res.code == 200) { this.SkuTop = res.rows.sort((a, b) => b.rc - a.rc); console.log(this.SkuTop, "this.SkuTop"); } }); } catch (e) { console.error("获取科室排行失败:", e); } finally { this.deptLoading = false; } // this.SkuTop = [ // { amount: 0, count: 123, skuId: "0", skuName: "心肺科" }, @@ -513,6 +545,7 @@ }, // 获取头部数据 getTopdata() { this.headerLoading = true; let hospCountdata = { startDate: this.endatd, endDate: this.statd, @@ -523,23 +556,27 @@ endDate: this.statd, cy: 1, }; // 查询门诊看病人次和人数 getEChartsPatMedOuthospCount(hospCountdata).then((res) => { if (res.code == 200) { this.OutpatientData = res.data; } }); // 查询出、入院看病人次和人数 getechartsListCountdata(Countdata).then((res) => { if (res.code == 200) { this.DischargeData = res.data; } // 查询门诊看病人次和人数 / 查询出、入院看病人次和人数 return Promise.all([ getEChartsPatMedOuthospCount(hospCountdata).then((res) => { if (res.code == 200) { this.OutpatientData = res.data; } }), getechartsListCountdata(Countdata).then((res) => { if (res.code == 200) { this.DischargeData = res.data; } }), ]).finally(() => { this.headerLoading = false; }); }, // 获取中部线柱图数据 getranking() {}, async getgraphdata() { this.chartLoading = true; let params = { startDate: this.endatd, endDate: this.statd, @@ -550,9 +587,12 @@ const res = await getServiceStatistics(params); if (res.code === 200) { this.processChartData(res.data); } else { this.chartLoading = false; } } catch (error) { console.error("获取图表数据失败:", error); this.chartLoading = false; } }, @@ -660,6 +700,7 @@ }; this.myChart2.setOption(option); this.chartLoading = false; }, // 计算最优的interval值 @@ -1213,3 +1254,25 @@ background-color: #f9fafc; } </style> <style> /* 首页分块加载动画:更轻量、更清爽的 loading */ .home .el-loading-mask { background-color: rgba(255, 255, 255, 0.55); } .home .el-loading-spinner { top: 50%; margin-top: -25px; width: 100%; text-align: center; } .home .el-loading-spinner .el-icon-loading { font-size: 30px; color: #409eff; } .home .el-loading-spinner .el-loading-text { margin-top: 8px; color: #606266; font-size: 13px; } </style> src/views/knowledge/questionnaire/compilequer/index.vue
@@ -36,30 +36,29 @@ :model="ruleForm" :rules="rules" ref="ruleForm" label-width="180px" label-width="120px" class="demo-ruleForm" > <el-form-item label="问卷名称" prop="svyname"> <div style="width: 55vw"> <el-input v-model="ruleForm.svyname"></el-input> </div> <el-input v-model="ruleForm.svyname" placeholder="请输入问卷名称" ></el-input> </el-form-item> <el-form-item label="问卷描述" prop="description"> <el-input style="width: 55vw" type="textarea" :rows="2" placeholder="请输入内容" :rows="3" placeholder="请输入问卷描述" v-model="ruleForm.description" > </el-input ></el-form-item> </el-input> </el-form-item> <el-row :gutter="20"> <el-col :span="10"> <el-col :span="12"> <el-form-item label="问卷分类" prop="categoryid"> <el-select v-model="ruleForm.categoryid" size="medium" filterable placeholder="请选择分类" > @@ -79,11 +78,11 @@ </el-select> </el-form-item> </el-col> <el-col :span="8"> <el-col :span="12"> <el-form-item label="评价类型" prop="scoreType"> <el-select v-model="ruleForm.scoreType" placeholder="请选择分类" placeholder="请选择评价类型" > <el-option v-for="group in appraiselist" @@ -97,19 +96,20 @@ </el-col> </el-row> <el-row :gutter="20"> <el-col :span="10"> <el-col :span="12"> <el-form-item label="可用状态" prop="isenable"> <el-radio-group v-model="ruleForm.isenable"> <el-radio v-for="(item, index) in usable" :key="index" :label="item.value" >{{ item.label }}</el-radio > </el-radio-group> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="版本号" prop="name"> <el-col :span="12"> <el-form-item label="版本号" prop="version"> <el-input v-model="ruleForm.version" placeholder="默认1.0" @@ -209,14 +209,11 @@ <el-form-item label="问卷方式" prop="suitway"> <el-select v-model="ruleForm.suitway" style="width: 55vw" size="medium" multiple filterable placeholder="请选择分类" placeholder="请选择问卷方式" > <el-option class="ruleFormaa" v-for="item in mode" :key="item.value" :label="item.label" @@ -226,20 +223,17 @@ </el-select> </el-form-item> <el-row> <el-col :span="20" <el-row :gutter="20"> <el-col :span="12" ><el-form-item label="适用科室" prop="region"> <el-select v-model="tempDetpRelevanceslist" @remove-tag="removetag" style="width: 55vw" size="medium" multiple filterable placeholder="请选择科室" > <el-option class="ruleFormaa" v-for="item in flatArray" :key="item.id" :label="item.label" @@ -248,21 +242,16 @@ </el-option> </el-select> </el-form-item ></el-col> </el-row> <el-row> <el-col :span="20" <el-col :span="12" ><el-form-item label="适用病区" prop="region"> <el-select v-model="tempbelongWards" @remove-tag="removehpsp" style="width: 55vw" size="medium" multiple filterable placeholder="请选择病区" > <el-option class="ruleFormaa" v-for="item in flatArray" :key="item.id" :label="item.label" @@ -274,15 +263,13 @@ </el-row> <el-form-item label="结束语" prop="conclusion"> <el-input style="width: 55vw; line-height: 80px" type="textarea" :rows="5" autosize placeholder="请输入内容" :rows="4" placeholder="请输入结束语" v-model="ruleForm.conclusion" > </el-input ></el-form-item> </el-input> </el-form-item> <el-form-item> <el-button type="success" @click="nextstep('ruleForm')" @@ -2120,6 +2107,14 @@ handleUpdate(row) { this.topicobj = row; this.radioas = ""; // 确保每个选项的 nextQuestion 是响应式属性,否则“下题跳转(序号)”输入后不刷新 (row.svyLibTemplateTargetoptions || []).forEach((item) => { this.$set( item, "nextQuestion", item.nextQuestion == null ? "" : item.nextQuestion ); }); // getissuelist({ svyid: row.svyid }).then((res) => { // }); }, @@ -2151,7 +2146,7 @@ } if (item.svyLibTemplateTargetoptions) { item.svyLibTemplateTargetoptions.forEach((items) => { items.nextQuestion = Number(item.sort) + 1; this.$set(items, "nextQuestion", Number(item.sort) + 1); }); } }); @@ -2630,6 +2625,7 @@ padding: 20px; background: #edf1f7; border: 1px solid #dcdfe6; border-radius: 8px; -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04); } @@ -2645,6 +2641,7 @@ margin-top: 10px; background: #ffff; border: 1px solid #dcdfe6; border-radius: 8px; -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04); @@ -3063,4 +3060,14 @@ // line-height: 36px; // display: flex; // } .demo-ruleForm { max-width: 1100px; .el-select, .el-input, .el-textarea { width: 100%; } } </style> src/views/login.vue
@@ -186,7 +186,7 @@ if (res.code == 200) { // 同德系列 / 南华系列 / 浙江省新华医院:用 campusid(organizationID) 作下拉键值; // 其余(丽水区域 organizationID 全为 "1" 不唯一):用 orgid 作下拉键值 const campusidKeywords = ["同德", "南华", "浙江省新华医院"]; const campusidKeywords = ["同德", "南华", "浙江省新华医院", "杭州市第一人民医院"]; this.options = (res.rows || []).map((item) => { console.log(item.organizationName); src/views/sfstatistics/percentage/components/FirstFollowUp.vue
@@ -454,6 +454,7 @@ :show-overflow-tooltip="true" /> <el-table-column v-if="!isTongdeOrg" label="出院人次" align="center" key="dischargeCount" @@ -475,7 +476,60 @@ </el-button> </template> </el-table-column> <el-table-column v-if="isTongdeOrg" label="出院人次" align="center"> <el-table-column label="普通" align="center" width="80" key="dischargeCountNormal" prop="dischargeCountNormal" > <template slot-scope="scope"> <el-button size="medium" type="text" @click=" handleViewDetails( scope.row, 'dischargeCountNormalInfo', '出院患者列表-普通' ) " > <span class="button-zx">{{ scope.row.dischargeCountNormal }}</span> </el-button> </template> </el-table-column> <el-table-column label="日间" align="center" width="80" key="dischargeCountDaytime" prop="dischargeCountDaytime" > <template slot-scope="scope"> <el-button size="medium" type="text" @click=" handleViewDetails( scope.row, 'dischargeCountDaytimeInfo', '出院患者列表-日间' ) " > <span class="button-zx">{{ scope.row.dischargeCountDaytime }}</span> </el-button> </template> </el-table-column> </el-table-column> <el-table-column v-if="!isTongdeOrg" label="无需随访人次" align="center" width="100" @@ -494,7 +548,58 @@ </el-button> </template> </el-table-column> <el-table-column v-if="isTongdeOrg" label="无需随访人次" align="center"> <el-table-column label="普通" align="center" width="80" key="nonFollowUpNormal" prop="nonFollowUpNormal" > <template slot-scope="scope"> <el-button size="medium" type="text" @click=" handleViewDetails( scope.row, 'nonFollowUpNormalInfo', '无需随访列表-普通' ) " > <span class="button-zx">{{ scope.row.nonFollowUpNormal }}</span> </el-button> </template> </el-table-column> <el-table-column label="日间" align="center" width="80" key="nonFollowUpDaytime" prop="nonFollowUpDaytime" > <template slot-scope="scope"> <el-button size="medium" type="text" @click=" handleViewDetails( scope.row, 'nonFollowUpDaytimeInfo', '无需随访列表-日间' ) " > <span class="button-zx">{{ scope.row.nonFollowUpDaytime }}</span> </el-button> </template> </el-table-column> </el-table-column> <el-table-column v-if="!isTongdeOrg" label="应随访人次" align="center" width="100" @@ -512,6 +617,58 @@ <span class="button-zx">{{ scope.row.followUpNeeded }}</span> </el-button> </template> </el-table-column> <el-table-column v-if="isTongdeOrg" label="应随访人次" align="center"> <el-table-column label="普通" align="center" width="80" key="followUpNeededNormal" prop="followUpNeededNormal" > <template slot-scope="scope"> <el-button size="medium" type="text" @click=" handleViewDetails( scope.row, 'followUpNeededNormalInfo', '应随访列表-普通' ) " > <span class="button-zx">{{ scope.row.followUpNeededNormal }}</span> </el-button> </template> </el-table-column> <el-table-column label="日间" align="center" width="80" key="followUpNeededDaytime" prop="followUpNeededDaytime" > <template slot-scope="scope"> <el-button size="medium" type="text" @click=" handleViewDetails( scope.row, 'followUpNeededDaytimeInfo', '应随访列表-日间' ) " > <span class="button-zx">{{ scope.row.followUpNeededDaytime }}</span> </el-button> </template> </el-table-column> </el-table-column> <el-table-column align="center" label="首次出院随访"> @@ -2095,15 +2252,48 @@ }; // 是否为目标医院(人工/语音/短信/微信 按 发送数/成功数 分级展示) const graded = this.isTargetHospital; // 缙云县人民医院额外展示“及时随访人次”列 const showTimelyFollowUp = this.orgname == "缙云县人民医院"; // 同德系列:出院人次/无需随访人次/应随访人次 下分“普通/日间” const showTongdeBreakdown = this.isTongdeOrg; const baseHeaders = [ "", "出院病区", "科室", "出院人次", "无需随访人次", "应随访人次", ]; // 基础列:固定列(空/出院病区/科室)+ 人次分组列(同德系列下分普通/日间) const baseFixedHeaders = ["", "出院病区", "科室"]; const baseCountGroups = showTongdeBreakdown ? [ { label: "出院人次", fields: ["dischargeCountNormal", "dischargeCountDaytime"], sub: ["普通", "日间"], }, { label: "无需随访人次", fields: ["nonFollowUpNormal", "nonFollowUpDaytime"], sub: ["普通", "日间"], }, { label: "应随访人次", fields: ["followUpNeededNormal", "followUpNeededDaytime"], sub: ["普通", "日间"], }, ] : [ { label: "出院人次", fields: ["dischargeCount"], sub: ["出院人次"] }, { label: "无需随访人次", fields: ["nonFollowUp"], sub: ["无需随访人次"], }, { label: "应随访人次", fields: ["followUpNeeded"], sub: ["应随访人次"], }, ]; const baseFields = baseCountGroups.reduce( (arr, g) => arr.concat(g.fields), [] ); const coreHeaders = this.isTargetHospital ? [ "需随访", @@ -2122,18 +2312,19 @@ "成功率", "随访率", "及时率", ...(showTimelyFollowUp ? ["及时随访人次"] : []), ]; const methodGroups = this.getMethodColumns(); const baseCount = baseHeaders.length; // 6 const coreCount = coreHeaders.length; // 7 const baseCount = baseFixedHeaders.length + baseFields.length; // 6 或 9 const coreCount = coreHeaders.length; // 7 或 8 const methodLeafCount = methodGroups.reduce( (sum, g) => sum + g.fields.length, 0 ); // 8 或 4 const totalCols = baseCount + coreCount + methodLeafCount; // 21 或 17 const coreStartCol = baseCount + 1; // 7 const methodStartCol = baseCount + coreCount + 1; // 14 const totalCols = baseCount + coreCount + methodLeafCount; const coreStartCol = baseCount + 1; const methodStartCol = baseCount + coreCount + 1; const titleText = `${serviceTypeName}统计表_${sheetNameSuffix}`; // 添加标题行 @@ -2148,12 +2339,20 @@ const headerEndRow = 4; // 第2行:基础列纵向合并 + 随访分组横向合并 for (let i = 1; i <= baseCount; i++) { for (let i = 1; i <= baseFixedHeaders.length; i++) { worksheet.mergeCells(2, i, headerEndRow, i); const cell = worksheet.getCell(2, i); cell.value = baseHeaders[i - 1]; cell.value = baseFixedHeaders[i - 1]; cell.style = headerStyle; } let bCol = baseFixedHeaders.length + 1; baseCountGroups.forEach((g) => { worksheet.mergeCells(2, bCol, headerEndRow, bCol); const cell = worksheet.getCell(2, bCol); cell.value = g.label; cell.style = headerStyle; bCol += g.fields.length; }); worksheet.mergeCells(2, coreStartCol, 2, totalCols); worksheet.getCell(2, coreStartCol).value = serviceTypeName; worksheet.getCell(2, coreStartCol).style = headerStyle; @@ -2218,12 +2417,35 @@ // 表头占 2 行(第2/3行),数据从第4行开始 const headerEndRow = 3; for (let i = 1; i <= baseCount; i++) { // 固定列(空/出院病区/科室):纵向合并 for (let i = 1; i <= baseFixedHeaders.length; i++) { worksheet.mergeCells(2, i, headerEndRow, i); const cell = worksheet.getCell(2, i); cell.value = baseHeaders[i - 1]; cell.value = baseFixedHeaders[i - 1]; cell.style = headerStyle; } // 人次分组列:单级纵向合并;多级(普通/日间)父标签横合、子标签写第3行 let bCol = baseFixedHeaders.length + 1; baseCountGroups.forEach((g) => { if (g.sub.length > 1) { worksheet.mergeCells(2, bCol, 2, bCol + g.sub.length - 1); const cell = worksheet.getCell(2, bCol); cell.value = g.label; cell.style = headerStyle; g.sub.forEach((sub, idx) => { const subCell = worksheet.getCell(3, bCol + idx); subCell.value = sub; subCell.style = headerStyle; }); bCol += g.sub.length; } else { worksheet.mergeCells(2, bCol, headerEndRow, bCol); const cell = worksheet.getCell(2, bCol); cell.value = g.label; cell.style = headerStyle; bCol += 1; } }); worksheet.mergeCells(2, coreStartCol, 2, totalCols); worksheet.getCell(2, coreStartCol).value = serviceTypeName; worksheet.getCell(2, coreStartCol).style = headerStyle; @@ -2253,9 +2475,7 @@ "", item.leavehospitaldistrictname || "", item.deptname || "", item.dischargeCount || 0, item.nonFollowUp || 0, item.followUpNeeded || 0, ...baseFields.map((field) => item[field] || 0), item.needFollowUp || 0, // 待随访:目标医院拆为待发送/已发送,其他用待随访 ...(this.isTargetHospital @@ -2272,6 +2492,7 @@ ), item.followUpRate || "0%", // 随访率 this.getTimelyRateText(item), // 及时率 ...(showTimelyFollowUp ? [item.timelyFollowUp || 0] : []), // 及时随访人次 ]; methodGroups.forEach((g) => { g.fields.forEach((field) => { @@ -2298,7 +2519,14 @@ summaryRow.height = 28; // 列宽 const widths = [8, 20, 15, 12, 12, 12, 10, 10, 10, 10, 12, 12, 12]; const widths = [8, 20, 15]; baseCountGroups.forEach((g) => { g.sub.forEach(() => widths.push(10)); }); widths.push(10, 10, 10, 10, 12, 12, 12); if (showTimelyFollowUp) { widths.push(12); } methodGroups.forEach((g) => { g.fields.forEach(() => widths.push(8)); }); @@ -2339,42 +2567,69 @@ }, getExportSummaries() { const summaries = [ "合计", "/", "/", 0, // 3: dischargeCount 0, // 4: nonFollowUp 0, // 5: followUpNeeded 0, // 6: needFollowUp 0, // 7: 待发送/待随访 0, // 8: 已发送/随访成功 0, // 9: 随访成功/随访失败 "0%", // 10: 成功率 "0%", // 11: 随访率 "0%", // 12: 及时率 ]; const graded = this.isTargetHospital; const showTimelyFollowUp = this.orgname == "缙云县人民医院"; const showTongdeBreakdown = this.isTongdeOrg; const baseFields = showTongdeBreakdown ? [ "dischargeCountNormal", "dischargeCountDaytime", "nonFollowUpNormal", "nonFollowUpDaytime", "followUpNeededNormal", "followUpNeededDaytime", ] : ["dischargeCount", "nonFollowUp", "followUpNeeded"]; const methodFields = this.getMethodColumns().reduce( (arr, g) => arr.concat(g.fields), [] ); const methodStartIndex = 13; // 列位置:0=合计 1=/ 2=/,随后为基础人次列、核心列、及时随访人次(可选)、随访方式列 const baseStart = 3; const needIdx = baseStart + baseFields.length; // 需随访 const pendingIdx = needIdx + 1; // 待随访 / 待发送 const pending2Idx = graded ? pendingIdx + 1 : -1; // 已发送(仅目标医院) const successIdx = pending2Idx >= 0 ? pending2Idx + 1 : pendingIdx + 1; // 随访成功 const failIdx = graded ? -1 : successIdx + 1; // 随访失败(非目标医院) const successRateIdx = (failIdx >= 0 ? failIdx : successIdx) + 1; // 成功率 const followUpRateIdx = successRateIdx + 1; // 随访率 const timelyRateIdx = followUpRateIdx + 1; // 及时率 const timelyFollowUpIdx = showTimelyFollowUp ? timelyRateIdx + 1 : -1; // 及时随访人次 const methodStartIndex = (timelyFollowUpIdx >= 0 ? timelyFollowUpIdx : timelyRateIdx) + 1; const summaries = ["合计", "/", "/"]; baseFields.forEach(() => summaries.push(0)); summaries.push(0); // 需随访 summaries.push(0); // 待随访 / 待发送 if (graded) summaries.push(0); // 已发送 summaries.push(0); // 随访成功 if (!graded) summaries.push(0); // 随访失败 summaries.push("0%"); // 成功率 summaries.push("0%"); // 随访率 summaries.push("0%"); // 及时率 if (showTimelyFollowUp) summaries.push(0); // 及时随访人次 methodFields.forEach(() => summaries.push(0)); this.tableData.forEach((item) => { summaries[3] += Number(item.dischargeCount) || 0; summaries[4] += Number(item.nonFollowUp) || 0; summaries[5] += Number(item.followUpNeeded) || 0; summaries[6] += Number(item.needFollowUp) || 0; if (this.isTargetHospital) { summaries[7] += Number(item.pendingFollowUpWaitSend) || 0; summaries[8] += Number(item.pendingFollowUpSent) || 0; summaries[9] += Number(item.followUpSuccess) || 0; baseFields.forEach((field, i) => { summaries[baseStart + i] += Number(item[field]) || 0; }); summaries[needIdx] += Number(item.needFollowUp) || 0; if (graded) { summaries[pendingIdx] += Number(item.pendingFollowUpWaitSend) || 0; summaries[pending2Idx] += Number(item.pendingFollowUpSent) || 0; summaries[successIdx] += Number(item.followUpSuccess) || 0; } else { summaries[7] += Number(item.pendingFollowUp) || 0; summaries[8] += Number(item.followUpSuccess) || 0; summaries[9] += Number(item.followUpFail) || 0; summaries[pendingIdx] += Number(item.pendingFollowUp) || 0; summaries[successIdx] += Number(item.followUpSuccess) || 0; summaries[failIdx] += Number(item.followUpFail) || 0; } if (showTimelyFollowUp) { summaries[timelyFollowUpIdx] += Number(item.timelyFollowUp) || 0; } methodFields.forEach((field, i) => { summaries[methodStartIndex + i] += Number(item[field]) || 0; @@ -2382,17 +2637,16 @@ }); // 成功率计算:随访成功 / 需随访(目标医院),否则 随访成功 / (需随访-待随访) const totalSuccess = this.isTargetHospital ? summaries[9] : summaries[8]; const totalNeed = summaries[6]; // needFollowUp的总和 const totalPending = summaries[7]; // 待发送/待随访的总和 const denominator = this.isTargetHospital ? totalNeed : totalNeed - totalPending; const totalSuccess = summaries[successIdx]; const totalNeed = summaries[needIdx]; const totalPending = summaries[pendingIdx]; const denominator = graded ? totalNeed : totalNeed - totalPending; if (denominator > 0) { summaries[10] = ((totalSuccess / denominator) * 100).toFixed(2) + "%"; summaries[successRateIdx] = ((totalSuccess / denominator) * 100).toFixed(2) + "%"; } else { summaries[10] = "0.00%"; summaries[successRateIdx] = "0.00%"; } // 随访率计算 @@ -2404,16 +2658,19 @@ const avgFollowUpRate = followUpRateValues.reduce((sum, val) => sum + val, 0) / followUpRateValues.length; summaries[11] = (avgFollowUpRate * 100).toFixed(2) + "%"; summaries[followUpRateIdx] = (avgFollowUpRate * 100).toFixed(2) + "%"; } // 及时率计算:目标医院 (需随访-人工超时)/需随访,其他取后端 rate 平均 if (this.isTargetHospital) { if (graded) { const totalTimeout = this.tableData.reduce( (sum, item) => sum + (Number(item.manualCallTimeout) || 0), 0 ); summaries[12] = this.calculateTimelyRate(totalNeed, totalTimeout); summaries[timelyRateIdx] = this.calculateTimelyRate( totalNeed, totalTimeout ); } else { const rateValues = this.tableData .map((item) => this.extractPercentageValue(item.rate)) @@ -2422,14 +2679,22 @@ if (rateValues.length > 0) { const avgRate = rateValues.reduce((sum, val) => sum + val, 0) / rateValues.length; summaries[12] = (avgRate * 100).toFixed(2) + "%"; summaries[timelyRateIdx] = (avgRate * 100).toFixed(2) + "%"; } } // 格式化数字 const numericIndices = [3, 4, 5, 6, 7, 8, 9].concat( methodFields.map((_, i) => methodStartIndex + i) ); const numericIndices = []; for (let i = baseStart; i < baseStart + baseFields.length; i++) { numericIndices.push(i); } numericIndices.push(needIdx, pendingIdx); if (graded) numericIndices.push(pending2Idx); numericIndices.push(successIdx); if (!graded) numericIndices.push(failIdx); if (showTimelyFollowUp) numericIndices.push(timelyFollowUpIdx); methodFields.forEach((_, i) => numericIndices.push(methodStartIndex + i)); numericIndices.forEach((index) => { summaries[index] = this.formatNumber(summaries[index]); }); vue.config.js
@@ -37,13 +37,13 @@ [process.env.VUE_APP_BASE_API]: { // target: `https://www.health-y.cn/lssf`, // target: `http://192.168.100.10:8096`, target: `http://192.168.100.10:8094`,//省立同德 // target: `http://192.168.100.10:8094`,//省立同德 // target: `http://192.168.100.10:8095`,//新华 // target: `http://192.168.100.10:8098`,//市一 // target:`http://localhost:8095`, target:`http://localhost:8095`, // target: `http://192.168.100.168:8095`, // target:`http://35z1t16164.qicp.vip`, // target: `http://220.66.153.137:8095`, // target: `http://220.66.154.95:8095`, // target: `http://192.168.100.10:8089`,//南华 // target: `https://9.208.38.93:8092/`, changeOrigin: true,