From fe3de250f501b1a16e21cfa63926414df3fa7190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 15:07:19 +0800 Subject: [PATCH] ui(platform-orders): add retry quick link in bmpa run_id badge --- resources/views/admin/platform_orders/index.blade.php | 9 +++++++++ ...formOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 1fb58c1..b9ec5dd 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -557,6 +557,13 @@ 'batch_bmpa_run_id' => $batchBmpaRunId, 'page' => null, ]); + + $bmpaGoProcessableUrl = $buildQuickFilterUrl([ + 'batch_bmpa_run_id' => $batchBmpaRunId, + 'status' => 'pending', + 'payment_status' => 'unpaid', + 'page' => null, + ]); @endphp
当前 BMPA 批次筛选
@@ -571,6 +578,8 @@ 本批次全部 本批次 BMPA 失败 + + 本批次可再次尝试(pending+unpaid)
diff --git a/tests/Feature/AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php b/tests/Feature/AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php index f41f2e8..9eeec96 100644 --- a/tests/Feature/AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php +++ b/tests/Feature/AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest.php @@ -34,5 +34,9 @@ class AdminPlatformOrderIndexBatchBmpaRunIdBadgeShouldRenderTest extends TestCas // 快捷入口:本批次失败(应带 batch_bmpa_run_id + bmpa_failed_only=1) $this->assertStringContainsString('batch_bmpa_run_id=' . $runId, $html); $this->assertStringContainsString('bmpa_failed_only=1', $html); + + // 快捷入口:本批次可再次尝试(pending+unpaid) + $this->assertStringContainsString('status=pending', $html); + $this->assertStringContainsString('payment_status=unpaid', $html); } }