From 821c4ddb2d6e66989c3a8e6dffcb55624d356408 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Fri, 19 Nov 2021 10:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=82=B9=E6=B5=81=E7=A8=8B=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AD=A5=20=E9=99=90=E5=88=B6=E5=BF=85?= =?UTF-8?q?=E9=A1=BB=E8=B0=83=E5=8F=96=E6=A0=87=E5=87=86/=E6=94=BF?= =?UTF-8?q?=E7=AD=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../creatProcess/zdrzbzORzchgxxmsc/step1.vue | 93 ++++++++++--------- 1 file changed, 49 insertions(+), 44 deletions(-) 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('请完善基础信息') + } + }, } }