|
|
@ -47,7 +47,7 @@ export const exportContainerMainRequest = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = { ...params } |
|
|
|
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
|
} |
|
|
@ -59,7 +59,7 @@ export const exportInitialContainerMainRequest = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = { ...params } |
|
|
|
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
|
} |
|
|
@ -71,7 +71,7 @@ export const exportScrapContainerMainRequest = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = { ...params } |
|
|
|
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
|
} |
|
|
@ -83,7 +83,7 @@ export const exportMoveContainerMainRequest = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = { ...params } |
|
|
|
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
|
} |
|
|
@ -95,7 +95,7 @@ export const exportReturnContainerMainRequest = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = { ...params } |
|
|
|
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
|
} |
|
|
@ -107,7 +107,7 @@ export const exportDeliverContainerMainRequest = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = { ...params } |
|
|
|
return await request.post({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
return await request.downloadPost({ url: '/wms/container-main-request/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
|
} |
|
|
|