From 82981885513e4c62fb449cbad04d8ca92036f5dd Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Mon, 19 Jan 2026 13:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cash/financialAccount.js | 9 +++++++++ src/views/moneyManage/financialAccount/cashFlow.vue | 8 ++++---- .../moneyManage/financialAccount/performanceAttribution.vue | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/api/cash/financialAccount.js b/src/api/cash/financialAccount.js index d6db0c3..876797e 100644 --- a/src/api/cash/financialAccount.js +++ b/src/api/cash/financialAccount.js @@ -35,3 +35,12 @@ export const exportPerformance = (data) => { data }) } + +// 导出资金流水 +export const exportFunds = (data) => { + return http({ + method: 'POST', + url: '/export/exportFunds', + data + }) +} diff --git a/src/views/moneyManage/financialAccount/cashFlow.vue b/src/views/moneyManage/financialAccount/cashFlow.vue index 64a10a1..8c7caeb 100644 --- a/src/views/moneyManage/financialAccount/cashFlow.vue +++ b/src/views/moneyManage/financialAccount/cashFlow.vue @@ -5,7 +5,7 @@ import { ElMessage, ElMessageBox } from 'element-plus' import request from '@/util/http.js' import dayjs from 'dayjs' import { useI18n } from 'vue-i18n' -import { Moneyfunds, refundOnline } from '@/api/cash/financialAccount.js' +import { Moneyfunds, refundOnline, exportFunds } from '@/api/cash/financialAccount.js' import { useAdminStore } from '@/store/index.js' import { storeToRefs } from 'pinia' import _ from 'lodash'; @@ -240,7 +240,7 @@ const handleExport = async () => { } // TODO: 确认导出接口 URL - const res = await request({ url: '/export/exportCash', data: params }) + const res = await exportFunds( params ) if (res.code == 200) { console.log('导出参数', params) @@ -265,7 +265,7 @@ const getExportList = async () => { try { const result = await request({ url: '/export/export' }) if (result.code === 200) { - const filteredData = result.data.filter(item => item.type == 13); + const filteredData = result.data.filter(item => item.type == 15); exportList.value = filteredData || [] } else { ElMessage.error(result.msg || t('elmessage.getExportListError')) @@ -458,7 +458,7 @@ onMounted(async () => {