|
|
@ -63,8 +63,8 @@ export const deleteTransaction = async (id: number) => { |
|
|
|
// 导出库存事务 Excel
|
|
|
|
export const checkExportTransaction = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
delete data.isSearch |
|
|
|
return await request.post({ url: '/wms/transaction/export-excel-senior-checkCnt', data }) |
|
|
|
} else { |
|
|
|
return await request.get({ url: `/wms/transaction/export-excel-checkCnt`, params }) |
|
|
@ -74,8 +74,8 @@ export const checkExportTransaction = async (params) => { |
|
|
|
// 导出库存事务 Excel
|
|
|
|
export const exportTransaction = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
delete data.isSearch |
|
|
|
return await request.downloadPost({ url: '/wms/transaction/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/transaction/export-excel`, params }) |
|
|
|