diff --git a/src/views/work/abnormal_process/index.vue b/src/views/work/abnormal_process/index.vue index cae8a4f..0c70e44 100644 --- a/src/views/work/abnormal_process/index.vue +++ b/src/views/work/abnormal_process/index.vue @@ -482,10 +482,8 @@ export default { }) } }) - }) }) - } } else if (state === 1) { let material = this.processing @@ -516,13 +514,20 @@ export default { this.nextStepLoading = false } else { this.nextStepLoading = true - stepNextError(step).then(res => { + stepNextError(step) + .then(res => { this.nextStepLoading = false this.getDataList() materialNextStepFlagError().then(res => { this.submitButton = res.data === 0 }) }) + .catch((error) => { + this.$message(error.message) + }) + .finally(() => { + this.nextStepLoading = false + }) } },