fix(供应商货款预估): 冻结明细表头

供应商货款预估明细改为局部纵向滚动并固定表头。
Co-authored-by: 苏木 <594326199@qq.com>
Co-committed-by: 苏木 <594326199@qq.com>
This commit is contained in:
苏木 2026-11-27 15:16:36 +08:00 committed by sumu
parent e7a73008c7
commit dcd12eca7b
2 changed files with 7 additions and 0 deletions

View File

@ -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) {

View File

@ -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);