Browse Source

判断调整导出

master_hella_20240701
zhaoyiran 5 months ago
parent
commit
22d3e8250d
  1. 4
      src/api/wms/countadjustRecordMain/index.ts
  2. 2
      src/api/wms/countadjustRequestMain/index.ts

4
src/api/wms/countadjustRecordMain/index.ts

@ -57,7 +57,7 @@ export const exportCountadjustRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/countadjust-record-main/export-excel-senior', data })
return request.downloadPost({ url: '/wms/countadjust-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/countadjust-record-main/export-excel`, params })
}
@ -66,4 +66,4 @@ export const exportCountadjustRecordMain = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/countadjust-record-main/get-import-template' })
}
}

2
src/api/wms/countadjustRequestMain/index.ts

@ -57,7 +57,7 @@ export const exportCountadjustRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/countadjust-request-main/export-excel-senior', data })
return request.downloadPost({ url: '/wms/countadjust-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/countadjust-request-main/export-excel`, params })
}

Loading…
Cancel
Save