From dcd12eca7b962aa3fc75b10e505b5a97c3ad8336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E6=9C=A8?= <594326199@qq.com> Date: Fri, 27 Nov 2026 15:16:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BE=9B=E5=BA=94=E5=95=86=E8=B4=A7?= =?UTF-8?q?=E6=AC=BE=E9=A2=84=E4=BC=B0):=20=E5=86=BB=E7=BB=93=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E8=A1=A8=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 供应商货款预估明细改为局部纵向滚动并固定表头。 Co-authored-by: 苏木 <594326199@qq.com> Co-committed-by: 苏木 <594326199@qq.com> --- .../pages/negative-alerts/supplier-payable-forecast.blade.php | 3 +++ tests/Feature/Business/NegativeAlertPagesTest.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/resources/views/business/pages/negative-alerts/supplier-payable-forecast.blade.php b/resources/views/business/pages/negative-alerts/supplier-payable-forecast.blade.php index e7525f63..a8aa5d46 100644 --- a/resources/views/business/pages/negative-alerts/supplier-payable-forecast.blade.php +++ b/resources/views/business/pages/negative-alerts/supplier-payable-forecast.blade.php @@ -320,7 +320,9 @@ .supplier-payable-forecast .npf-table-shell { max-width: 100%; + max-height: min(62vh, 48rem); overflow: auto; + overscroll-behavior: contain; border: 1px solid var(--npf-border); border-radius: 9px; scrollbar-gutter: stable; @@ -378,6 +380,7 @@ .supplier-payable-forecast .npf-data-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } .supplier-payable-forecast .npf-filter { grid-template-columns: minmax(0, 1fr); } .supplier-payable-forecast .npf-filter-actions { grid-column: 1; justify-content: flex-start; } + .supplier-payable-forecast .npf-table-shell { max-height: 58vh; } } @media (prefers-reduced-motion: reduce) { diff --git a/tests/Feature/Business/NegativeAlertPagesTest.php b/tests/Feature/Business/NegativeAlertPagesTest.php index a88e0c55..5da7c89a 100644 --- a/tests/Feature/Business/NegativeAlertPagesTest.php +++ b/tests/Feature/Business/NegativeAlertPagesTest.php @@ -435,6 +435,10 @@ class NegativeAlertPagesTest extends FeatureTestCase $this->assertStringContainsString(route('business.supplier-payable-forecast.goods.export'), $html); $this->assertStringContainsString('导出当前筛选', $html); $this->assertStringContainsString('CaiWuDatePicker.setup(filterForm)', $html); + $this->assertStringContainsString('max-height: min(62vh, 48rem)', $html); + $this->assertStringContainsString('overscroll-behavior: contain', $html); + $this->assertStringContainsString('.supplier-payable-forecast .npf-table th', $html); + $this->assertStringContainsString('position: sticky', $html); $this->assertStringNotContainsString('name="goods_date_from" min=', $html); $this->assertStringNotContainsString('name="goods_date_to" min=', $html);