From 920fb69903f8bdbb7e383de688c50a1d77c39e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Fri, 13 Mar 2026 15:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../models/parking_fee_current_month_receivable.py | 12 +++--------- .../models/parking_fee_current_month_report.py | 12 +++--------- yuthon_report/models/parking_fee_yearly_report.py | 12 +++--------- 3 files changed, 9 insertions(+), 27 deletions(-) diff --git a/yuthon_report/models/parking_fee_current_month_receivable.py b/yuthon_report/models/parking_fee_current_month_receivable.py index 01c0a0bd4..a469a773f 100644 --- a/yuthon_report/models/parking_fee_current_month_receivable.py +++ b/yuthon_report/models/parking_fee_current_month_receivable.py @@ -98,14 +98,8 @@ class ParkingFeeCurrentMonthReceivable(models.Model): return { "rows": rows, - "summary": { - "序号": False, - "合同编号": False, - "物业名称": False, - "承租方名称": "合计:", - "金额": round(total_amount, 2), - "所属公司": False, - "管理员": False, - } + "stats": [ + {"name": "合计", "amount": round(total_amount, 2)}, + ], } diff --git a/yuthon_report/models/parking_fee_current_month_report.py b/yuthon_report/models/parking_fee_current_month_report.py index 6fd037c54..74d43b4a2 100644 --- a/yuthon_report/models/parking_fee_current_month_report.py +++ b/yuthon_report/models/parking_fee_current_month_report.py @@ -104,14 +104,8 @@ class ParkingFeeCurrentMonthReport(models.Model): return { "rows": rows, - "summary": { - "序号": False, - "合同编号": False, - "物业名称": False, - "承租方名称": "合计:", - "金额": round(total_amount, 2), - "所属公司": False, - "管理员": False, - } + "stats": [ + {"name": "合计", "amount": round(total_amount, 2)}, + ], } diff --git a/yuthon_report/models/parking_fee_yearly_report.py b/yuthon_report/models/parking_fee_yearly_report.py index 7ffd83ae1..46fd3fee6 100644 --- a/yuthon_report/models/parking_fee_yearly_report.py +++ b/yuthon_report/models/parking_fee_yearly_report.py @@ -109,14 +109,8 @@ class ParkingFeeYearlyReport(models.Model): return { "rows": rows, - "summary": { - "序号": False, - "合同编号": False, - "物业名称": False, - "承租方名称": "合计:", - "金额": round(total_amount, 2), - "所属公司": False, - "管理员": False, - } + "stats": [ + {"name": "合计", "amount": round(total_amount, 2)}, + ], }