|
@ -58,7 +58,12 @@ export const deleteQ1 = async (id: number) => { |
|
|
|
|
|
|
|
|
// 导出Q1通知单 Excel
|
|
|
// 导出Q1通知单 Excel
|
|
|
export const exportQ1 = async (params) => { |
|
|
export const exportQ1 = async (params) => { |
|
|
return await request.download({ url: `/qms/inspectionQ1/export-excel`, params }) |
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/qms/inspectionQ1/export-excel-senior`, data }) |
|
|
|
|
|
}else{ |
|
|
|
|
|
return await request.download({ url: `/qms/inspectionQ1/export-excel`, params }) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
@ -69,4 +74,4 @@ export const importTemplate = () => { |
|
|
// 完成
|
|
|
// 完成
|
|
|
export const finishQ1 = async (id: number) => { |
|
|
export const finishQ1 = async (id: number) => { |
|
|
return await request.get({ url: `/qms/inspectionQ1/finish?id=` + id }) |
|
|
return await request.get({ url: `/qms/inspectionQ1/finish?id=` + id }) |
|
|
} |
|
|
} |
|
|