diff --git a/src/views/work/abnormal_process/index.vue b/src/views/work/abnormal_process/index.vue index 0c70e44..5ac1d8d 100644 --- a/src/views/work/abnormal_process/index.vue +++ b/src/views/work/abnormal_process/index.vue @@ -487,7 +487,6 @@ export default { } } else if (state === 1) { let material = this.processing - let step = this.passList.filter(item => item.operation === 1)[0] step.state = 1 stepUpdate(step).then(res => { materialCheckFlagError(material).then(res => { @@ -508,14 +507,13 @@ export default { // 下道次 nextStep() { - let step = this.passList.filter(item => item.operation === 1)[0] + let step = this.nowPass if (step && step.state === 0) { alert('请操作当前道次') this.nextStepLoading = false } else { this.nextStepLoading = true - stepNextError(step) - .then(res => { + stepNextError(step).then(res => { this.nextStepLoading = false this.getDataList() materialNextStepFlagError().then(res => {