From 1ab9ee7d2d678d482cc12e910f4c99dfd6963557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167@qq.com> Date: Mon, 5 Sep 2022 10:23:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processForm/handshakeProcess/index.vue | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/jero-web/src/views/processCenter/processForm/handshakeProcess/index.vue b/jero-web/src/views/processCenter/processForm/handshakeProcess/index.vue index db3de9707..ec731f550 100644 --- a/jero-web/src/views/processCenter/processForm/handshakeProcess/index.vue +++ b/jero-web/src/views/processCenter/processForm/handshakeProcess/index.vue @@ -183,19 +183,34 @@ } }) }, + rejectCauseAdd(rejectCause,ids) { + let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') + let query = { + rejectUserId:this.userInfo().id, + rejectTime:rejectTime, + rejectCause:rejectCause, + projectLawsInventoryId:ids.join(','), + rejectType:'0', + } + postAction('/project/projectLawsInventoryRejectCauseEO/add', query).then((res) => { + + }) + }, completeTask(value, handlingTime) { let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value) - let data = JSON.stringify(json).replace(/\"/g, '\'') - Object.keys(data).forEach(res => { - if (data[res] && typeof data[res] == 'string') { - data[res] = data[res].replace(/\"/g, '“') - data[res] = data[res].replace(/\'/g, '‘') + // if (json.flag == '1'){ + // this.rejectCauseAdd(value.approvalOpinion,this.queryBy.id) + // } + Object.keys(json).forEach(res => { + if (json[res] && typeof json[res] == 'string') { + json[res] = json[res].replace(/\"/g, '“') + json[res] = json[res].replace(/\'/g, '‘') } }) let query = { userid: this.userInfo().id, taskId: this.$route.query.taskId || this.$route.query.taskIds, - json: data + json: JSON.stringify(json).replace(/\"/g, '\'') } postAction('/workFlow/completeTask', query).then((res) => { if (res.success) {