From a551d6e61b0d56f8eef458540673840002210fa8 Mon Sep 17 00:00:00 2001 From: gtz <535262213@qq.com> Date: Mon, 15 Aug 2022 17:12:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eqInspection.js | 19 ++-- src/components/VanFieldCheckBox.vue | 8 ++ .../eqInspection/eqInspection-detail.vue | 4 +- src/pages/eqInspection/eqInspection-edit.vue | 89 ++++++++++++++++--- .../components/materialPopup-worker.vue | 1 - src/util/request.js | 2 +- 6 files changed, 104 insertions(+), 19 deletions(-) diff --git a/src/api/eqInspection.js b/src/api/eqInspection.js index 80eb595..60da31f 100644 --- a/src/api/eqInspection.js +++ b/src/api/eqInspection.js @@ -53,6 +53,15 @@ export const eqList = data => { }) } +// 获取巡检项目列表 +export const itemList = data => { + return request({ + url: '/api/equipment/inspectionItem/list', + method: 'POST', + data + }) +} + // 获取设备信息 export const getEqInfo = data => { return request({ @@ -72,7 +81,7 @@ export const getEqInsItemList = data => { }) } -// 获取巡检内容列表 +// 获取巡检项目列表 export const getInsList = data => { return request({ url: '/api/equipment/equipmentinspection-inspectionitem/list', @@ -81,7 +90,7 @@ export const getInsList = data => { }) } -// 根据设备获取巡检内容列表 +// 根据设备获取巡检项目列表 export const getEqInsList = data => { return request({ url: '/api/equipment/inspectionItem/list-WithEQ', @@ -90,7 +99,7 @@ export const getEqInsList = data => { }) } -// 更新巡检内容完成状态 +// 更新巡检项目完成状态 export const updateInsStatus = data => { return request({ url: '/api/equipment/equipmentinspection-inspectionitem/update', @@ -99,7 +108,7 @@ export const updateInsStatus = data => { }) } -// 获取巡检内容详情 +// 获取巡检项目详情 export const detailIns = data => { return request({ url: '/api/equipment/equipmentinspection-inspectionitem/get', @@ -108,7 +117,7 @@ export const detailIns = data => { }) } -// 更新巡检内容详情 +// 更新巡检项目详情 export const updateIns = data => { return request({ url: '/api/equipment/equipmentinspection-inspectionitem/update', diff --git a/src/components/VanFieldCheckBox.vue b/src/components/VanFieldCheckBox.vue index 4017758..7c40e1f 100644 --- a/src/components/VanFieldCheckBox.vue +++ b/src/components/VanFieldCheckBox.vue @@ -179,3 +179,11 @@ export default { } } + + diff --git a/src/pages/eqInspection/eqInspection-detail.vue b/src/pages/eqInspection/eqInspection-detail.vue index eaf7b5e..29597fd 100644 --- a/src/pages/eqInspection/eqInspection-detail.vue +++ b/src/pages/eqInspection/eqInspection-detail.vue @@ -24,7 +24,7 @@ - 巡检内容 + 巡检项目 {{ dataForm.inspectionContent }} @@ -33,7 +33,7 @@ - 巡检内容编码 + 巡检项目编码 {{ dataForm.inspectionItem }} diff --git a/src/pages/eqInspection/eqInspection-edit.vue b/src/pages/eqInspection/eqInspection-edit.vue index 8826620..a8dae7e 100644 --- a/src/pages/eqInspection/eqInspection-edit.vue +++ b/src/pages/eqInspection/eqInspection-edit.vue @@ -29,7 +29,6 @@ @@ -43,7 +42,6 @@ @@ -57,7 +55,6 @@ + + + + 巡检项目 + + + + +
- 巡检内容 + 巡检项目