From fcd54a8080a24b1c8764fb7632ea24cfbab6e1f9 Mon Sep 17 00:00:00 2001 From: chenxi Date: Sun, 25 Oct 2026 16:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=88=90=E6=9C=AC=EF=BC=9A?= =?UTF-8?q?=E7=B2=BE=E7=AE=80=E6=88=90=E6=9C=AC=E6=8C=87=E6=A0=87=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除商品成本页面四个指标卡,保留成本合计、待核验与仓库异常指标,其余逻辑不变。 --- .../pages/financial-operations/product-costs.blade.php | 4 ---- tests/Feature/Business/ProductCostPageLayoutTest.php | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/views/business/pages/financial-operations/product-costs.blade.php b/resources/views/business/pages/financial-operations/product-costs.blade.php index 7dd2efa4..9c7821fa 100644 --- a/resources/views/business/pages/financial-operations/product-costs.blade.php +++ b/resources/views/business/pages/financial-operations/product-costs.blade.php @@ -19,13 +19,9 @@ : $formatted; }; $metricCards = [ - ['label' => '明细行数', 'value' => number_format((int) ($summary['rows'] ?? 0)), 'unit' => '行'], - ['label' => '已计价商品数量', 'value' => $qty($summary['quantity_total'] ?? null), 'unit' => '件'], ['label' => '商品成本合计', 'value' => number_format((float) ($summary['cost_total'] ?? 0) / 10000, 2), 'unit' => '万'], ['label' => '待核验成本', 'value' => number_format((int) ($summary['pending_cost_rows'] ?? 0)), 'unit' => '行', 'tone' => 'warn'], ['label' => '待核验商品数量', 'value' => $qty($summary['pending_cost_quantity'] ?? null), 'unit' => '件', 'tone' => 'warn'], - ['label' => '线上代发价兜底', 'value' => number_format((int) ($summary['fallback_price_rows'] ?? 0)), 'unit' => '行'], - ['label' => '商品资料成本兜底', 'value' => number_format((int) ($summary['catalog_price_rows'] ?? 0)), 'unit' => '行'], ['label' => '未匹配仓库简称', 'value' => number_format((int) ($summary['missing_warehouse_rows'] ?? 0)), 'unit' => '行', 'tone' => 'warn'], ]; $tableColumns = [ diff --git a/tests/Feature/Business/ProductCostPageLayoutTest.php b/tests/Feature/Business/ProductCostPageLayoutTest.php index 4ecc6f47..11b424db 100644 --- a/tests/Feature/Business/ProductCostPageLayoutTest.php +++ b/tests/Feature/Business/ProductCostPageLayoutTest.php @@ -54,6 +54,14 @@ class ProductCostPageLayoutTest extends TestCase $this->assertStringContainsString('共享镜像', $html); $this->assertStringContainsString('成本指标', $html); $this->assertStringContainsString('口径说明', $html); + $this->assertStringContainsString('商品成本合计', $html); + $this->assertStringContainsString('待核验成本', $html); + $this->assertStringContainsString('待核验商品数量', $html); + $this->assertStringContainsString('未匹配仓库简称', $html); + $this->assertStringNotContainsString('明细行数', $html); + $this->assertStringNotContainsString('已计价商品数量', $html); + $this->assertStringNotContainsString('线上代发价兜底', $html); + $this->assertStringNotContainsString('商品资料成本兜底', $html); $this->assertStringContainsString('class="product-cost-filter-form"', $html); $this->assertStringContainsString('搜索当前页数据', $html); $this->assertStringContainsString('列设置', $html);