From 6bea8ba0426acd179373562be2c06b63eb0a332c Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Wed, 19 Jun 2024 14:57:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/inventorymoveJobMain/index.ts | 14 +++++++------- src/api/wms/inventorymoveRecordMain/index.ts | 10 +++++----- src/api/wms/inventorymoveRequestMain/index.ts | 14 +++++++------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/api/wms/inventorymoveJobMain/index.ts b/src/api/wms/inventorymoveJobMain/index.ts index 83eb4f4e5..724b20757 100644 --- a/src/api/wms/inventorymoveJobMain/index.ts +++ b/src/api/wms/inventorymoveJobMain/index.ts @@ -78,7 +78,7 @@ export const exportInventorymoveJobMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) } @@ -90,7 +90,7 @@ export const exportOkToHoldJobMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) } @@ -102,7 +102,7 @@ export const exportHoldToOkJobMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) } @@ -114,7 +114,7 @@ export const exportHoldToScrapJobMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) } @@ -126,7 +126,7 @@ export const exportOkToScrapJobMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) } @@ -138,7 +138,7 @@ export const exportScrapToHoldJobMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { 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) => { return await request.put({ url: `/wms/inventorymove-job-main/execute`, data}) -} \ No newline at end of file +} diff --git a/src/api/wms/inventorymoveRecordMain/index.ts b/src/api/wms/inventorymoveRecordMain/index.ts index 18bb292e3..59d1e8d38 100644 --- a/src/api/wms/inventorymoveRecordMain/index.ts +++ b/src/api/wms/inventorymoveRecordMain/index.ts @@ -69,7 +69,7 @@ export const exportOkToHoldRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) } @@ -81,7 +81,7 @@ export const exportHoldToOkRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) } @@ -93,7 +93,7 @@ export const exportHoldToScrapRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) } @@ -105,7 +105,7 @@ export const exportOkToScrapRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) } @@ -117,7 +117,7 @@ export const exportScrapToHoldRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) } diff --git a/src/api/wms/inventorymoveRequestMain/index.ts b/src/api/wms/inventorymoveRequestMain/index.ts index 55e3537bc..68784d189 100644 --- a/src/api/wms/inventorymoveRequestMain/index.ts +++ b/src/api/wms/inventorymoveRequestMain/index.ts @@ -62,7 +62,7 @@ export const exportInventorymoveRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) } @@ -74,7 +74,7 @@ export const exportOkToHoldRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) } @@ -86,7 +86,7 @@ export const exportHoldToOkRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) } @@ -98,7 +98,7 @@ export const exportHoldToScrapRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) } @@ -110,7 +110,7 @@ export const exportOkToScrapRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) } @@ -122,7 +122,7 @@ export const exportScrapToHoldRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch 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 { return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) } @@ -166,4 +166,4 @@ export const agree = (id) => { // 处理 export const handle = (id) => { return request.put({ url: '/wms/inventorymove-request-main/handle?id=' + id }) -} \ No newline at end of file +}