diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index 645ea07a8..8135617ae 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -3017,6 +3017,9 @@ } this.getPlanStandDraftCompleteTime(processForm) + }else { + this.$message.warning('数据获取失败,请重试') + this.dataLoading = true } }).catch(e => { }) diff --git a/src/pages/processCenter/pages/phone/qbrk-product/step10.vue b/src/pages/processCenter/pages/phone/qbrk-product/step10.vue index 0362061fe..bef227a32 100644 --- a/src/pages/processCenter/pages/phone/qbrk-product/step10.vue +++ b/src/pages/processCenter/pages/phone/qbrk-product/step10.vue @@ -1920,7 +1920,8 @@ export default { this.saveLoading = true this.form.commentText = this.formTongGuo.commentText this.form.approvalOpinion = this.formTongGuo.approvalOpinion - const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) + const json = JSON.stringify(this.form); + // const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) this.$http.post('lawss/activiti/completeTask', { taskIds: this.taskIds, userId : this.userId, @@ -2018,7 +2019,9 @@ export default { }).then(res => { if (res) { let processForm = JSON.parse(res.mesg) + let roleForm = processForm.roleForm ? processForm.roleForm : {} processForm = processForm.form ? processForm.form : processForm + processForm = Object.assign(processForm,roleForm) const dateArr = [] if(processForm.commentCycleStart && processForm.commentCycleEnd){ dateArr[0] = processForm.commentCycleStart diff --git a/src/pages/processCenter/pages/phone/qbrk-product/step12.vue b/src/pages/processCenter/pages/phone/qbrk-product/step12.vue index e5a02c2a2..6d48ad26e 100644 --- a/src/pages/processCenter/pages/phone/qbrk-product/step12.vue +++ b/src/pages/processCenter/pages/phone/qbrk-product/step12.vue @@ -1920,7 +1920,8 @@ export default { this.saveLoading = true this.form.commentText = this.formTongGuo.commentText this.form.approvalOpinion = this.formTongGuo.approvalOpinion - const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) + const json = JSON.stringify(this.form); + // const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) this.$http.post('lawss/activiti/completeTask', { taskIds: this.taskIds, userId : this.userId, @@ -2018,7 +2019,9 @@ export default { }).then(res => { if (res) { let processForm = JSON.parse(res.mesg) + let roleForm = processForm.roleForm ? processForm.roleForm : {} processForm = processForm.form ? processForm.form : processForm + processForm = Object.assign(processForm,roleForm) const dateArr = [] if(processForm.commentCycleStart && processForm.commentCycleEnd){ dateArr[0] = processForm.commentCycleStart diff --git a/src/pages/processCenter/pages/phone/qbrk-product/step4.vue b/src/pages/processCenter/pages/phone/qbrk-product/step4.vue index 1264740a1..89d81a2f3 100644 --- a/src/pages/processCenter/pages/phone/qbrk-product/step4.vue +++ b/src/pages/processCenter/pages/phone/qbrk-product/step4.vue @@ -1918,7 +1918,8 @@ export default { this.saveLoading = true this.form.commentText = this.formTongGuo.commentText this.form.approvalOpinion = this.formTongGuo.approvalOpinion - const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) + const json = JSON.stringify(this.form); + // const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) this.$http.post('lawss/activiti/completeTask', { taskIds: this.taskIds, userId : this.userId, @@ -2016,7 +2017,9 @@ export default { }).then(res => { if (res) { let processForm = JSON.parse(res.mesg) + let roleForm = processForm.roleForm ? processForm.roleForm : {} processForm = processForm.form ? processForm.form : processForm + processForm = Object.assign(processForm,roleForm) const dateArr = [] if(processForm.commentCycleStart && processForm.commentCycleEnd){ dateArr[0] = processForm.commentCycleStart diff --git a/src/pages/processCenter/pages/phone/qbrk-product/step7.vue b/src/pages/processCenter/pages/phone/qbrk-product/step7.vue index 9134431a0..cfad7fc1e 100644 --- a/src/pages/processCenter/pages/phone/qbrk-product/step7.vue +++ b/src/pages/processCenter/pages/phone/qbrk-product/step7.vue @@ -2014,7 +2014,8 @@ export default { this.saveLoading = true this.form.commentText = this.formTongGuo.commentText this.form.approvalOpinion = this.formTongGuo.approvalOpinion - const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) + const json = JSON.stringify(this.form); + // const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) this.$http.post('lawss/activiti/completeTask', { taskIds: this.taskIds, userId : this.userId, @@ -2130,7 +2131,9 @@ export default { }).then(res => { if (res) { let processForm = JSON.parse(res.mesg) + let roleForm = processForm.roleForm ? processForm.roleForm : {} processForm = processForm.form ? processForm.form : processForm + processForm = Object.assign(processForm,roleForm) const dateArr = [] if(processForm.commentCycleStart && processForm.commentCycleEnd){ dateArr[0] = processForm.commentCycleStart diff --git a/src/pages/processCenter/pages/phone/qbrk-product/step8.vue b/src/pages/processCenter/pages/phone/qbrk-product/step8.vue index 0eea2f8b9..bf762add7 100644 --- a/src/pages/processCenter/pages/phone/qbrk-product/step8.vue +++ b/src/pages/processCenter/pages/phone/qbrk-product/step8.vue @@ -1920,7 +1920,8 @@ export default { this.saveLoading = true this.form.commentText = this.formTongGuo.commentText this.form.approvalOpinion = this.formTongGuo.approvalOpinion - const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) + const json = JSON.stringify(this.form); + // const json = JSON.stringify({ form: this.form, roleForm: this.roleForm }) this.$http.post('lawss/activiti/completeTask', { taskIds: this.taskIds, userId : this.userId, @@ -2017,7 +2018,9 @@ export default { }).then(res => { if (res) { let processForm = JSON.parse(res.mesg) + let roleForm = processForm.roleForm ? processForm.roleForm : {} processForm = processForm.form ? processForm.form : processForm + processForm = Object.assign(processForm,roleForm) const dateArr = [] if(processForm.commentCycleStart && processForm.commentCycleEnd){ dateArr[0] = processForm.commentCycleStart