diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index ea55070..e6264db 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -665,6 +665,12 @@ @endif +
+ 已付无回执 + 对账不一致 + 可同步 + 续费缺订阅 +

平台订单总数

@@ -732,7 +738,7 @@
成功口径:存在 run_id 且无 error.message;失败口径:meta 失败标记
-
+

可同步订单

@include('admin.platform_orders._summary_metric_link', [ @@ -743,7 +749,7 @@
已支付 + 已生效 + 未同步(续费单需已绑定订阅)
-
+

续费缺订阅

@include('admin.platform_orders._summary_metric_link', [ @@ -903,7 +909,7 @@
提示:如果你是从其它页面(例如订阅详情/套餐页)通过 back 进入本页,建议优先用上方的「返回上一页」入口回到来源页,再继续操作。
-
+

对账差额

@php $delta = (float) ($summaryStats['reconciliation_delta'] ?? 0); @endphp
¥{{ number_format($delta, 2) }}
diff --git a/tests/Feature/AdminPlatformOrderSummaryCardsShouldHaveJumpLinksTest.php b/tests/Feature/AdminPlatformOrderSummaryCardsShouldHaveJumpLinksTest.php new file mode 100644 index 0000000..235dfa8 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryCardsShouldHaveJumpLinksTest.php @@ -0,0 +1,36 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_cards_should_have_jump_links(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-links"', $html); + $this->assertStringContainsString('href="#po-summary-card-paid-no-receipt"', $html); + $this->assertStringContainsString('href="#po-summary-card-reconcile-mismatch"', $html); + $this->assertStringContainsString('href="#po-summary-card-syncable"', $html); + $this->assertStringContainsString('href="#po-summary-card-renewal-missing-sub"', $html); + } +}