Переглянути джерело

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

chengc 1 тиждень тому
батько
коміт
26d77433e5

+ 5 - 9
lib/features/report/expense_apply_detail_report_page.dart

@@ -685,18 +685,18 @@ class _ExpenseApplyDetailReportPageState
                 TDTableCol(
                   title: l10n.get('expenseApplyNo'),
                   colKey: 'billNo',
-                  width: 130,
+                  width: 150,
                   ellipsis: true,
                 ),
                 TDTableCol(
                   title: l10n.get('date'),
                   colKey: 'billDate',
-                  width: 90,
+                  width: 95,
                 ),
                 TDTableCol(
                   title: l10n.get('estimatedAmount'),
                   colKey: 'amount',
-                  width: 90,
+                  width: 115,
                   align: TDTableColAlign.right,
                   cellBuilder: (context, rowIndex) {
                     final amount = double.parse(tableData[rowIndex]['amount'] as String);
@@ -713,22 +713,18 @@ class _ExpenseApplyDetailReportPageState
                 TDTableCol(
                   title: l10n.get('applyReason'),
                   colKey: 'reason',
-                  width: 120,
+                  width: 140,
                   ellipsis: true,
                 ),
                 TDTableCol(
                   title: l10n.get('transferStatus'),
                   colKey: 'isTransferred',
-                  width: 70,
+                  width: 85,
                   align: TDTableColAlign.center,
                   cellBuilder: (context, rowIndex) {
                     final transferred = tableData[rowIndex]['isTransferred'] as String;
                     return transferred == '1'
                         ? Container(
-                            padding: const EdgeInsets.symmetric(
-                              horizontal: 6,
-                              vertical: 2,
-                            ),
                             decoration: BoxDecoration(
                               color: colors.success.withValues(alpha: 0.1),
                               borderRadius: BorderRadius.circular(10),

+ 6 - 10
lib/features/report/expense_detail_report_page.dart

@@ -743,18 +743,18 @@ class _ExpenseDetailReportPageState
                 TDTableCol(
                   title: l10n.get('expenseNo'),
                   colKey: 'billNo',
-                  width: 120,
+                  width: 140,
                   ellipsis: true,
                 ),
                 TDTableCol(
                   title: l10n.get('date'),
                   colKey: 'billDate',
-                  width: 85,
+                  width: 90,
                 ),
                 TDTableCol(
                   title: l10n.get('expenseAmount'),
                   colKey: 'amount',
-                  width: 85,
+                  width: 110,
                   align: TDTableColAlign.right,
                   cellBuilder: (context, rowIndex) {
                     final amount = double.parse(tableData[rowIndex]['amount'] as String);
@@ -771,7 +771,7 @@ class _ExpenseDetailReportPageState
                 TDTableCol(
                   title: l10n.get('approvedAmountLabel'),
                   colKey: 'approvedAmount',
-                  width: 85,
+                  width: 110,
                   align: TDTableColAlign.right,
                   cellBuilder: (context, rowIndex) {
                     final amount = double.parse(tableData[rowIndex]['approvedAmount'] as String);
@@ -788,22 +788,18 @@ class _ExpenseDetailReportPageState
                 TDTableCol(
                   title: l10n.get('expenseApplyReason'),
                   colKey: 'reason',
-                  width: 110,
+                  width: 130,
                   ellipsis: true,
                 ),
                 TDTableCol(
                   title: l10n.get('transferStatus'),
                   colKey: 'isTransferred',
-                  width: 70,
+                  width: 85,
                   align: TDTableColAlign.center,
                   cellBuilder: (context, rowIndex) {
                     final transferred = tableData[rowIndex]['isTransferred'] as String;
                     return transferred == '1'
                         ? Container(
-                            padding: const EdgeInsets.symmetric(
-                              horizontal: 6,
-                              vertical: 2,
-                            ),
                             decoration: BoxDecoration(
                               color: colors.success.withValues(alpha: 0.1),
                               borderRadius: BorderRadius.circular(10),