From 3308a2e126bb7e67f6670f227122ceb610725747 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Fri, 20 Oct 2023 15:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E4=BF=AE+=E7=BB=B4=E4=BF=AE=E5=B7=A5?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/faultReport.js | 10 +- src/api/device/repairOrder.js | 46 +++ src/views/device/faultReport/index.vue | 316 +++++++++++++++-- src/views/device/repairOrder/index.vue | 465 +++++++++++++++++++++++++ 4 files changed, 807 insertions(+), 30 deletions(-) create mode 100644 src/api/device/repairOrder.js create mode 100644 src/views/device/repairOrder/index.vue diff --git a/src/api/device/faultReport.js b/src/api/device/faultReport.js index cf42c1cf..e183880c 100644 --- a/src/api/device/faultReport.js +++ b/src/api/device/faultReport.js @@ -29,7 +29,7 @@ export function addFaultReport(data) { // 修改故障报修 export function updateFaultReport(data) { return request({ - url: '/device/faultReport', + url: '/device/faultReport/edit', method: 'put', data: data }); @@ -60,3 +60,11 @@ export function getEquipmentTypeList() { }); } +// 审核维修工单 +export function checkFaultReport(data) { + return request({ + url: '/device/faultReport/check', + method: 'put', + data: data + }); +} diff --git a/src/api/device/repairOrder.js b/src/api/device/repairOrder.js new file mode 100644 index 00000000..98d5f415 --- /dev/null +++ b/src/api/device/repairOrder.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +// 查询维修工单列表 +export function listRepairOrder(query) { + return request({ + url: '/device/repairOrder/list', + method: 'get', + params: query + }); +} + +// 查询维修工单详细 +export function getRepairOrder(workId) { + return request({ + url: '/device/repairOrder/' + workId, + method: 'get' + }); +} + +// 新增维修工单 +export function addRepairOrder(data) { + return request({ + url: '/device/repairOrder', + method: 'post', + data: data + }); +} + +// 修改维修工单 +export function updateRepairOrder(data) { + return request({ + url: '/device/repairOrder', + method: 'put', + data: data + }); +} + +// 删除维修工单 +export function delRepairOrder(workId) { + return request({ + url: '/device/repairOrder/' + workId, + method: 'delete' + }); +} + + diff --git a/src/views/device/faultReport/index.vue b/src/views/device/faultReport/index.vue index 8b530047..23cb5bff 100644 --- a/src/views/device/faultReport/index.vue +++ b/src/views/device/faultReport/index.vue @@ -31,7 +31,7 @@ - + - + @@ -140,10 +140,15 @@ - + - - + + + + + @@ -171,75 +183,286 @@ @pagination="getList" /> - - + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + placeholder="选择日期时间" + disabled + style="width:195px" + > - + + + - - - - + + + + - + - + - + + 报修信息审核 + + + + + 计划性维修 + 不维修 + 委外维修 + 立即维修 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +