Kaynağa Gözat

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

chengc 1 hafta önce
ebeveyn
işleme
3811a3bc24

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

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

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

@@ -743,18 +743,18 @@ class _ExpenseDetailReportPageState
                 TDTableCol(
                   title: l10n.get('expenseNo'),
                   colKey: 'billNo',
-                  width: 140,
+                  width: 180,
                   ellipsis: true,
                 ),
                 TDTableCol(
                   title: l10n.get('date'),
                   colKey: 'billDate',
-                  width: 100,
+                  width: 150,
                 ),
                 TDTableCol(
                   title: l10n.get('expenseAmount'),
                   colKey: 'amount',
-                  width: 110,
+                  width: 180,
                   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: 110,
+                  width: 180,
                   align: TDTableColAlign.right,
                   cellBuilder: (context, rowIndex) {
                     final amount = double.parse(tableData[rowIndex]['approvedAmount'] as String);
@@ -788,18 +788,19 @@ class _ExpenseDetailReportPageState
                 TDTableCol(
                   title: l10n.get('expenseApplyReason'),
                   colKey: 'reason',
-                  width: 130,
+                  width: 200,
                   ellipsis: true,
                 ),
                 TDTableCol(
                   title: l10n.get('transferStatus'),
                   colKey: 'isTransferred',
-                  width: 90,
+                  width: 150,
                   align: TDTableColAlign.center,
                   cellBuilder: (context, rowIndex) {
                     final transferred = tableData[rowIndex]['isTransferred'] as String;
                     return transferred == '1'
                         ? Container(
+                            padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 1),
                             decoration: BoxDecoration(
                               color: colors.success.withValues(alpha: 0.1),
                               borderRadius: BorderRadius.circular(10),