|
|
@ -40,8 +40,14 @@ export const deleteSamplingScheme = async (id: number) => { |
|
|
|
|
|
|
|
// 导出采样方案 Excel
|
|
|
|
export const exportSamplingScheme = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return request.downloadPost({ url: '/qms/sampling-scheme/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/qms/sampling-scheme/export-excel`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => { |
|
|
|