|
@ -74,9 +74,9 @@ export const witPurchaseMain = async (id: number) => { |
|
|
export const exportPurchaseMain = async (params) => { |
|
|
export const exportPurchaseMain = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
const data = { ...params } |
|
|
const data = { ...params } |
|
|
return await request.downloadPost({ url: `/wms/purchase-main/export-excel-senior`, data }) |
|
|
return await request.downloadPost({ url: `/wms/purchase-main/export-excel-seniorWMS`, data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/purchase-main/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/purchase-main/excelWMS`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|