From e43d6df1df05ac939739ea2c5aa781186fb1ffdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 13 Apr 2022 16:58:09 +0800 Subject: [PATCH] =?UTF-8?q?52547=20=E3=80=90=E6=89=8B=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E3=80=91=E6=A0=87=E5=87=86=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=20=E5=89=8D=E9=9D=A2=E7=82=B9=E5=90=8C?= =?UTF-8?q?=E6=84=8F=E4=B9=8B=E5=90=8E=EF=BC=8Cpc=E7=AB=AF=E5=88=B0?= =?UTF-8?q?=E6=84=8F=E8=A7=81=E5=A4=84=E7=90=86=E8=8A=82=E7=82=B9=20?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=B2=A1=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/phone/bzzqyj/step2.vue | 96 ++++++++++--------- .../pages/phone/bzzqyj/step4-1.vue | 51 +++++----- .../pages/phone/bzzqyj/step4-2.vue | 4 +- 3 files changed, 79 insertions(+), 72 deletions(-) diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step2.vue b/src/pages/processCenter/pages/phone/bzzqyj/step2.vue index e04ae7855..e4837618b 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step2.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step2.vue @@ -253,51 +253,59 @@ this.saveLoading = false; }); }, - handleSubmit() { - this.$refs["bzzqyjForm"].validate((valid) => { - if (valid) { - this.isSubmit = true; - var json = this.json; - json.commentText = this.commentText2; - json.responUserList = this.form.responUserList; - json.responUserListName = this.form.responUserListName; - json.introduce = false; - this.$http.post("lawss/activiti/completeTask", { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.account - }, {}, res => { - if (res.success) { - this.$message.success("提交成功"); - this.$router.push("/processCenter"); - } - this.isSubmit = false; - }); - } else { - return this.$message.warning("请完善基础信息"); - } + handleSubmit() { + this.$refs["bzzqyjForm"].validate((valid) => { + if (valid) { + this.isSubmit = true; + var json = this.json; + json.onlyKey = this.onlyKey + json.commentText = this.commentText2; + json.responUserList = this.form.responUserList; + json.responUserListName = this.form.responUserListName; + json.presidentUser = this.form.presidentUser + json.presidentUserName = this.form.presidentUserName + json.introduce = false; + this.$http.post("lawss/activiti/completeTask", { + json: JSON.stringify(json), + taskId: this.taskIds, + userId: this.$store.getters.userInfo.account + }, {}, res => { + if (res.success) { + this.$message.success("提交成功"); + this.$router.push("/processCenter"); + } + this.isSubmit = false; }); - }, - getData() { - return new Promise((resolve, reject) => { - inboundLiaisonDetail({ - taskIds: this.taskIds, - pId: this.pId - }).then(res => { - let data = JSON.parse(res.mesg) - this.commentText2 = data.commentText2 || '' - this.form.cid = data.form ? data.form.cid : data.cid - this.form.endTime = data.form ? data.form.endTime : data.endTime - this.form.fjList = data.form ? data.form.fjList : data.fjList - this.form.textType = data.form ? data.form.textType : data.textType - this.form.modelList = data.form ? data.form.modelList : data.modelList - this.form.responUserListName = data.form ? data.form.responUserListName : (data.responUserListName ? data.responUserListName : '') - this.form.responUserList = data.form ? data.form.responUserList : (data.responUserList ? data.responUserList : '') - this.json = data - }).catch(e => { - }); - }); - } + } else { + return this.$message.warning("请完善基础信息"); + } + }); + }, + getData() { + return new Promise((resolve, reject) => { + inboundLiaisonDetail({ + taskIds: this.taskIds, + pId: this.pId + }).then(res => { + let data = JSON.parse(res.mesg) + this.onlyKey = data.form ? data.form.onlyKey : data.onlyKey + this.commentText2 = data.commentText2 || '' + this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser + this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName + this.form.startUserName = data.form ? data.form.startUserName : data.startUserName + this.form.startUser = data.form ? data.form.startUser : data.startUser + this.form.cid = data.form ? data.form.cid : data.cid + this.form.endTime = data.form ? data.form.endTime : data.endTime + this.form.fjList = data.form ? data.form.fjList : data.fjList + this.form.textType = data.form ? data.form.textType : data.textType + this.form.modelList = data.form ? data.form.modelList : data.modelList + this.form.responUserListName = data.form ? data.form.responUserListName : (data.responUserListName ? data.responUserListName : '') + this.form.responUserList = data.form ? data.form.responUserList : (data.responUserList ? data.responUserList : '') + this.json = data + }).catch(e => { + }); + }); + } }, mounted() { this.getHistoryData(); diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step4-1.vue b/src/pages/processCenter/pages/phone/bzzqyj/step4-1.vue index b892b67e9..c749d3a70 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step4-1.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step4-1.vue @@ -314,34 +314,34 @@ handleTabs(name) { this.active = name }, - handleSubmit() { - this.$refs['bzzqyjForm'].validate((valid) => { - if (valid) { - this.isSubmit = true - var json = this.json - json.commentText = this.commentText41 - json.bzfgId = this.form.bzfgId - json.bzfgName = this.form.bzfgName - json.spFlag = '0' - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.account - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') - } - this.isSubmit = false - }) - } else { - this.$message.warning('请选择标准法规工程师分线管理员') - } + handleSubmit() { + this.$refs['bzzqyjForm'].validate((valid) => { + if (valid) { + this.isSubmit = true + let json = this.json + json.info = this.data + json.commentText = this.commentText41 + json.bzfgId = this.form.bzfgId + json.bzfgName = this.form.bzfgName + json.spFlag = '0' + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskId: this.taskIds, + userId: this.$store.getters.userInfo.account + }, {}, res => { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') + } + this.isSubmit = false }) - }, + } else { + this.$message.warning('请选择标准法规工程师分线管理员') + } + }) + }, handleSubmitNo() { if (this.commentText41) { - this.isSubmit = true var json = this.json json.spFlag = '1' json.commentText = this.commentText41 @@ -353,7 +353,6 @@ if (res.success) { this.$message.success('提交成功') this.$router.push('/processCenter') - this.isSubmit = false } }) } else { diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue b/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue index e59fad088..c4712d9a8 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue @@ -314,7 +314,7 @@ this.$http.post('lawss/activiti/completeTask', { json: JSON.stringify(json), taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId + userId: this.$store.getters.userInfo.account }, {}, res => { if (res.success) { this.$message.success('提交成功') @@ -331,7 +331,7 @@ this.$http.post('lawss/activiti/completeTask', { json: JSON.stringify(json), taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId + userId: this.$store.getters.userInfo.account }, {}, res => { if (res.success) { this.$message.success('提交成功')