From e523b852c978d82d1b7d0f62422f3ae19f2e92b5 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 22 Jan 2024 17:53:55 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug81137?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RevisionPlanActivelyReportFlow.vue | 21 +++++++--------- .../RevisionPlanStandardizationInitFlow.vue | 24 ++++++++----------- .../EnterpriseStandardAnnulFlow.vue | 17 +++++++------ .../EnterpriseStandardChangeFlow.vue | 17 +++++++------ .../PlanApprovalChangeFlow.vue | 23 ++++++++---------- .../EnterpriseStandardRecheckFlow.vue | 20 +++++++--------- .../EnterpriseStandardRevisionFlow.vue | 23 ++++++++---------- .../EnterpriseStandardSealSaveFlow.vue | 17 +++++++------ .../EnterpriseStandardStartUseFlow.vue | 17 +++++++------ 9 files changed, 80 insertions(+), 99 deletions(-) diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue index 2fe170e5..e3cfa92a 100644 --- a/src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue +++ b/src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue @@ -372,6 +372,9 @@ export default { }, // 保存 handleSave () { + if (this.loading) { + return + } // 有任意一项填了即可 // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() @@ -497,9 +500,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交,发起变更 @@ -536,9 +538,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -566,9 +567,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -604,9 +604,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -630,9 +629,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -658,9 +656,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) diff --git a/src/views/workCenter/annualRevisionPlanStandardizationInit/RevisionPlanStandardizationInitFlow.vue b/src/views/workCenter/annualRevisionPlanStandardizationInit/RevisionPlanStandardizationInitFlow.vue index 9424ba58..d8907d0e 100644 --- a/src/views/workCenter/annualRevisionPlanStandardizationInit/RevisionPlanStandardizationInitFlow.vue +++ b/src/views/workCenter/annualRevisionPlanStandardizationInit/RevisionPlanStandardizationInitFlow.vue @@ -345,6 +345,9 @@ export default { }, // 保存 handleSave () { + if (this.loading) { + return + } // 有任意一项填了即可 // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() @@ -401,9 +404,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交,发起变更 @@ -438,9 +440,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -468,9 +469,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -495,9 +495,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -524,9 +523,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -553,9 +551,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -584,9 +581,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) diff --git a/src/views/workCenter/enterpriseStandardAnnul/EnterpriseStandardAnnulFlow.vue b/src/views/workCenter/enterpriseStandardAnnul/EnterpriseStandardAnnulFlow.vue index 5bafa04f..b5d9876a 100644 --- a/src/views/workCenter/enterpriseStandardAnnul/EnterpriseStandardAnnulFlow.vue +++ b/src/views/workCenter/enterpriseStandardAnnul/EnterpriseStandardAnnulFlow.vue @@ -302,6 +302,9 @@ export default { }, // 保存 handleSave () { + if (this.loading) { + return + } // 有任意一项填了即可 // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() @@ -353,9 +356,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交 @@ -392,9 +394,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -422,9 +423,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -448,9 +448,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -476,9 +475,9 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } }).finally(() => { - this.loading = false this.validatorRules.commitText.rules[0].required = false }) } diff --git a/src/views/workCenter/enterpriseStandardChange/EnterpriseStandardChangeFlow.vue b/src/views/workCenter/enterpriseStandardChange/EnterpriseStandardChangeFlow.vue index 503d2910..b7bef169 100644 --- a/src/views/workCenter/enterpriseStandardChange/EnterpriseStandardChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardChange/EnterpriseStandardChangeFlow.vue @@ -301,6 +301,9 @@ export default { }, // 保存 handleSave () { + if (this.loading) { + return + } // 有任意一项填了即可 // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() @@ -365,9 +368,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交 @@ -405,9 +407,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -435,9 +436,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -461,9 +461,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -489,9 +488,9 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } }).finally(() => { - this.loading = false this.validatorRules.commitText.rules[0].required = false }) } diff --git a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue index f078338c..3e34eec5 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue @@ -717,6 +717,9 @@ export default { // 保存 handleSave () { // 有任意一项填了即可 + if (this.loading) { + return + } // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() // 业务基本信息-申请类型和项目类别 @@ -839,9 +842,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交,发起立项变更申请,有taskId就是驳回后的提交 @@ -947,6 +949,7 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false if (res.message === this.$t('workCenter.enterpriseInitChangePlan.existingNumber')) { // 已经存在编号,重新生成 if ([ProjectType.ENACT.value, ProjectType.MODIFY.value, ProjectType.MERGE.value].includes(this.formInline.projectType)) { @@ -961,8 +964,6 @@ export default { } } } - }).finally(() => { - this.loading = false }) }) }) @@ -985,9 +986,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -1013,9 +1013,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -1053,9 +1052,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }) }, @@ -1080,9 +1078,9 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } }).finally(() => { - this.loading = false this.validatorRules.commitText.rules[0].required = false }) } @@ -1104,9 +1102,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) diff --git a/src/views/workCenter/enterpriseStandardRecheck/EnterpriseStandardRecheckFlow.vue b/src/views/workCenter/enterpriseStandardRecheck/EnterpriseStandardRecheckFlow.vue index d104dcae..54b9fd20 100644 --- a/src/views/workCenter/enterpriseStandardRecheck/EnterpriseStandardRecheckFlow.vue +++ b/src/views/workCenter/enterpriseStandardRecheck/EnterpriseStandardRecheckFlow.vue @@ -359,6 +359,9 @@ export default { }, // 保存 handleSave () { + if (this.loading) { + return + } // 有任意一项填了即可 // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() @@ -410,9 +413,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交 @@ -449,9 +451,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -479,9 +480,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -504,9 +504,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -530,9 +529,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -558,9 +556,9 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } }).finally(() => { - this.loading = false this.validatorRules.commitText.rules[0].required = false }) } diff --git a/src/views/workCenter/enterpriseStandardRevision/EnterpriseStandardRevisionFlow.vue b/src/views/workCenter/enterpriseStandardRevision/EnterpriseStandardRevisionFlow.vue index 6e7c8530..31fdb3b8 100644 --- a/src/views/workCenter/enterpriseStandardRevision/EnterpriseStandardRevisionFlow.vue +++ b/src/views/workCenter/enterpriseStandardRevision/EnterpriseStandardRevisionFlow.vue @@ -450,6 +450,9 @@ export default { }, // 保存 handleSave () { + if (this.loading) { + return + } // 有任意一项填了即可 // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() @@ -512,9 +515,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交,发起变更 @@ -558,9 +560,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -588,9 +589,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -612,9 +612,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -643,9 +642,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } } else { @@ -660,9 +658,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } } @@ -689,9 +686,9 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } }).finally(() => { - this.loading = false this.validatorRules.commitText.rules[0].required = false }) } diff --git a/src/views/workCenter/enterpriseStandardSealSave/EnterpriseStandardSealSaveFlow.vue b/src/views/workCenter/enterpriseStandardSealSave/EnterpriseStandardSealSaveFlow.vue index 6a33c529..58dac7c7 100644 --- a/src/views/workCenter/enterpriseStandardSealSave/EnterpriseStandardSealSaveFlow.vue +++ b/src/views/workCenter/enterpriseStandardSealSave/EnterpriseStandardSealSaveFlow.vue @@ -304,6 +304,9 @@ export default { }, // 保存 handleSave () { + if (this.loading) { + return + } // 有任意一项填了即可 // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() @@ -355,9 +358,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交 @@ -394,9 +396,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -424,9 +425,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -450,9 +450,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -478,9 +477,9 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } }).finally(() => { - this.loading = false this.validatorRules.commitText.rules[0].required = false }) } diff --git a/src/views/workCenter/enterpriseStandardStartUse/EnterpriseStandardStartUseFlow.vue b/src/views/workCenter/enterpriseStandardStartUse/EnterpriseStandardStartUseFlow.vue index 7e24f61f..bec892ae 100644 --- a/src/views/workCenter/enterpriseStandardStartUse/EnterpriseStandardStartUseFlow.vue +++ b/src/views/workCenter/enterpriseStandardStartUse/EnterpriseStandardStartUseFlow.vue @@ -302,6 +302,9 @@ export default { }, // 保存 handleSave () { + if (this.loading) { + return + } // 有任意一项填了即可 // 流程信息表单 const processInfoForm = this.processInfoForm.getFieldsValue() @@ -353,9 +356,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) }, // 节点一时候的提交 @@ -392,9 +394,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } else { this.switchValue = 'base' @@ -422,9 +423,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -448,9 +448,8 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } - }).finally(() => { - this.loading = false }) } }) @@ -476,9 +475,9 @@ export default { this.goBack() } else { this.$message.warning(res.message) + this.loading = false } }).finally(() => { - this.loading = false this.validatorRules.commitText.rules[0].required = false }) }