diff --git a/src/pages/processCenter/pages/phone/qbfs/step5.vue b/src/pages/processCenter/pages/phone/qbfs/step5.vue index 39537283d..86a0ced25 100644 --- a/src/pages/processCenter/pages/phone/qbfs/step5.vue +++ b/src/pages/processCenter/pages/phone/qbfs/step5.vue @@ -562,6 +562,7 @@ export default { //流程保存 handleSave(){ this.saveLoading = true + this.isSubmit = true let _formData = new FormData() _formData.append('id', this.bpnId || '') _formData.append('createUser', this.$store.getters.userInfo.account) @@ -572,11 +573,11 @@ export default { commentText: this.commentText })) saveTaskFirst(_formData).then(res => { - this.saveLoading = false this.$message.success('保存成功') this.bpnId = res.result - }).catch(e => { + }).finally(() => { this.saveLoading = false + this.isSubmit = false }) }, processEditFile(id) { @@ -615,13 +616,16 @@ export default { return res }) } - this.submitLoading = false // hwh5.close() this.$router.go(-2) // this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) } else { + this.submitLoading = false this.isSubmit = false } + }).catch(() => { + this.submitLoading = false + this.isSubmit = false }) }, async routerBussProStand(){ @@ -651,10 +655,11 @@ export default { commentText: this.commentText })) saveTaskFirst(_formData).then(res => { - this.saveLoading = false this.$message.success('自动创建企标制修订-产品标准流程,跳转至主起草人流程中心草稿') this.bpnId = res.result - }).catch(e => { + }).finally(() => { + this.saveLoading = false + this.isSubmit = false }) }, //流程提交 @@ -674,8 +679,10 @@ export default { _this: this }, res => { if (res.success) { - this.isSubmit = false this.processCreateFsBuss(json) + } else { + this.isSubmit = false + this.saveLoading = false } }, e => { });