ソースを参照

fix #19407 优化报表页数据展示

chengc 1 週間 前
コミット
e6f513622f

+ 1 - 1
assets/i18n/en.json

@@ -83,7 +83,7 @@
     "statusWaitPay": "Pending Payment",
     "editApply": "Edit Pre-Application",
     "editExpense": "Edit Expense Report",
-    "statusTransferred": "Converted to Voucher",
+    "statusTransferred": "Transferred",
     "statusClosed": "Closed",
     "statusPendingReview": "Pending Review",
     "statusReviewing": "Under Review",

+ 3 - 3
assets/i18n/zh_CN.json

@@ -80,7 +80,7 @@
     "statusWaitPay": "待付款",
     "editApply": "修改报销申请",
     "editExpense": "修改报销",
-    "statusTransferred": "已转收支",
+    "statusTransferred": "已转收支",
     "statusClosed": "已结案",
     "statusPendingReview": "待审核",
     "statusReviewing": "审核中",
@@ -759,8 +759,8 @@
     "abnormalReturns": "异常退回",
     "statExpenseTotal": "报销总金额",
     "statExpenseTotalCount": "总笔数",
-    "statTransferredToPmt": "已转收支笔数",
-    "statTransferredToPmtAmount": "已转收支金额",
+    "statTransferredToPmt": "已转收支笔数",
+    "statTransferredToPmtAmount": "已转收支金额",
     "approvedAmountLabel": "核准金额",
     "exportPlaceholder": "导出功能(占位)"
   },

+ 3 - 3
assets/i18n/zh_TW.json

@@ -83,7 +83,7 @@
     "statusWaitPay": "待付款",
     "editApply": "修改報銷申請",
     "editExpense": "修改報銷",
-    "statusTransferred": "已轉收支",
+    "statusTransferred": "已轉收支",
     "statusClosed": "已結案",
     "statusPendingReview": "待審核",
     "statusReviewing": "審核中",
@@ -759,8 +759,8 @@
     "abnormalReturns": "异常退回",
     "statExpenseTotal": "報銷總金額",
     "statExpenseTotalCount": "總筆數",
-    "statTransferredToPmt": "已轉收支筆數",
-    "statTransferredToPmtAmount": "已轉收支金額",
+    "statTransferredToPmt": "已轉收支筆數",
+    "statTransferredToPmtAmount": "已轉收支金額",
     "approvedAmountLabel": "核准金額",
     "exportPlaceholder": "導出功能(占位)"
   },

+ 3 - 3
lib/features/report/expense_apply_detail_report_page.dart

@@ -350,7 +350,7 @@ class _ExpenseApplyDetailReportPageState
                 child: _statCard(
                   l10n.get('statTransferredAmount'),
                   '¥${summary.transferredAmount.toStringAsFixed(2)}',
-                  colors.amountPrimary,
+                  colors.textPrimary,
                 ),
               ),
             ],
@@ -691,7 +691,7 @@ class _ExpenseApplyDetailReportPageState
                 TDTableCol(
                   title: l10n.get('date'),
                   colKey: 'billDate',
-                  width: 95,
+                  width: 105,
                 ),
                 TDTableCol(
                   title: l10n.get('estimatedAmount'),
@@ -719,7 +719,7 @@ class _ExpenseApplyDetailReportPageState
                 TDTableCol(
                   title: l10n.get('transferStatus'),
                   colKey: 'isTransferred',
-                  width: 85,
+                  width: 90,
                   align: TDTableColAlign.center,
                   cellBuilder: (context, rowIndex) {
                     final transferred = tableData[rowIndex]['isTransferred'] as String;

+ 4 - 4
lib/features/report/expense_detail_report_page.dart

@@ -288,7 +288,7 @@ class _ExpenseDetailReportPageState
                 child: _statCard(
                   l10n.get('statTransferredToPmtAmount'),
                   '¥${summary.transferredAmount.toStringAsFixed(2)}',
-                  colors.amountPrimary,
+                  colors.textPrimary,
                 ),
               ),
             ],
@@ -300,7 +300,7 @@ class _ExpenseDetailReportPageState
                 child: _statCard(
                   l10n.get('statApprovedAmount'),
                   '¥${summary.approvedAmount.toStringAsFixed(2)}',
-                  colors.amountPrimary,
+                  colors.success,
                 ),
               ),
             ],
@@ -749,7 +749,7 @@ class _ExpenseDetailReportPageState
                 TDTableCol(
                   title: l10n.get('date'),
                   colKey: 'billDate',
-                  width: 90,
+                  width: 100,
                 ),
                 TDTableCol(
                   title: l10n.get('expenseAmount'),
@@ -794,7 +794,7 @@ class _ExpenseDetailReportPageState
                 TDTableCol(
                   title: l10n.get('transferStatus'),
                   colKey: 'isTransferred',
-                  width: 85,
+                  width: 90,
                   align: TDTableColAlign.center,
                   cellBuilder: (context, rowIndex) {
                     final transferred = tableData[rowIndex]['isTransferred'] as String;