From db3e9b03a393aee943506d5f3b2b19f2b6fb4740 Mon Sep 17 00:00:00 2001 From: chenfang Date: Fri, 2 Feb 2024 14:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=BF=90=E7=BB=93=E7=AE=97=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E6=9D=A1=E4=BB=B6=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/customerreceiptRecordMain/index.ts | 7 ++++++- src/api/wms/customerreceiptRequestMain/index.ts | 7 ++++++- src/api/wms/customerreturnRecordMain/index.ts | 7 ++++++- src/api/wms/customersettleRecordMain/index.ts | 8 +++++++- src/api/wms/customersettleRequestMain/index.ts | 8 +++++++- src/api/wms/deliverPlanMain/index.ts | 8 +++++++- src/api/wms/deliverRecordMain/index.ts | 8 +++++++- src/api/wms/deliverRequestMain/index.ts | 8 +++++++- src/api/wms/inventorychangeRecordMain/index.ts | 8 +++++++- src/api/wms/inventorychangeRequestMain/index.ts | 10 ++++++++-- 10 files changed, 68 insertions(+), 11 deletions(-) diff --git a/src/api/wms/customerreceiptRecordMain/index.ts b/src/api/wms/customerreceiptRecordMain/index.ts index f759818d1..77dbc2637 100644 --- a/src/api/wms/customerreceiptRecordMain/index.ts +++ b/src/api/wms/customerreceiptRecordMain/index.ts @@ -65,7 +65,12 @@ export const deleteCustomerreceiptRecordMain = async (id: number) => { // 导出客户收货记录主 Excel export const exportCustomerreceiptRecordMain = async (params) => { - return await request.download({ url: `/wms/customerreceipt-record-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/customerreceipt-record-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customerreceipt-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/customerreceiptRequestMain/index.ts b/src/api/wms/customerreceiptRequestMain/index.ts index 0704cd06d..bc61e21be 100644 --- a/src/api/wms/customerreceiptRequestMain/index.ts +++ b/src/api/wms/customerreceiptRequestMain/index.ts @@ -64,7 +64,12 @@ export const deleteCustomerreceiptRequestMain = async (id: number) => { // 导出客户收货申请主 Excel export const exportCustomerreceiptRequestMain = async (params) => { - return await request.download({ url: `/wms/customerreceipt-request-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/customerreceipt-request-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customerreceipt-request-main/export-excel`, params }) + } } // 关闭 diff --git a/src/api/wms/customerreturnRecordMain/index.ts b/src/api/wms/customerreturnRecordMain/index.ts index d714111e9..233d37ab7 100644 --- a/src/api/wms/customerreturnRecordMain/index.ts +++ b/src/api/wms/customerreturnRecordMain/index.ts @@ -67,7 +67,12 @@ export const deleteCustomerreturnRecordMain = async (id: number) => { // 导出客户退货记录主 Excel export const exportCustomerreturnRecordMain = async (params) => { - return await request.download({ url: `/wms/customerreturn-record-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/customerreturn-record-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customerreturn-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/customersettleRecordMain/index.ts b/src/api/wms/customersettleRecordMain/index.ts index 34fcd2efe..2e03ae027 100644 --- a/src/api/wms/customersettleRecordMain/index.ts +++ b/src/api/wms/customersettleRecordMain/index.ts @@ -58,7 +58,13 @@ export const deleteCustomersettleRecordMain = async (id: number) => { // 导出客户结算记录主 Excel export const exportCustomersettleRecordMain = async (params) => { - return await request.download({ url: `/wms/customersettle-record-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/customersettle-record-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/customersettle-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/customersettleRequestMain/index.ts b/src/api/wms/customersettleRequestMain/index.ts index 5b9a042e4..06d9f50ee 100644 --- a/src/api/wms/customersettleRequestMain/index.ts +++ b/src/api/wms/customersettleRequestMain/index.ts @@ -57,7 +57,13 @@ export const deleteCustomersettleRequestMain = async (id: number) => { // 导出客户结算申请主 Excel export const exportCustomersettleRequestMain = async (params) => { - return await request.download({ url: `/wms/customersettle-request-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/customersettle-request-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/customersettle-request-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/deliverPlanMain/index.ts b/src/api/wms/deliverPlanMain/index.ts index ea2a7993f..46277041e 100644 --- a/src/api/wms/deliverPlanMain/index.ts +++ b/src/api/wms/deliverPlanMain/index.ts @@ -49,7 +49,13 @@ export const deleteDeliverPlanMain = async (id: number) => { // 导出发货计划主 Excel export const exportDeliverPlanMain = async (params) => { - return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/deliverRecordMain/index.ts b/src/api/wms/deliverRecordMain/index.ts index 52c36d07d..4ab528802 100644 --- a/src/api/wms/deliverRecordMain/index.ts +++ b/src/api/wms/deliverRecordMain/index.ts @@ -67,7 +67,13 @@ export const deleteDeliverRecordMain = async (id: number) => { // 导出发货记录主 Excel export const exportDeliverRecordMain = async (params) => { - return await request.download({ url: `/wms/deliver-record-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/deliver-record-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/deliver-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/deliverRequestMain/index.ts b/src/api/wms/deliverRequestMain/index.ts index 47ae568e6..350a1f20b 100644 --- a/src/api/wms/deliverRequestMain/index.ts +++ b/src/api/wms/deliverRequestMain/index.ts @@ -65,7 +65,13 @@ export const deleteDeliverRequestMain = async (id: number) => { // 导出发货申请主 Excel export const exportDeliverRequestMain = async (params) => { - return await request.download({ url: `/wms/deliver-request-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/deliver-request-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/deliver-request-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/inventorychangeRecordMain/index.ts b/src/api/wms/inventorychangeRecordMain/index.ts index 407132f6c..afdc21151 100644 --- a/src/api/wms/inventorychangeRecordMain/index.ts +++ b/src/api/wms/inventorychangeRecordMain/index.ts @@ -53,7 +53,13 @@ export const deleteInventorychangeRecordMain = async (id: number) => { // 导出库存修改记录主 Excel export const exportInventorychangeRecordMain = async (params) => { - return await request.download({ url: `/wms/inventorychange-record-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/inventorychange-record-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/inventorychange-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/inventorychangeRequestMain/index.ts b/src/api/wms/inventorychangeRequestMain/index.ts index a04620173..0bfea72fc 100644 --- a/src/api/wms/inventorychangeRequestMain/index.ts +++ b/src/api/wms/inventorychangeRequestMain/index.ts @@ -52,8 +52,14 @@ export const deleteInventorychangeRequestMain = async (id: number) => { // 导出库存修改申请主 Excel export const exportInventorychangeRequestMain = async (params) => { - return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params }) -} + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/inventorychange-request-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params }) + } + } // 下载用户导入模板 export const importTemplate = () => {