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