diff --git a/mes/qd/src/views/wms/pdm/produce/dailyplan/index.vue b/mes/qd/src/views/wms/pdm/produce/dailyplan/index.vue index ec53255b..f82b017e 100644 --- a/mes/qd/src/views/wms/pdm/produce/dailyplan/index.vue +++ b/mes/qd/src/views/wms/pdm/produce/dailyplan/index.vue @@ -327,9 +327,12 @@ export default { this.crud.notify('请勾选需要操作的记录!') return false } + this.crud.loading = true dailyplan.submit({ query: this.crud.query, rows: this.checkrows }).then(res => { this.crud.notify('操作成功!') this.querytable() + }).catch(() => { + this.crud.loading = false }) }, querytable() { diff --git a/mes/qd/src/views/wms/pdm/produce/mouthtask/index.vue b/mes/qd/src/views/wms/pdm/produce/mouthtask/index.vue index 5474778c..d9885cc2 100644 --- a/mes/qd/src/views/wms/pdm/produce/mouthtask/index.vue +++ b/mes/qd/src/views/wms/pdm/produce/mouthtask/index.vue @@ -303,8 +303,9 @@ export default { this.crud.notify('操作成功!') this.crud.loading = false this.querytable() + }).catch(() => { + this.crud.loading = false }) - this.crud.loading = false }, querytable() { this.crud.toQuery() diff --git a/mes/qd/src/views/wms/pdm/produce/producetask/index.vue b/mes/qd/src/views/wms/pdm/produce/producetask/index.vue index 50e5c9b4..c6f0a9be 100644 --- a/mes/qd/src/views/wms/pdm/produce/producetask/index.vue +++ b/mes/qd/src/views/wms/pdm/produce/producetask/index.vue @@ -363,9 +363,12 @@ export default { this.crud.notify('无可操作的记录!') return false } + this.crud.loading = true crudProducetask.submit({'status': '0', rows: this.checkrows}).then(res => { this.crud.notify('操作成功!') this.querytable() + }).catch(() => { + this.crud.loading = false }) }, save() { @@ -374,9 +377,12 @@ export default { this.crud.notify('请勾选需要提交的记录!') return false } + this.crud.loading = true crudProducetask.submit({'status': '1', rows: this.checkrows}).then(res => { this.crud.notify('操作成功!') this.querytable() + }).catch(() => { + this.crud.loading = false }) }, querytable() {