From ef9c54bf59ce52166d8f4ac6290d3b4144b3860e Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Tue, 31 Oct 2023 17:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E6=A3=80=E5=B7=A5=E5=8D=95=E3=80=81?= =?UTF-8?q?=E4=BF=9D=E5=85=BB=E5=B7=A5=E5=8D=95init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/spotInspectionOrder.js | 44 ++ src/api/device/upkeepOrder.js | 44 ++ src/views/device/spotCheckPlan/index.vue | 6 +- .../device/spotInspectionOrder/index.vue | 645 ++++++++++++++++++ src/views/device/upkeepOrder/index.vue | 608 +++++++++++++++++ 5 files changed, 1344 insertions(+), 3 deletions(-) create mode 100644 src/api/device/spotInspectionOrder.js create mode 100644 src/api/device/upkeepOrder.js create mode 100644 src/views/device/spotInspectionOrder/index.vue create mode 100644 src/views/device/upkeepOrder/index.vue diff --git a/src/api/device/spotInspectionOrder.js b/src/api/device/spotInspectionOrder.js new file mode 100644 index 0000000..51a0388 --- /dev/null +++ b/src/api/device/spotInspectionOrder.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询点检工单列表 +export function listSpotInspectionOrder(query) { + return request({ + url: '/device/spotInspectionOrder/list', + method: 'get', + params: query + }); +} + +// 查询点检工单详细 +export function getSpotInspectionOrder(orderId) { + return request({ + url: '/device/spotInspectionOrder/' + orderId, + method: 'get' + }); +} + +// 新增点检工单 +export function addSpotInspectionOrder(data) { + return request({ + url: '/device/spotInspectionOrder', + method: 'post', + data: data + }); +} + +// 修改点检工单 +export function updateSpotInspectionOrder(data) { + return request({ + url: '/device/spotInspectionOrder', + method: 'put', + data: data + }); +} + +// 删除点检工单 +export function delSpotInspectionOrder(orderId) { + return request({ + url: '/device/spotInspectionOrder/' + orderId, + method: 'delete' + }); +} diff --git a/src/api/device/upkeepOrder.js b/src/api/device/upkeepOrder.js new file mode 100644 index 0000000..61a3298 --- /dev/null +++ b/src/api/device/upkeepOrder.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询保养工单列表 +export function listUpkeepOrder(query) { + return request({ + url: '/device/upkeepOrder/list', + method: 'get', + params: query + }); +} + +// 查询保养工单详细 +export function getUpkeepOrder(orderId) { + return request({ + url: '/device/upkeepOrder/' + orderId, + method: 'get' + }); +} + +// 新增保养工单 +export function addUpkeepOrder(data) { + return request({ + url: '/device/upkeepOrder', + method: 'post', + data: data + }); +} + +// 修改保养工单 +export function updateUpkeepOrder(data) { + return request({ + url: '/device/upkeepOrder', + method: 'put', + data: data + }); +} + +// 删除保养工单 +export function delUpkeepOrder(orderId) { + return request({ + url: '/device/upkeepOrder/' + orderId, + method: 'delete' + }); +} diff --git a/src/views/device/spotCheckPlan/index.vue b/src/views/device/spotCheckPlan/index.vue index ad8071d..297231c 100644 --- a/src/views/device/spotCheckPlan/index.vue +++ b/src/views/device/spotCheckPlan/index.vue @@ -236,7 +236,7 @@ size="mini" @click="handleAdd" v-hasPermi="['device:spotCheckPlan:add']" - >新增 + >添加计划 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导出 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ this.form.planCode }} + {{ this.form.planName }} + {{ this.form.planLoop }}{{ this.form.planLoopType }} + + {{ this.form.orderCode }} + {{ this.form.planWorkshop }} + {{ this.form.workCenterName }} + + + + + + + + {{ this.form.equ.equipmentName }} + + + +
+ + + + + {{ detail.itemName }} + + + +
+
+ + + + + {{ standard.standardName }} + + + + + 达标 + 未达标 + + + +
+
+ + + + + {{ standard.standardName }} + + + + + {{ standard.detailUpLimit }} + + + + + {{ standard.detailDownLimit }} + + + + + {{ standard.detailUnit }} + + + + + + + + +
+
+ +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+
+ + + diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue new file mode 100644 index 0000000..4dc2897 --- /dev/null +++ b/src/views/device/upkeepOrder/index.vue @@ -0,0 +1,608 @@ + + +