diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index 78f088bcf..1e95821ba 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -662,6 +662,18 @@ 提交 + + + 当前征询意见暂无,请确认是否提交 + + 取 消 + 确 定 + + { if (valid) { - this.isSubmit = true - this.saveLoading = true - - this.summary=this.summaryList.map(item => item.id).join(",") - this.summaryName=this.summaryList.map(item => item.name).join(",") - - this.form.commentText = this.formTongGuo.commentText - // this.form.approvalOpinion = this.formTongGuo.approvalOpinion - // 会签意见存储 - const json = JSON.stringify(this.form); - this.$http.post('lawss/activiti/completeTask', { - taskIds: this.taskIds, - userId : this.userId, - json: json - }, { - _this: this - }, res => { - if (res.success) { - this.$message.success(res.message) - // 流程提交之后,应该流转至待办任务页面 - this.isSubmit = false - this.saveLoading = false - this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) - // if(this.formTongGuo.approvalOpinion === '1'){ - // this.$message.warning("驳回成功") - // this.isSubmit = false - // // 流程提交之后,应该流转至待办任务页面 - // this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) - // }else{ - // this.processCreateLaws(json) - // } - }else { - this.$message.success(res.message) - } - }) + if(this.form.modelData.length === 0){ + this.opinionDialogVisible = true + }else{ + this.commentTextHandle(); + } + // this.isSubmit = true + // this.saveLoading = true + // + // this.summary=this.summaryList.map(item => item.id).join(",") + // this.summaryName=this.summaryList.map(item => item.name).join(",") + // + // this.form.commentText = this.formTongGuo.commentText + // + // // this.form.approvalOpinion = this.formTongGuo.approvalOpinion + // // 会签意见存储 + // const json = JSON.stringify(this.form); + // this.$http.post('lawss/activiti/completeTask', { + // taskIds: this.taskIds, + // userId : this.userId, + // json: json + // }, { + // _this: this + // }, res => { + // if (res.success) { + // this.$message.success(res.message) + // // 流程提交之后,应该流转至待办任务页面 + // this.isSubmit = false + // this.saveLoading = false + // this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + // // if(this.formTongGuo.approvalOpinion === '1'){ + // // this.$message.warning("驳回成功") + // // this.isSubmit = false + // // // 流程提交之后,应该流转至待办任务页面 + // // this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + // // }else{ + // // this.processCreateLaws(json) + // // } + // }else { + // this.$message.success(res.message) + // } + // }) }else { this.$message.warning('请确认是否填写完整') } @@ -2946,6 +2965,39 @@ } }) }, + opinionClick(){ + this.opinionDialogVisible = false + this.commentTextHandle(); + }, + commentTextHandle(){ + this.isSubmit = true + this.saveLoading = true + + this.summary=this.summaryList.map(item => item.id).join(",") + this.summaryName=this.summaryList.map(item => item.name).join(",") + + this.form.commentText = this.formTongGuo.commentText + + // 会签意见存储 + const json = JSON.stringify(this.form); + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.taskIds, + userId : this.userId, + json: json + }, { + _this: this + }, res => { + if (res.success) { + this.$message.success(res.message) + // 流程提交之后,应该流转至待办任务页面 + this.isSubmit = false + this.saveLoading = false + this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + }else { + this.$message.success(res.message) + } + }) + }, busVsFunc(){ this.$http.get('sarVppsTree/list', '', { _this: this