This commit is contained in:
2024-04-08 15:14:33 +08:00
parent 7b691374e5
commit 9b7298b72b
2 changed files with 96 additions and 47 deletions

View File

@ -36,4 +36,13 @@ export function selectSpecialDisease(id) {
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`, url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
method: 'get' method: 'get'
}) })
}
//审核完成
export function updateRouteCheckStatus(data) {
return request({
url: `/system/specialDiseaseNode/updateRouteCheckStatus`,
method: 'post',
data
})
} }

View File

@ -49,6 +49,8 @@
@click.native='bottomclickevent(uitem, index, uindex)' @click.native='bottomclickevent(uitem, index, uindex)'
:class="listindex == index && itemindex == uindex ? 'cards' : ''"> :class="listindex == index && itemindex == uindex ? 'cards' : ''">
<h3 style="height: 20px;">{{ uitem.taskType }}</h3> <h3 style="height: 20px;">{{ uitem.taskType }}</h3>
<el-tag v-if="uitem.routeCheckStatus == 'AGREE'" class="routeCheckStatus">已审核</el-tag>
<el-tag v-else type="warning" class="routeCheckStatus">未审核</el-tag>
<p style="height: 16px;">{{ uitem.taskSubdivision }}</p> <p style="height: 16px;">{{ uitem.taskSubdivision }}</p>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
@ -260,7 +262,8 @@
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="TemporaryStorage"> </el-button> <el-button @click="TemporaryStorage"> </el-button>
<el-button type="primary">审核完成</el-button> <el-button type="primary" @click="auditing">审核完成 {{ agreeNumber ? agreeNumber : '0' }} / {{
totalNumber ? totalNumber : '0' }}</el-button>
</div> </div>
</div> </div>
</template> </template>
@ -273,13 +276,15 @@ import propaganda from '../components/propaganda.vue'
import officialAccount from '../components/officialAccount.vue' import officialAccount from '../components/officialAccount.vue'
import miniProgram from '../components/miniProgram.vue' import miniProgram from '../components/miniProgram.vue'
import { import {
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease, updateRouteCheckStatus
} from '@/api/system/specialDiseaseNode' } from '@/api/system/specialDiseaseNode'
export default { export default {
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram }, components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
name: "specialDiseaseNode", name: "specialDiseaseNode",
data() { data() {
return { return {
totalNumber: 0,
agreeNumber: 0,
updata: { updata: {
specialDiseaseRouteId: '', specialDiseaseRouteId: '',
suitRange: '', suitRange: '',
@ -320,56 +325,61 @@ export default {
}, },
created() { created() {
this.taskinfo(); this.taskinfo();
if (this.$route.query) { this.info();
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]
}
}, },
beforeDestroy() { }, beforeDestroy() { },
watch: {}, watch: {},
mounted() { mounted() {
}, },
methods: { 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) { handleData(list, key, keytwo) {
// //
let keysArr = list.map(item => { let keysArr = list.map(item => {
@ -423,7 +433,8 @@ export default {
}) : "" }) : ""
}) })
specialDiseaseNode(this.updata).then(res => { specialDiseaseNode(this.updata).then(res => {
this.$modal.msgSuccess("暂存成功!"); this.info();
this.$modal.msgSuccess("暂存成功!");
}) })
}, },
// //
@ -542,10 +553,39 @@ export default {
this.lists.splice(index, 1) 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();
}
})
},
} }
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
::v-deep .el-card__body {
position: relative;
}
.routeCheckStatus {
position: absolute;
right: 10px;
top: 30px;
}
.dialog-footer { .dialog-footer {
padding: 20px 20px; padding: 20px 20px;
text-align: right; text-align: right;