Browse Source

QMS导出

hella_online_20240829
zhaoyiran 3 months ago
parent
commit
4a6b4796d8
  1. 5
      src/api/qms/sampleCode/index.ts
  2. 5
      src/api/qms/samplingScheme/index.ts

5
src/api/qms/sampleCode/index.ts

@ -48,8 +48,13 @@ export const deleteSampleCode = async (id: number) => {
// 导出样本字码 Excel // 导出样本字码 Excel
export const exportSampleCode = async (params) => { export const exportSampleCode = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/sample-code/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/sample-code/export-excel`, params }) return await request.download({ url: `/qms/sample-code/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

5
src/api/qms/samplingScheme/index.ts

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

Loading…
Cancel
Save