From 7610d56a9bde6418dd27c605bd14dd30bff3063d Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sun, 18 Aug 2024 14:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E7=AD=9B=E9=80=89=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/supplierinvoiceRecordMain/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/api/wms/supplierinvoiceRecordMain/index.ts b/src/api/wms/supplierinvoiceRecordMain/index.ts index dfdb880ec..207089eb7 100644 --- a/src/api/wms/supplierinvoiceRecordMain/index.ts +++ b/src/api/wms/supplierinvoiceRecordMain/index.ts @@ -53,8 +53,14 @@ export const deleteSupplierinvoiceRecordMain = async (id: number) => { } // 导出供应商发票记录主 Excel -export const exportSupplierinvoiceRecordMain = async (data) => { - return await request.downloadPost({ url: `/wms/supplierinvoice-record-main/export-excel`, data }) +export const exportSupplierinvoiceRecordMain = async (params) => { + console.log(params) + if (params.isSearch) { + const data = { ...params } + return await request.downloadPost({ url: `/wms/supplierinvoice-record-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/supplierinvoice-record-main/export-excel`, params }) + } } // 下载用户导入模板