diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 7148e8c..bb07373 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -530,6 +530,12 @@ 'syncable_only' => '1', 'page' => null, ]); + + $runGoSuccessUrl = $buildQuickFilterUrl([ + 'batch_activation_run_id' => $batchActivationRunId, + 'sync_status' => 'synced', + 'page' => null, + ]); @endphp @php $runGoAllUrl = $buildQuickFilterUrl([ @@ -551,6 +557,10 @@ 本批次失败 + 本批次失败 + + 本批次成功 + 本批次未同步 本批次可同步重试 diff --git a/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest.php b/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest.php index a9a9d67..6c4bf87 100644 --- a/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest.php +++ b/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest.php @@ -29,6 +29,11 @@ class AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest extends T $res->assertSee('当前 BAS 批次筛选'); $res->assertSee('BAS_BADGE_0001'); $res->assertSee('清除 BAS 批次筛选'); + + // 快捷入口应包含“本批次成功”(sync_status=synced) + $res->assertSee('本批次成功'); + $res->assertSee('sync_status=synced', false); + $res->assertSee('/admin/platform-orders?batch_activation_run_id=', false); } }