From b451cb686e8e4681af2f04342f5bc6300315b5f8 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 22 Oct 2024 11:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=87=BA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/supplierinvoiceInvoiced/index.ts | 10 ++++++++-- .../supplierinvoiceInvoicedDiscrete/index.vue | 2 +- .../supplierinvoiceInvoicedSchedule/index.vue | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/api/wms/supplierinvoiceInvoiced/index.ts b/src/api/wms/supplierinvoiceInvoiced/index.ts index e81021568..2271cdf16 100644 --- a/src/api/wms/supplierinvoiceInvoiced/index.ts +++ b/src/api/wms/supplierinvoiceInvoiced/index.ts @@ -67,8 +67,14 @@ export const deleteSupplierinvoiceInvoiced = async (id: number) => { } // 导出待开票 Excel -export const exportSupplierinvoiceInvoiced = async (params) => { - return await request.download({ url: `/wms/supplierinvoice-invoiced/export-excel`, params }) +export const exportSupplierinvoiceInvoicedSchedule = async (params) => { + return await request.download({ url: `/wms/supplierinvoice-invoiced/export-excel-schedule`, params }) +} + + +// 导出待开票 Excel +export const exportSupplierinvoiceInvoicedDiscrete = async (params) => { + return await request.download({ url: `/wms/supplierinvoice-invoiced/export-excel-discrete`, params }) } // 下载用户导入模板 diff --git a/src/views/wms/supplierManage/supplierinvoiceInvoicedDiscrete/index.vue b/src/views/wms/supplierManage/supplierinvoiceInvoicedDiscrete/index.vue index 1bc66d34a..6796b9b69 100644 --- a/src/views/wms/supplierManage/supplierinvoiceInvoicedDiscrete/index.vue +++ b/src/views/wms/supplierManage/supplierinvoiceInvoicedDiscrete/index.vue @@ -273,7 +273,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoiced(tableObject.params) + const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoicedDiscrete(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { diff --git a/src/views/wms/supplierManage/supplierinvoiceInvoicedSchedule/index.vue b/src/views/wms/supplierManage/supplierinvoiceInvoicedSchedule/index.vue index a4f8c4576..caebb3108 100644 --- a/src/views/wms/supplierManage/supplierinvoiceInvoicedSchedule/index.vue +++ b/src/views/wms/supplierManage/supplierinvoiceInvoicedSchedule/index.vue @@ -273,7 +273,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoiced(tableObject.params) + const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoicedSchedule(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally {