diff --git a/src/pages/processCenter/pages/creatProcess/zdrzbzORzchgxxmsc/step1.vue b/src/pages/processCenter/pages/creatProcess/zdrzbzORzchgxxmsc/step1.vue index dacf9b4d9..6e46ac8fa 100644 --- a/src/pages/processCenter/pages/creatProcess/zdrzbzORzchgxxmsc/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/zdrzbzORzchgxxmsc/step1.vue @@ -708,50 +708,55 @@ export default { }, //提交事件 handleSubmit() { - this.$refs['zdrzbzORzchgxxmscForm'].validate((valid) => { - if (valid) { - this.$refs['Form'].validate((valid) => { - if (valid) { - this.isSubmit = true - let infoTableDatas = [] - infoTableDatas = JSON.stringify(this.infoTableDatas) - localStorage.setItem('infoTableDatas', JSON.stringify(this.infoTableDatas)) - this.$http.get('lawss/activiti/startProcess', { - type: 'laws3', - }, {_this: this}, res => { - if (res.ok) { - var json = Object.assign(this.form, this.roleForm) - json.commentText = this.commentText - // json.filesId = this.addFjList - // json.filesName = this.form.fjListName - json.infoTableDatas = infoTableDatas - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: res.data, - userId: this.$store.getters.userInfo.userId - }, {_this: this}, res => { - if (res.success) { - this.$message.success('流程发起成功') - this.$router.push('/processCenter') - this.isSubmit = false - } else { - this.$message.warning('流程启动失败') - this.isSubmit = false - } - }) - } else { - this.$message.warning('流程启动失败') - this.isSubmit = false - } - }) - } else { - return this.$message.warning('请完善人员信息') - } - }) - } else { - return this.$message.warning('请完善基础信息') - } - }) + if (this.infoTableDatas.length>0){ + this.$refs['zdrzbzORzchgxxmscForm'].validate((valid) => { + if (valid) { + this.$refs['Form'].validate((valid) => { + if (valid) { + this.isSubmit = true + let infoTableDatas = [] + infoTableDatas = JSON.stringify(this.infoTableDatas) + localStorage.setItem('infoTableDatas', JSON.stringify(this.infoTableDatas)) + this.$http.get('lawss/activiti/startProcess', { + type: 'laws3', + }, {_this: this}, res => { + if (res.ok) { + var json = Object.assign(this.form, this.roleForm) + json.commentText = this.commentText + // json.filesId = this.addFjList + // json.filesName = this.form.fjListName + json.infoTableDatas = infoTableDatas + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskId: res.data, + userId: this.$store.getters.userInfo.userId + }, {_this: this}, res => { + if (res.success) { + this.$message.success('流程发起成功') + this.$router.push('/processCenter') + this.isSubmit = false + } else { + this.$message.warning('流程启动失败') + this.isSubmit = false + } + }) + } else { + this.$message.warning('流程启动失败') + this.isSubmit = false + } + }) + } else { + return this.$message.warning('请完善人员信息') + } + }) + } else { + return this.$message.warning('请完善基础信息') + } + }) + }else { + this.$message.warning('请完善基础信息') + } + }, } }