From a0325d5bb47d0ce6f3cba4556216aa321c3b9fd6 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 23 May 2024 17:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E4=BA=8B=E4=BB=B6=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E5=8F=82openFlag=E5=8C=BA=E5=88=86=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E8=AE=A8=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shequzhili/eventOld/cpts/event-info.vue | 17 +++++++++++++---- .../shequzhili/eventOld/cpts/process-form.vue | 5 +++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/views/modules/shequzhili/eventOld/cpts/event-info.vue b/src/views/modules/shequzhili/eventOld/cpts/event-info.vue index bd47b311b..35279cf92 100644 --- a/src/views/modules/shequzhili/eventOld/cpts/event-info.vue +++ b/src/views/modules/shequzhili/eventOld/cpts/event-info.vue @@ -489,6 +489,7 @@ export default { this.formData.operationType == "5" || this.formData.operationType == "6" || this.formData.operationType == "0" || + this.formData.operationType == "7" || (this.formData.operationType == 2 && this.demand.demandUserName) ) { if (Array.isArray(this.formData.gridId) && this.formData.gridId.length) { @@ -503,10 +504,10 @@ export default { this.formData.agencyId = ""; this.formData.gridId = ""; } + this.formData.openFlag = this.formData.operationType == "7"?1:0 const url = "/governance/icEventOld/add"; - const { formData } = this; const { data, code, msg } = await requestPost(url, { - ...formData, + ...this.formData, }); if (code === 0) { this.$message.success("操作成功!"); @@ -523,12 +524,12 @@ export default { }, async handelDispose() { - console.log(this.$refs.ref_processinfo_dispose.okflag); + console.log(this.formData.operationType); this.$refs.ref_processinfo_dispose.getProcessInfo(); if (this.$refs.ref_processinfo_dispose.okflag) { this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType; if (this.formData.operationType === "0" || this.formData.operationType === '5' - || this.formData.operationType === '6') { + || this.formData.operationType === '6' || this.formData.operationType === '7') { this.project = {}; this.demand = {}; if (this.$refs.ref_processinfo_dispose.replayInfo.okflag) { @@ -537,6 +538,14 @@ export default { } this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo; this.replayInfo.icEventId = this.eventId; + if(this.formData.operationType === '7'){ + this.replayInfo.openFlag = 1 + this.replayInfo.operationType = '7'//不可以openFlag为true时去掉校验吗? + this.replayInfo.content = '1111'//不可以openFlag为true时去掉校验吗? + }else{ + this.replayInfo.openFlag = 0 + } + //回复属性赋值 let url = "/governance/icEventOld/reply"; await this.submitDispose(url, this.replayInfo); diff --git a/src/views/modules/shequzhili/eventOld/cpts/process-form.vue b/src/views/modules/shequzhili/eventOld/cpts/process-form.vue index 3522bc207..138bc01aa 100644 --- a/src/views/modules/shequzhili/eventOld/cpts/process-form.vue +++ b/src/views/modules/shequzhili/eventOld/cpts/process-form.vue @@ -11,6 +11,7 @@ 指派 完成并回复 转服务 + 公开讨论 @@ -175,9 +176,9 @@ export default { this.replayInfo = this.$refs.ref_process_form_replay_end.formData this.okflag = true } - } else if(this.operationType === '4') { + } else if(this.operationType === '4' || this.operationType === '7') { this.okflag = true - }else { + }else{ return false } },