From 02aa3b162f89dd4f7427d0d76825be74747d21bf Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Tue, 2 Jul 2024 17:40:37 +0800 Subject: [PATCH] =?UTF-8?q?EAM=20=E2=80=94=E2=80=94>=20=20=E5=B7=A1?= =?UTF-8?q?=E6=A3=80=20=E7=82=B9=E6=A3=80=20=E4=BF=9D=E5=85=BB=E6=96=B9?= =?UTF-8?q?=E6=A1=88=20=E5=A2=9E=E5=8A=A0=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/classTypeRole/index.ts | 8 ++- src/api/eam/inspectionItemSelectSet/index.ts | 10 ++++ src/api/eam/maintenanceItemSelectSet/index.ts | 12 +++- src/api/eam/spotCheckSelectSet/index.ts | 11 ++++ .../itemSelectSetForm.vue | 38 +++++------- .../itemSelectSetForm.vue | 31 +++++----- .../itemSelectSetForm.vue | 27 ++++++--- src/views/eam/classTypeRole/index.vue | 58 +++++++++++++++++-- .../equipmentManufacturer.data.ts | 2 +- .../eam/inspectionItem/inspectionItem.data.ts | 23 ++++++-- src/views/eam/item/index.vue | 2 +- .../maintenanceItem/maintenanceItem.data.ts | 19 +++++- .../itemSelectSetForm.vue | 6 +- .../eam/spotCheckItem/spotCheckItem.data.ts | 23 ++++++-- 14 files changed, 199 insertions(+), 71 deletions(-) diff --git a/src/api/eam/classTypeRole/index.ts b/src/api/eam/classTypeRole/index.ts index 506a8abe3..c6dd9393c 100644 --- a/src/api/eam/classTypeRole/index.ts +++ b/src/api/eam/classTypeRole/index.ts @@ -61,4 +61,10 @@ export const exportClassTypeRole = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/eam/basic/class-type-role/get-import-template' }) -} \ No newline at end of file +} + + +// 启用 / 禁用 +export const updateEnableCode = async (data: ClassTypeRoleVO) => { + return await request.post({ url: `/eam/basic/class-type-role/ables` , data }) +} diff --git a/src/api/eam/inspectionItemSelectSet/index.ts b/src/api/eam/inspectionItemSelectSet/index.ts index c3e897706..f02a16672 100644 --- a/src/api/eam/inspectionItemSelectSet/index.ts +++ b/src/api/eam/inspectionItemSelectSet/index.ts @@ -58,3 +58,13 @@ export const importTemplate = () => { export const updateEnableCode = async (data: InspectionItemSelectSetVO) => { return await request.post({ url: `/eam/basic/inspection-item-select-set/ables` , data }) } + +// 查询巡检项选择集列表 +export const getInspectionItemSelectSetList = async (params) => { + return await request.get({ url: `/eam/basic/inspection-item/getList`, params }) +} + +// 查询巡检方案项列表 +export const getRalInspectionOptionItemList = async (params) => { + return await request.get({url: `/eam/relation-inspection-option-item/getList?optionCode=` + params}) +} diff --git a/src/api/eam/maintenanceItemSelectSet/index.ts b/src/api/eam/maintenanceItemSelectSet/index.ts index 35f0c9817..b3a67ce24 100644 --- a/src/api/eam/maintenanceItemSelectSet/index.ts +++ b/src/api/eam/maintenanceItemSelectSet/index.ts @@ -56,5 +56,15 @@ export const importTemplate = () => { // 启用 / 禁用 export const updateEnableCode = async (data: MaintenanceItemSelectSetVO) => { - return await request.post({ url: `/eam/basic/inspection-item-select-set/ables` , data }) + return await request.post({ url: `/eam/basic/maintenance-item-select-set/ables` , data }) +} + +// 查询保养项选择集列表 +export const getMaintenanceItemSelectSetList = async (params) => { + return await request.get({ url: `/eam/basic/maintenance-item/getList`, params }) +} + +// 查询保养方案项列表 +export const getRalMaintenanceOptionItemList = async (params) => { + return await request.get({url: `/eam/relation-maintenance-option-item/getList?optionCode=` + params}) } diff --git a/src/api/eam/spotCheckSelectSet/index.ts b/src/api/eam/spotCheckSelectSet/index.ts index be9a0ccb3..dd6a604fa 100644 --- a/src/api/eam/spotCheckSelectSet/index.ts +++ b/src/api/eam/spotCheckSelectSet/index.ts @@ -59,3 +59,14 @@ export const importTemplate = () => { export const updateEnableCode = async (data: BasicSpotCheckSelectSetVO) => { return await request.post({ url: `/eam/basic/spot-check-select-set/ables` , data }) } + + +// 查询点检项选择集列表 +export const getSpotCheckSelectSetList = async (params) => { + return await request.get({ url: `/eam/basic/spot-check-item/getList`, params }) +} + +// 查询点检方案项列表 +export const getRalSpotCheckOptionItemList = async (params) => { + return await request.get({url: `/eam/relation-spotCheck-option-item/getList?optionCode=` + params}) +} diff --git a/src/views/eam/basicInspectionOption/itemSelectSetForm.vue b/src/views/eam/basicInspectionOption/itemSelectSetForm.vue index 357c89e66..98b843924 100644 --- a/src/views/eam/basicInspectionOption/itemSelectSetForm.vue +++ b/src/views/eam/basicInspectionOption/itemSelectSetForm.vue @@ -65,7 +65,7 @@ - + @@ -83,15 +83,6 @@ -