fix: 统一人工费用分组表头配色 (#766)

This commit is contained in:
chenxi 2026-10-29 17:48:56 +08:00
parent 1e177042d3
commit 58eb62b7be
2 changed files with 36 additions and 0 deletions

View File

@ -249,6 +249,26 @@
z-index: 4;
}
.labor-expense-table thead tr:last-child th[data-labor-group="base"] {
background: var(--labor-group-base);
}
.labor-expense-table thead tr:last-child th[data-labor-group="original"] {
background: var(--labor-group-original);
}
.labor-expense-table thead tr:last-child th[data-labor-group="fund"] {
background: var(--labor-group-fund);
}
.labor-expense-table thead tr:last-child th[data-labor-group="salary_parttime"] {
background: var(--labor-group-salary-parttime);
}
.labor-expense-table thead tr:last-child th[data-labor-group="settlement"] {
background: var(--labor-group-settlement);
}
.labor-expense-table thead th[data-labor-column="A"],
.labor-expense-table tbody td[data-labor-column="A"] {
min-width: 4rem;

View File

@ -142,6 +142,22 @@ class LaborExpensePageAccessTest extends FeatureTestCase
"const fixedStartColumns = ['A', 'B', 'C', 'D', 'E'];",
$html
);
foreach ([
'base' => 'base',
'original' => 'original',
'fund' => 'fund',
'salary_parttime' => 'salary-parttime',
'settlement' => 'settlement',
] as $group => $variable) {
$this->assertMatchesRegularExpression(
'/\.labor-expense-table thead tr:last-child th\[data-labor-group="' .
$group .
'"\]\s*\{\s*background:\s*var\(--labor-group-' .
$variable .
'\);/s',
$html
);
}
foreach ([
'B' => 'base',
'J' => 'original',