Browse Source

QMS导出

hella_online_20240829
zhaoyiran 6 months ago
parent
commit
b806256bed
  1. 7
      src/api/qms/aql/index.ts
  2. 7
      src/api/qms/counter/index.ts
  3. 7
      src/api/qms/dynamicRule/index.ts
  4. 7
      src/api/qms/inspectionMethod/index.ts
  5. 7
      src/api/qms/samplingProcess/index.ts
  6. 7
      src/api/qms/selectedSet/index.ts

7
src/api/qms/aql/index.ts

@ -94,7 +94,12 @@ export const deleteAql = async (id: number) => {
// 导出aql Excel
export const exportAql = async (params) => {
return await request.download({ url: `/qms/aql/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/aql/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/aql/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/qms/counter/index.ts

@ -53,7 +53,12 @@ export const deleteCounter = async (id: number) => {
// 导出物料检验计数器 Excel
export const exportCounter = async (params) => {
return await request.download({ url: `/qms/counter/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/counter/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/counter/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/qms/dynamicRule/index.ts

@ -44,7 +44,12 @@ export const deleteDynamicRule = async (id: number) => {
// 导出动态修改规则 Excel
export const exportDynamicRule = async (params) => {
return await request.download({ url: `/qms/dynamic-rule/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/dynamic-rule/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/dynamic-rule/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/qms/inspectionMethod/index.ts

@ -44,7 +44,12 @@ export const deleteInspectionMethod = async (id: number) => {
// 导出检验方法 Excel
export const exportInspectionMethod = async (params) => {
return await request.download({ url: `/qms/inspection-method/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/inspection-method/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/inspection-method/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/qms/samplingProcess/index.ts

@ -50,7 +50,12 @@ export const deleteSamplingProcess = async (id: number) => {
// 导出采样过程 Excel
export const exportSamplingProcess = async (params) => {
return await request.download({ url: `/qms/sampling-process/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/sampling-process/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/sampling-process/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/qms/selectedSet/index.ts

@ -46,7 +46,12 @@ export const deleteSelectedSet = async (id: number) => {
// 导出选定集 Excel
export const exportSelectedSet = async (params) => {
return await request.download({ url: `/qms/selected-set/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/qms/selected-set/export-excel-senior`, data })
}else{
return await request.download({ url: `/qms/selected-set/export-excel`, params })
}
}
// 下载用户导入模板

Loading…
Cancel
Save