|
@ -47,7 +47,7 @@ export const exportContainerMainRequest = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = { ...params } |
|
|
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 { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -59,7 +59,7 @@ export const exportInitialContainerMainRequest = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = { ...params } |
|
|
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 { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -71,7 +71,7 @@ export const exportScrapContainerMainRequest = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = { ...params } |
|
|
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 { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -83,7 +83,7 @@ export const exportMoveContainerMainRequest = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = { ...params } |
|
|
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 { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -95,7 +95,7 @@ export const exportReturnContainerMainRequest = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = { ...params } |
|
|
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 { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -107,7 +107,7 @@ export const exportDeliverContainerMainRequest = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = { ...params } |
|
|
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 { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/container-main-request/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -146,4 +146,4 @@ export const agree = (id) => { |
|
|
// 处理
|
|
|
// 处理
|
|
|
export const handle = (id) => { |
|
|
export const handle = (id) => { |
|
|
return request.put({ url: '/wms/container-main-request/handle?id=' + id }) |
|
|
return request.put({ url: '/wms/container-main-request/handle?id=' + id }) |
|
|
} |
|
|
} |
|
|