From 3ebef94a3d1fe78bbb6365374a19fb805f47475c Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Wed, 22 Nov 2023 18:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E6=A3=80=E3=80=81=E5=B7=A1=E6=A3=80?= =?UTF-8?q?=E3=80=81=E4=BF=9D=E5=85=BB=E8=AE=A1=E5=88=92=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/deviceOrder/index.vue | 14 +- src/views/device/inspectionPlan/index.vue | 108 +++---- src/views/device/spotCheckPlan/index.vue | 286 ++++++++++-------- .../device/spotInspectionOrder/index.vue | 17 +- src/views/device/upkeepOrder/index.vue | 16 +- src/views/device/upkeepPlan/index.vue | 74 ++++- 6 files changed, 301 insertions(+), 214 deletions(-) diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue index d5f4e056..e4bf2724 100644 --- a/src/views/device/deviceOrder/index.vue +++ b/src/views/device/deviceOrder/index.vue @@ -948,12 +948,14 @@ export default { } this.$modal.confirm('是否确认删除计划工单编号为"' + orderCodes + '"的数据项?').then(function () { - return delDeviceOrder(orderIds); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => { - }); + 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 8d0e1c06..9f35e46b 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -377,18 +377,18 @@