From 9b7298b72bc4c295104b092cb8e7e0195f4e78dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Mon, 8 Apr 2024 15:14:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/specialDiseaseNode.js | 9 ++ src/views/system/specialDiseaseNode/index.vue | 134 ++++++++++++------ 2 files changed, 96 insertions(+), 47 deletions(-) diff --git a/src/api/system/specialDiseaseNode.js b/src/api/system/specialDiseaseNode.js index d3e579c..2185f04 100644 --- a/src/api/system/specialDiseaseNode.js +++ b/src/api/system/specialDiseaseNode.js @@ -36,4 +36,13 @@ export function selectSpecialDisease(id) { url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`, method: 'get' }) +} + +//审核完成 +export function updateRouteCheckStatus(data) { + return request({ + url: `/system/specialDiseaseNode/updateRouteCheckStatus`, + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index 63b425d..9584b92 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -49,6 +49,8 @@ @click.native='bottomclickevent(uitem, index, uindex)' :class="listindex == index && itemindex == uindex ? 'cards' : ''">
{{ uitem.taskSubdivision }}
@@ -260,7 +262,8 @@ @@ -273,13 +276,15 @@ import propaganda from '../components/propaganda.vue' import officialAccount from '../components/officialAccount.vue' import miniProgram from '../components/miniProgram.vue' import { - selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease + selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease, updateRouteCheckStatus } from '@/api/system/specialDiseaseNode' export default { components: { wangeditor, question, propaganda, message, officialAccount, miniProgram }, name: "specialDiseaseNode", data() { return { + totalNumber: 0, + agreeNumber: 0, updata: { specialDiseaseRouteId: '', suitRange: '', @@ -320,56 +325,61 @@ export default { }, created() { this.taskinfo(); - if (this.$route.query) { - this.updata.suitRange = this.$route.query.suitRange - this.updata.routeName = this.$route.query.routeName - this.updata.specialDiseaseRouteId = this.$route.query.id - selectSpecialDisease(this.$route.query.id).then(res => { - res.data.specialDiseaseNodeList.forEach(e => { - e.messagePushSign = '' + e.messagePushSign - e.officialPushSign = '' + e.officialPushSign - e.appletPushSign = '' + e.appletPushSign - }) - this.lists = this.handleData(res.data.specialDiseaseNodeList, 'routeNodeDay', 'routeNodeName') - this.form = this.lists[0].list[0] - if (this.form.taskType) { - this.changeTaskType(this.form.taskType, this.form.taskSubdivision) - } - }) - } else { - this.lists.push({ - routeNodeName: "", - routeNodeDay: '', - list: [ - { - nodeContent: '', - templateId: '', - templateName: '', - taskType: '', - taskSubdivision: '', - taskSubdivisionName: '', - taskStatus: '', - secondClassifyDescribe: '', - executionTime: '', - appletPushSign: '0', - officialPushSign: '0', - messagePushSign: '0', - messagePreview: '', - officialRemindContent: '', - taskSubdivisiontemplateType: '', - appletRemindContent: '', - appletPromptDescription: '', - }, - ], - }) - this.form = this.lists[0].list[0] - } + this.info(); }, beforeDestroy() { }, watch: {}, mounted() { }, methods: { + info() { + if (this.$route.query) { + this.updata.suitRange = this.$route.query.suitRange + this.updata.routeName = this.$route.query.routeName + this.updata.specialDiseaseRouteId = this.$route.query.id + selectSpecialDisease(this.$route.query.id).then(res => { + this.agreeNumber = res.data.agreeNumber + this.totalNumber = res.data.totalNumber + res.data.specialDiseaseNodeList.forEach(e => { + e.messagePushSign = '' + e.messagePushSign + e.officialPushSign = '' + e.officialPushSign + e.appletPushSign = '' + e.appletPushSign + }) + this.lists = this.handleData(res.data.specialDiseaseNodeList, 'routeNodeDay', 'routeNodeName') + this.form = this.lists[0].list[0] + if (this.form.taskType) { + this.changeTaskType(this.form.taskType, this.form.taskSubdivision) + } + }) + } else { + this.lists.push({ + routeNodeName: "", + routeNodeDay: '', + list: [ + { + nodeContent: '', + templateId: '', + templateName: '', + taskType: '', + taskSubdivision: '', + taskSubdivisionName: '', + taskStatus: '', + secondClassifyDescribe: '', + executionTime: '', + appletPushSign: '0', + officialPushSign: '0', + messagePushSign: '0', + messagePreview: '', + officialRemindContent: '', + taskSubdivisiontemplateType: '', + appletRemindContent: '', + appletPromptDescription: '', + }, + ], + }) + this.form = this.lists[0].list[0] + } + }, handleData(list, key, keytwo) { //得到数据的主键列表 let keysArr = list.map(item => { @@ -423,7 +433,8 @@ export default { }) : "" }) specialDiseaseNode(this.updata).then(res => { - this.$modal.msgSuccess("暂存成功!"); + this.info(); + this.$modal.msgSuccess("暂存成功!"); }) }, //问卷传值 @@ -542,10 +553,39 @@ export default { this.lists.splice(index, 1) } }, + //审核 + auditing() { + const loading = this.$loading({ + lock: true, + text: '审核中', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + updateRouteCheckStatus({ + routeCheckStatus: 'AGREE', + id: this.form.specialDiseaseNodeId + }).then(res => { + if (res.data == 1) { + this.info(); + this.$modal.msgSuccess("审核成功!"); + loading.close(); + } + }) + }, } };