diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index fee7764..043bf8a 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -165,12 +165,17 @@

有回执订单 / 回执总额

-
{{ $summaryStats['receipt_orders'] ?? 0 }} / ¥{{ number_format((float) ($summaryStats['total_receipt_amount'] ?? 0), 2) }}
+
+ {{ $summaryStats['receipt_orders'] ?? 0 }} + / ¥{{ number_format((float) ($summaryStats['total_receipt_amount'] ?? 0), 2) }} +
有回执口径:payment_summary.total_amount 存在或 payment_receipts 有记录

无回执订单

-
{{ $summaryStats['no_receipt_orders'] ?? 0 }}
+
+ {{ $summaryStats['no_receipt_orders'] ?? 0 }} +
无 payment_summary 且无 payment_receipts
diff --git a/tests/Feature/AdminPlatformOrderReceiptSummaryCardLinksTest.php b/tests/Feature/AdminPlatformOrderReceiptSummaryCardLinksTest.php new file mode 100644 index 0000000..e49cd86 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderReceiptSummaryCardLinksTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_shows_receipt_summary_card_links(): void + { + $this->loginAsPlatformAdmin(); + + $this->get('/admin/platform-orders') + ->assertOk() + ->assertSee('有回执订单 / 回执总额') + ->assertSee('无回执订单') + ->assertSee('receipt_status=has') + ->assertSee('receipt_status=none'); + } +}