|
@ -62,12 +62,28 @@ export const deleteInspectionRecordMain = async (id: number) => { |
|
|
export const exportInspectionRecordMain = async (params) => { |
|
|
export const exportInspectionRecordMain = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
const data = { ...params } |
|
|
const data = { ...params } |
|
|
return await request.downloadPost({ url: `/qms/inspection-record-main/export-excel-senior`, data }) |
|
|
return await request.downloadPost({ |
|
|
|
|
|
url: `/qms/inspection-record-main/export-excel-senior`, |
|
|
|
|
|
data |
|
|
|
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
return await request.download({ url: `/qms/inspection-record-main/export-excel`, params }) |
|
|
return await request.download({ url: `/qms/inspection-record-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 导出首件检验记录 Excel
|
|
|
|
|
|
export const exportFirstInspectionRecordMain = async (params) => { |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = { ...params } |
|
|
|
|
|
return await request.downloadPost({ |
|
|
|
|
|
url: `/qms/inspection-record-main/export-excel-first-senior`, |
|
|
|
|
|
data |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
return await request.download({ url: `/qms/inspection-record-main/export-excel-first`, params }) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|
return request.download({ url: '/qms/inspection-record-main/get-import-template' }) |
|
|
return request.download({ url: '/qms/inspection-record-main/get-import-template' }) |
|
|