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 {