Browse Source

QMS导出

hella_online_20240829
zhaoyiran 3 months ago
parent
commit
962b866aeb
  1. 5
      src/api/qms/inspectionQ1/index.ts
  2. 5
      src/api/qms/inspectionQ2/index.ts
  3. 5
      src/api/qms/inspectionQ3/index.ts

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

@ -58,8 +58,13 @@ export const deleteQ1 = async (id: number) => {
// 导出Q1通知单 Excel
export const exportQ1 = async (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 })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -59,8 +59,13 @@ export const deleteQ2 = async (id: number) => {
// 导出Q2通知单 Excel
export const exportQ2 = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/inspectionQ2/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/inspectionQ2/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -59,8 +59,13 @@ export const deleteQ3 = async (id: number) => {
// 导出Q3通知单 Excel
export const exportQ3 = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/inspectionQ3/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/inspectionQ3/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

Loading…
Cancel
Save