fix(财务台账): 收窄账户汇总数据来源列 (#1196)

将账户资金汇总各页签共用的数据来源列收窄至 8rem,并让下拉框随列宽自适应。
This commit is contained in:
shanshi 2026-11-16 16:00:48 +08:00
parent 6dff7620b6
commit c43574a92a
2 changed files with 5 additions and 2 deletions

View File

@ -551,7 +551,8 @@
.ledger-bank-category-table tbody tr:hover { background:#fbf8ef; }
.ledger-bank-category-table tfoot td { border-top:1px solid var(--vip-border, #D8D2C7); border-bottom:0; background:#fcfaf5; font-weight:600; }
.ledger-bank-category-note { margin:.75rem 0 0; color:var(--vip-content-muted, #595959); font-size:.68rem; line-height:1.55; }
.ledger-flow-source-select { width:100%; min-width:10rem; height:2rem; padding:0 .45rem; border:1px solid var(--vip-border, #D8D2C7); border-radius:.35rem; background:#fff; color:var(--vip-content-ink, #171717); font:inherit; }
.ledger-table .ledger-flow-source-cell { width:8rem; min-width:8rem; max-width:8rem; padding-right:.35rem; padding-left:.35rem; }
.ledger-flow-source-select { width:100%; min-width:0; max-width:100%; height:2rem; padding:0 .35rem; border:1px solid var(--vip-border, #D8D2C7); border-radius:.35rem; background:#fff; color:var(--vip-content-ink, #171717); font:inherit; font-size:.68rem; }
.ledger-note { padding:.65rem .9rem; margin-bottom:.85rem; border:1px solid var(--vip-border, #D8D2C7); border-radius:.55rem; background:#fff; color:var(--vip-content-muted, #595959); font-size:.72rem; line-height:1.6; }
.ledger-note.is-warning { border-color:#E2C88E; background:#fff8eb; color:var(--vip-warning, #935F07); }
.ledger-table-wrap { overflow:auto; border:1px solid var(--vip-border, #D8D2C7); border-radius:.65rem; background:#fff; }
@ -1529,7 +1530,7 @@
<td>{{ $accountDisplayShort }}</td>
<td>{{ $row->bank_affiliation ?: '—' }}</td>
<td>{{ $row->company_name }}</td>
<td class="wrap">
<td class="ledger-flow-source-cell">
@if ($canEditAccounts && $row->account_short !== '')
<select class="ledger-flow-source-select" aria-label="{{ $accountDisplayShort }} - 数据来源" data-ledger-flow-summary-source data-source-account-short="{{ $row->account_short }}" data-previous-value="{{ $rowDataSource }}" data-value-url="{{ route('business.financial-ledger.flows.summary.source.update') }}">
<option value="" @selected($rowDataSource === '')>未填写</option>

View File

@ -162,6 +162,8 @@ class FinanceLedgerFlowSummarySpreadsheetTest extends FeatureTestCase
$this->assertTrue($sourceHeader < $openingHeader);
$this->assertStringContainsString('data-ledger-flow-summary-source', $flowsHtml);
$this->assertStringContainsString('class="ledger-flow-source-select"', $flowsHtml);
$this->assertStringContainsString('class="ledger-flow-source-cell"', $flowsHtml);
$this->assertStringContainsString('.ledger-table .ledger-flow-source-cell { width:8rem; min-width:8rem; max-width:8rem;', $html);
$this->assertStringContainsString('<option value="手动"', $flowsHtml);
$this->assertStringContainsString('<option value="银企直连"', $flowsHtml);