|
|
@ -1,28 +1,26 @@ |
|
|
|
import request from '@/config/axios' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 列表
|
|
|
|
export const getListByTempleteCode = async (code) => { |
|
|
|
return await request.get({ url: `/qms/inspection-process/getListByTempleteCode?code=`+code}) |
|
|
|
return await request.get({ url: `/qms/inspection-process/getListByTempleteCode?code=` + code }) |
|
|
|
} |
|
|
|
// 新增
|
|
|
|
export const inspectionTemplateCreat = async (data) => { |
|
|
|
return await request.post({ url: `/qms/programme-template/create`,data}) |
|
|
|
return await request.post({ url: `/qms/programme-template/create`, data }) |
|
|
|
} |
|
|
|
// 编辑
|
|
|
|
export const inspectionTemplateUpdate = async (data) => { |
|
|
|
return await request.put({ url: `/qms/programme-template/update`,data}) |
|
|
|
return await request.put({ url: `/qms/programme-template/update`, data }) |
|
|
|
} |
|
|
|
// 删除
|
|
|
|
export const inspectionTemplateDelete = async (id) => { |
|
|
|
return await request.delete({ url: `/qms/programme-template/delete?id=`+id}) |
|
|
|
return await request.delete({ url: `/qms/programme-template/delete?id=` + id }) |
|
|
|
} |
|
|
|
// 列表
|
|
|
|
export const inspectionTemplatePage = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
const data = { ...params } |
|
|
|
return request.post({ url: '/qms/programme-template/senior', data }) |
|
|
|
} else { |
|
|
|
return await request.get({ url: `/qms/programme-template/page`, params }) |
|
|
@ -38,6 +36,11 @@ export const disableInspectionTemplate = async (id: number) => { |
|
|
|
return await request.disable({ url: `/qms/programme-template/disable?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 导出检验模版 Excel
|
|
|
|
export const exportInspectionTemplate = async (params) => { |
|
|
|
return await request.download({ url: `/qms/programme-template/export-excel`, params }) |
|
|
|
} |
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => { |
|
|
|
return request.download({ url: '/qms/programme-template/get-import-template' }) |
|
|
|