diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue index 4f91b94..d90247a 100644 --- a/src/views/device/deviceOrder/index.vue +++ b/src/views/device/deviceOrder/index.vue @@ -954,14 +954,14 @@ export default { } this.$modal.confirm('是否确认删除计划工单编号为"' + orderCodes + '"的数据项?').then(function () { - delDeviceOrder(orderIds).then(response => { - if (response.code != 500) { - this.$modal.msgSuccess("删除成功"); - this.getList(); - } - }).catch(() => { - }); - }) + return delDeviceOrder(orderIds); + }).then(response => { + if (response.code != 500) { + this.$modal.msgSuccess("删除成功"); + this.getList(); + } + }).catch(() => { + }); }, /** 导出按钮操作 */ handleExport() { diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index d2a7391..c19cedd 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -1242,9 +1242,11 @@ export default { this.$modal.confirm('是否确认删除计划编号为"' + planCodes + '"的数据项?').then(function () { return delPlan(planIds); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); + }).then(response => { + if (response.code != 500) { + this.$modal.msgSuccess("删除成功"); + this.getList(); + } }).catch(() => { }); }, diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue index 05a7862..9dae498 100644 --- a/src/views/device/sparePartsApplicationRecord/index.vue +++ b/src/views/device/sparePartsApplicationRecord/index.vue @@ -106,6 +106,7 @@ - - + + + + - - @@ -161,6 +162,7 @@