From ec900e586d30080330e52efde89db6bc6f03ac7a Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Thu, 23 Nov 2023 15:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E7=94=A8=E5=8D=95=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=96=B0=E5=A2=9E=E3=80=81=E7=82=B9=E6=A3=80?= =?UTF-8?q?=E3=80=81=E5=B7=A1=E6=A3=80=E3=80=81=E4=BF=9D=E5=85=BB=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=89=8D=E7=AB=AFBUG=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/deviceOrder/index.vue | 16 ++--- src/views/device/inspectionPlan/index.vue | 8 ++- .../sparePartsApplicationRecord/index.vue | 47 +++++++++++---- src/views/device/spotCheckPlan/index.vue | 8 ++- .../device/spotInspectionOrder/index.vue | 16 ++--- src/views/device/upkeepOrder/index.vue | 60 +++++++++++++------ src/views/device/upkeepPlan/index.vue | 8 ++- 7 files changed, 109 insertions(+), 54 deletions(-) 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 @@