From ffe242fe2d9b8b1fd2e7c39a58171a36771d4a15 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Thu, 30 May 2024 14:27:48 +0800 Subject: [PATCH] =?UTF-8?q?2024-05-30=20=E8=AE=BE=E5=A4=87-=E7=BB=B4?= =?UTF-8?q?=E4=BF=AE-=E7=BB=93=E6=9E=9C=E6=A3=80=E9=AA=8C=E5=90=8E?= =?UTF-8?q?=E5=8F=91=E9=80=81=E5=BE=AE=E4=BF=A1=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/repairOrder.js | 8 +++ src/views/device/repairOrder/index.vue | 71 ++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/src/api/device/repairOrder.js b/src/api/device/repairOrder.js index de607b47..71f2c809 100644 --- a/src/api/device/repairOrder.js +++ b/src/api/device/repairOrder.js @@ -79,4 +79,12 @@ export function queryEquFaultTypeTree(query) { }); } +// 维修工单检验 +export function subInspect(data) { + return request({ + url: '/device/repairOrder/subInspect', + method: 'post', + data: data + }); + } diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index ab19ecf9..80ccf891 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -224,6 +224,17 @@ >委外申请 + + 结果检验 + + + + + + + + 待检验 + 未通过 + 通过 + + 取 消 + 确 定 + + + item.workId); + this.orderCodes = selection.map((item) => item.workCode); this.single = selection.length !== 1; this.multiple = !selection.length; }, @@ -2327,6 +2367,37 @@ export default { } }); }, + // 点击结果检验按钮 + clickInspect() { + if (this.ids.length == 0 || this.ids == null) { + this.$message({ + message: "请勾选工单!", + type: "warning", + }); + return; + } + //需要加一个结果检验 + this.inspectDialog = true; + this.inspect = "1"; + }, + + // 提交检验信息 + subInspect() { + const data = { + ids: this.ids, + inspect: this.inspect, + orderCodes: this.orderCodes, + }; + + subInspect(data).then((response) => { + this.getList(); + this.inspectDialog = false; + this.$message({ + message: "提交成功!", + type: "success", + }); + }); + }, //设备选择 handleSelectEquipment() { this.$refs.itemSelect.showFlag = true;