Browse Source

导出

master_hella_20240701
zhaoyiran 5 months ago
parent
commit
6bea8ba042
  1. 14
      src/api/wms/inventorymoveJobMain/index.ts
  2. 10
      src/api/wms/inventorymoveRecordMain/index.ts
  3. 14
      src/api/wms/inventorymoveRequestMain/index.ts

14
src/api/wms/inventorymoveJobMain/index.ts

@ -78,7 +78,7 @@ export const exportInventorymoveJobMain = 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/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -90,7 +90,7 @@ export const exportOkToHoldJobMain = 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/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -102,7 +102,7 @@ export const exportHoldToOkJobMain = 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/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -114,7 +114,7 @@ export const exportHoldToScrapJobMain = 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/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -126,7 +126,7 @@ export const exportOkToScrapJobMain = 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/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -138,7 +138,7 @@ export const exportScrapToHoldJobMain = 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/inventorymove-job-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
} }
@ -166,4 +166,4 @@ export const closeInventorymoveMain = async (id) => {
// 执行库存转移任务 // 执行库存转移任务
export const executeInventorymoveMain = async (data) => { export const executeInventorymoveMain = async (data) => {
return await request.put({ url: `/wms/inventorymove-job-main/execute`, data}) return await request.put({ url: `/wms/inventorymove-job-main/execute`, data})
} }

10
src/api/wms/inventorymoveRecordMain/index.ts

@ -69,7 +69,7 @@ export const exportOkToHoldRecordMain = 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/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
@ -81,7 +81,7 @@ export const exportHoldToOkRecordMain = 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/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
@ -93,7 +93,7 @@ export const exportHoldToScrapRecordMain = 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/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
@ -105,7 +105,7 @@ export const exportOkToScrapRecordMain = 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/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
@ -117,7 +117,7 @@ export const exportScrapToHoldRecordMain = 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/inventorymove-record-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }

14
src/api/wms/inventorymoveRequestMain/index.ts

@ -62,7 +62,7 @@ export const exportInventorymoveRequestMain = 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/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -74,7 +74,7 @@ export const exportOkToHoldRequestMain = 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/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -86,7 +86,7 @@ export const exportHoldToOkRequestMain = 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/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -98,7 +98,7 @@ export const exportHoldToScrapRequestMain = 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/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -110,7 +110,7 @@ export const exportOkToScrapRequestMain = 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/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -122,7 +122,7 @@ export const exportScrapToHoldRequestMain = 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/inventorymove-request-main/export-excel-senior', data }) return await request.downloadPost({ url: '/wms/inventorymove-request-main/export-excel-senior', data })
} else { } else {
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params })
} }
@ -166,4 +166,4 @@ export const agree = (id) => {
// 处理 // 处理
export const handle = (id) => { export const handle = (id) => {
return request.put({ url: '/wms/inventorymove-request-main/handle?id=' + id }) return request.put({ url: '/wms/inventorymove-request-main/handle?id=' + id })
} }

Loading…
Cancel
Save