From 03367c0f3cb00c525716c3a46967d0a247b774c9 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Thu, 13 Jun 2024 13:53:53 +0800 Subject: [PATCH] =?UTF-8?q?EAM=20=E2=80=94=E2=80=94>=20=20=E7=82=B9?= =?UTF-8?q?=E6=A3=80=E6=96=B9=E6=A1=88=20=E4=B8=8E=20=E7=82=B9=E6=A3=80?= =?UTF-8?q?=E6=96=B9=E6=A1=88=E5=85=B3=E8=81=94=E9=A1=B9=20=E5=89=8D?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/basicSpotCheckOption/index.ts | 63 +++ src/api/eam/inspectionItem/index.ts | 9 +- .../itemSelectSetForm.vue | 13 +- .../itemSelectSetForm.vue | 1 + .../basicSpotCheckOption.data.ts | 201 +++++++++ src/views/eam/basicSpotCheckOption/index.vue | 300 ++++++++++++++ .../itemSelectSetForm.vue | 387 ++++++++++++++++++ src/views/eam/inspectionItem/index.vue | 18 +- .../eam/spotCheckItem/spotCheckItem.data.ts | 6 + 9 files changed, 989 insertions(+), 9 deletions(-) create mode 100644 src/api/eam/basicSpotCheckOption/index.ts create mode 100644 src/views/eam/basicSpotCheckOption/basicSpotCheckOption.data.ts create mode 100644 src/views/eam/basicSpotCheckOption/index.vue create mode 100644 src/views/eam/basicSpotCheckOption/itemSelectSetForm.vue diff --git a/src/api/eam/basicSpotCheckOption/index.ts b/src/api/eam/basicSpotCheckOption/index.ts new file mode 100644 index 000000000..5b7d2d409 --- /dev/null +++ b/src/api/eam/basicSpotCheckOption/index.ts @@ -0,0 +1,63 @@ +import request from '@/config/axios' + +export interface BasicSpotCheckOptionVO { + id: number + code: string + name: string + selectId: number + describing: string + isUpdated: boolean + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询点检方案列表 +export const getBasicSpotCheckOptionPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/basic-spotCheck-option/senior', data }) + } else { + return await request.get({ url: `/eam/basic-spotCheck-option/page`, params }) + } +} + +// 查询点检方案详情 +export const getBasicSpotCheckOption = async (id: number) => { + return await request.get({ url: `/eam/basic-spotCheck-option/get?id=` + id }) +} + +// 新增点检方案 +export const createBasicSpotCheckOption = async (data: BasicSpotCheckOptionVO) => { + return await request.post({ url: `/eam/basic-spotCheck-option/create`, data }) +} + +// 修改点检方案 +export const updateBasicSpotCheckOption = async (data: BasicSpotCheckOptionVO) => { + return await request.put({ url: `/eam/basic-spotCheck-option/update`, data }) +} + +// 删除点检方案 +export const deleteBasicSpotCheckOption = async (id: number) => { + return await request.delete({ url: `/eam/basic-spotCheck-option/delete?id=` + id }) +} + +// 导出点检方案 Excel +export const exportBasicSpotCheckOption = async (params) => { + return await request.download({ url: `/eam/basic-spotCheck-option/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/basic-spotCheck-option/get-import-template' }) +} + +// 启用 / 禁用 +export const updateEnableCode = async (data: BasicSpotCheckOptionVO) => { + return await request.post({ url: `/eam/basic-spotCheck-option/ables` , data }) +} diff --git a/src/api/eam/inspectionItem/index.ts b/src/api/eam/inspectionItem/index.ts index 86b606728..ddf8cf80f 100644 --- a/src/api/eam/inspectionItem/index.ts +++ b/src/api/eam/inspectionItem/index.ts @@ -1,4 +1,5 @@ import request from '@/config/axios' +import {InspectionItemSelectSetVO} from "@/api/eam/inspectionItemSelectSet"; export interface InspectionItemVO { id: number @@ -59,4 +60,10 @@ export const exportInspectionItem = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/eam/basic/inspection-item/get-import-template' }) -} \ No newline at end of file +} + + +// 启用 / 禁用 +export const updateEnableCode = async (data: InspectionItemVO) => { + return await request.post({ url: `/eam/basic/inspection-item/ables` , data }) +} diff --git a/src/views/eam/basicInspectionOption/itemSelectSetForm.vue b/src/views/eam/basicInspectionOption/itemSelectSetForm.vue index 0aed31571..357c89e66 100644 --- a/src/views/eam/basicInspectionOption/itemSelectSetForm.vue +++ b/src/views/eam/basicInspectionOption/itemSelectSetForm.vue @@ -83,6 +83,15 @@ +