布局政策征求意见流程
This commit is contained in:
+9
@@ -276,6 +276,15 @@
|
|||||||
this.roleForm = {...this.roleForm}
|
this.roleForm = {...this.roleForm}
|
||||||
this.modalshowflag = false;
|
this.modalshowflag = false;
|
||||||
},
|
},
|
||||||
|
submit(callback) {
|
||||||
|
this.$refs['Form'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
callback && callback(this.roleForm)
|
||||||
|
} else {
|
||||||
|
return this.$message.warning('请完善人员信息')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
+9
-7
@@ -175,18 +175,18 @@
|
|||||||
addOrEdit: 'add',
|
addOrEdit: 'add',
|
||||||
editNum: 0,
|
editNum: 0,
|
||||||
selectList: [],
|
selectList: [],
|
||||||
taskKey: this.$route.query.taskKey,
|
taskKey: this.$route.query.taskKey,//流程节点key
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isNodeDisplay() {
|
isNodeDisplay() {//是否展示新增和批量删除
|
||||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
isGenerateSummary() {
|
isGenerateSummary() {//是否展示生成汇总单和生成上报意见
|
||||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
|
if (this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey14' ||
|
this.taskKey == 'PolicySolicitOpinionProcessKey14' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey15') {
|
this.taskKey == 'PolicySolicitOpinionProcessKey15') {
|
||||||
@@ -194,13 +194,14 @@
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
isExport() {
|
isExport() {//是否展示导出
|
||||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
if (this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
isPersonInCharge() {
|
isPersonInCharge() {
|
||||||
|
//是否展示责任人
|
||||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
if (this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey10' ||
|
this.taskKey == 'PolicySolicitOpinionProcessKey10' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey11') {
|
this.taskKey == 'PolicySolicitOpinionProcessKey11') {
|
||||||
@@ -208,7 +209,7 @@
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
isCompleteFlag() {
|
isCompleteFlag() {//是否展示提出部门、提出人、处理意见、原因
|
||||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey12' ||
|
if (this.taskKey == 'PolicySolicitOpinionProcessKey12' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
|
this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey14' ||
|
this.taskKey == 'PolicySolicitOpinionProcessKey14' ||
|
||||||
@@ -218,7 +219,7 @@
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
isOperate() {
|
isOperate() {//是否展示操作列
|
||||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||||
@@ -226,7 +227,7 @@
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
showSelection() {
|
showSelection() {//是否展示选择
|
||||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
||||||
return true
|
return true
|
||||||
@@ -312,6 +313,7 @@
|
|||||||
this.histortData = [...this.histortData]
|
this.histortData = [...this.histortData]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="policyConsultation">
|
<div class="policyConsultation">
|
||||||
<ProcessHeader toggle>
|
<ProcessHeader toggle>
|
||||||
<template slot="proName">政策征求意见流程</template>
|
<template slot="proName">政策征求意见流程</template>
|
||||||
<template slot="proNode">申请人发起流程</template>
|
<template slot="proNode">{{taskKeyName}}</template>
|
||||||
</ProcessHeader>
|
</ProcessHeader>
|
||||||
<div class="headerTabs">
|
<div class="headerTabs">
|
||||||
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
@@ -339,6 +339,39 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
taskKeyName() {
|
||||||
|
if (!this.taskKey || this.taskKey == 'PolicySolicitOpinionProcessKey1') {
|
||||||
|
return '起草'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey2') {
|
||||||
|
return '审核'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey3') {
|
||||||
|
return '起草修改'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey4') {
|
||||||
|
return '审定'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey5') {
|
||||||
|
return '批准'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey7') {
|
||||||
|
return '责任对接人分配任务'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey8') {
|
||||||
|
return '责任人任务处理'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
||||||
|
return '责任对接人汇总'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey10') {
|
||||||
|
return '责任单位审批'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey11') {
|
||||||
|
return '管理员'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||||
|
return '审核'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey13') {
|
||||||
|
return '会签'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey14') {
|
||||||
|
return '审定'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey15') {
|
||||||
|
return '批准'
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey16') {
|
||||||
|
return '抄送'
|
||||||
|
}
|
||||||
|
},
|
||||||
showSave() { //是否展示保存
|
showSave() { //是否展示保存
|
||||||
if (!this.taskKey || this.taskKey == 'PolicySolicitOpinionProcessKey1' ||
|
if (!this.taskKey || this.taskKey == 'PolicySolicitOpinionProcessKey1' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey3' || this.taskKey == 'PolicySolicitOpinionProcessKey7' ||
|
this.taskKey == 'PolicySolicitOpinionProcessKey3' || this.taskKey == 'PolicySolicitOpinionProcessKey7' ||
|
||||||
@@ -474,22 +507,21 @@
|
|||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs['zczqyjForm'].validate((valid) => {
|
this.$refs['zczqyjForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['Form'].validate((valid) => {
|
if (this.showPersonnel) {
|
||||||
if (valid) {
|
this.$refs.personnelInformationRef.submit(() => {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
} else {
|
})
|
||||||
return this.$message.warning('请完善人员信息')
|
}
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning('请完善基础信息')
|
return this.$message.warning('请完善基础信息')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleReject() {
|
handleReject() {
|
||||||
|
// approvalFlag value:0通过 1驳回
|
||||||
},
|
},
|
||||||
|
//启动流程
|
||||||
startProcessRollBack() {
|
startProcessRollBack() {
|
||||||
const json = Object.assign(this.form, this.roleForm);
|
const json = Object.assign(this.form, this.roleForm);
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
@@ -512,6 +544,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//提交流程
|
||||||
completeTask(taskId) {
|
completeTask(taskId) {
|
||||||
const json = Object.assign(this.form, this.roleForm);
|
const json = Object.assign(this.form, this.roleForm);
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
@@ -599,7 +632,7 @@
|
|||||||
this.processStep = window.URL.createObjectURL(res.data)
|
this.processStep = window.URL.createObjectURL(res.data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//选择人员
|
||||||
selectOperation(title, id, isTrue) {
|
selectOperation(title, id, isTrue) {
|
||||||
this.title = title
|
this.title = title
|
||||||
this.checkBox = isTrue
|
this.checkBox = isTrue
|
||||||
|
|||||||
Reference in New Issue
Block a user