From 7a5740c56b59cc6ea7b3c5796b435dcf23cfe2eb Mon Sep 17 00:00:00 2001 From: yaojian <1161995598@qq.com> Date: Mon, 2 Mar 2026 14:29:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=8F=AD=E8=B4=B9=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/stuwork/classfeelog.ts | 13 ++ src/views/stuwork/classfeelog/index.vue | 261 +++++++++++++++++++++++- 2 files changed, 264 insertions(+), 10 deletions(-) diff --git a/src/api/stuwork/classfeelog.ts b/src/api/stuwork/classfeelog.ts index 9984064..07aafd0 100644 --- a/src/api/stuwork/classfeelog.ts +++ b/src/api/stuwork/classfeelog.ts @@ -73,3 +73,16 @@ export const exportExcel = (query?: any) => { }); }; +/** + * 班费使用汇总 + * @param schoolYear 学年 + * @param schoolTerm 学期 + */ +export const getSummary = (schoolYear: string, schoolTerm: string) => { + return request({ + url: '/stuwork/classfeelog/summary', + method: 'get', + params: { schoolYear, schoolTerm } + }); +}; + diff --git a/src/views/stuwork/classfeelog/index.vue b/src/views/stuwork/classfeelog/index.vue index 296eb95..8d77bae 100644 --- a/src/views/stuwork/classfeelog/index.vue +++ b/src/views/stuwork/classfeelog/index.vue @@ -107,16 +107,23 @@ 班费记录列表
- 新增 - + 班费汇总 + + 导出 @@ -254,13 +261,133 @@ + + + + + + + + + + + + + + + + + + + 查询 + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ 班级总数: + {{ summaryData.length }} +
+
+ +
+ 总收入合计: + ¥{{ totalSummary.totalIncome.toFixed(2) }} +
+
+ +
+ 总支出合计: + ¥{{ totalSummary.totalExpense.toFixed(2) }} +
+
+ +
+ 总结余合计: + ¥{{ totalSummary.totalBalance.toFixed(2) }} +
+
+
+
+ + +