From 4be2a15348b181d8d57eb603bcc55cd43c3b3077 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Fri, 17 Nov 2023 15:41:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=A8=A1=E7=89=88=20=E6=A8=A1=E7=89=88=E8=AF=A6?= =?UTF-8?q?=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/spc/detectionTemplate/index.ts | 57 +++++ src/api/spc/templateItemDetails/index.ts | 63 +++++ src/views/detection/records/index.vue | 10 +- src/views/detection/records/records.data.ts | 4 +- .../detectionTemplate.data.ts | 140 +++++++++++ src/views/spc/detectiontemplate/index.vue | 231 ++++++++++++++++++ src/views/spc/itembasic/itembasic.data.ts | 3 + src/views/spc/templateitemdetails/index.vue | 231 ++++++++++++++++++ .../templateItemDetails.data.ts | 186 ++++++++++++++ 9 files changed, 918 insertions(+), 7 deletions(-) create mode 100644 src/api/spc/detectionTemplate/index.ts create mode 100644 src/api/spc/templateItemDetails/index.ts create mode 100644 src/views/spc/detectiontemplate/detectionTemplate.data.ts create mode 100644 src/views/spc/detectiontemplate/index.vue create mode 100644 src/views/spc/templateitemdetails/index.vue create mode 100644 src/views/spc/templateitemdetails/templateItemDetails.data.ts diff --git a/src/api/spc/detectionTemplate/index.ts b/src/api/spc/detectionTemplate/index.ts new file mode 100644 index 0000000..b765210 --- /dev/null +++ b/src/api/spc/detectionTemplate/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface DetectionTemplateVO { + itemCode: string + name: string + desc: string + available: string + version: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: string + siteId: string + itemType: string +} + +// 查询检测记录信息列表 +export const getDetectionTemplatePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/spc/detection-template/senior', data }) + } else { + return await request.get({ url: `/spc/detection-template/page`, params }) + } +} + +// 查询检测记录信息详情 +export const getDetectionTemplate = async (id: number) => { + return await request.get({ url: `/spc/detection-template/get?id=` + id }) +} + +// 新增检测记录信息 +export const createDetectionTemplate = async (data: DetectionTemplateVO) => { + return await request.post({ url: `/spc/detection-template/create`, data }) +} + +// 修改检测记录信息 +export const updateDetectionTemplate = async (data: DetectionTemplateVO) => { + return await request.put({ url: `/spc/detection-template/update`, data }) +} + +// 删除检测记录信息 +export const deleteDetectionTemplate = async (id: number) => { + return await request.delete({ url: `/spc/detection-template/delete?id=` + id }) +} + +// 导出检测记录信息 Excel +export const exportDetectionTemplate = async (params) => { + return await request.download({ url: `/spc/detection-template/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/spc/detection-template/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/spc/templateItemDetails/index.ts b/src/api/spc/templateItemDetails/index.ts new file mode 100644 index 0000000..7c811af --- /dev/null +++ b/src/api/spc/templateItemDetails/index.ts @@ -0,0 +1,63 @@ +import request from '@/config/axios' + +export interface TemplateItemDetailsVO { + templateId: number + orderNo: number + methods: string + contents: string + levels: string + upLimit: number + available: string + downLimit: number + type: string + image1: string + image2: string + image3: string + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: string + siteId: string +} + +// 查询检测记录明细列表 +export const getTemplateItemDetailsPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/spc/template-item-details/senior', data }) + } else { + return await request.get({ url: `/spc/template-item-details/page`, params }) + } +} + +// 查询检测记录明细详情 +export const getTemplateItemDetails = async (id: number) => { + return await request.get({ url: `/spc/template-item-details/get?id=` + id }) +} + +// 新增检测记录明细 +export const createTemplateItemDetails = async (data: TemplateItemDetailsVO) => { + return await request.post({ url: `/spc/template-item-details/create`, data }) +} + +// 修改检测记录明细 +export const updateTemplateItemDetails = async (data: TemplateItemDetailsVO) => { + return await request.put({ url: `/spc/template-item-details/update`, data }) +} + +// 删除检测记录明细 +export const deleteTemplateItemDetails = async (id: number) => { + return await request.delete({ url: `/spc/template-item-details/delete?id=` + id }) +} + +// 导出检测记录明细 Excel +export const exportTemplateItemDetails = async (params) => { + return await request.download({ url: `/spc/template-item-details/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/spc/template-item-details/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/detection/records/index.vue b/src/views/detection/records/index.vue index c4774d5..73f74ee 100644 --- a/src/views/detection/records/index.vue +++ b/src/views/detection/records/index.vue @@ -1,8 +1,8 @@