From 9ba945b1ea5dbee89c22c79b9adab918e9bc4e21 Mon Sep 17 00:00:00 2001 From: chenxi Date: Thu, 29 Oct 2026 17:56:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E9=BD=90=E4=BA=BA=E5=B7=A5?= =?UTF-8?q?=E8=B4=B9=E7=94=A8=E5=88=86=E7=BB=84=E8=A1=A8=E5=A4=B4=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/financial-operations/labor-expenses.blade.php | 5 +++++ tests/Feature/Business/LaborExpensePageAccessTest.php | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/resources/views/business/pages/financial-operations/labor-expenses.blade.php b/resources/views/business/pages/financial-operations/labor-expenses.blade.php index e094cd81..7344bc87 100644 --- a/resources/views/business/pages/financial-operations/labor-expenses.blade.php +++ b/resources/views/business/pages/financial-operations/labor-expenses.blade.php @@ -221,22 +221,27 @@ } .labor-expense-table thead tr:first-child th[data-labor-group="base"] { + background: var(--labor-group-base); box-shadow: inset 0 3px 0 #548235; } .labor-expense-table thead tr:first-child th[data-labor-group="original"] { + background: var(--labor-group-original); box-shadow: inset 0 3px 0 #7f7f7f; } .labor-expense-table thead tr:first-child th[data-labor-group="fund"] { + background: var(--labor-group-fund); box-shadow: inset 0 3px 0 #70ad47; } .labor-expense-table thead tr:first-child th[data-labor-group="salary_parttime"] { + background: var(--labor-group-salary-parttime); box-shadow: inset 0 3px 0 #ed7d31; } .labor-expense-table thead tr:first-child th[data-labor-group="settlement"] { + background: var(--labor-group-settlement); box-shadow: inset 0 3px 0 #bf9000; } diff --git a/tests/Feature/Business/LaborExpensePageAccessTest.php b/tests/Feature/Business/LaborExpensePageAccessTest.php index a46463b4..b632e0f6 100644 --- a/tests/Feature/Business/LaborExpensePageAccessTest.php +++ b/tests/Feature/Business/LaborExpensePageAccessTest.php @@ -149,6 +149,14 @@ class LaborExpensePageAccessTest extends FeatureTestCase 'salary_parttime' => 'salary-parttime', 'settlement' => 'settlement', ] as $group => $variable) { + $this->assertMatchesRegularExpression( + '/\.labor-expense-table thead tr:first-child th\[data-labor-group="' . + $group . + '"\]\s*\{\s*background:\s*var\(--labor-group-' . + $variable . + '\);/s', + $html + ); $this->assertMatchesRegularExpression( '/\.labor-expense-table thead tr:last-child th\[data-labor-group="' . $group .