平台订单:BAS批次筛选badge文案对齐BMPA并补全

This commit is contained in:
萝卜
2026-03-17 15:43:59 +08:00
parent 592b1610f9
commit 382f34d9a3
3 changed files with 17 additions and 7 deletions

View File

@@ -522,16 +522,24 @@
'page' => null,
]);
@endphp
@php
$runGoAllUrl = $buildQuickFilterUrl([
'batch_activation_run_id' => $batchActivationRunId,
'page' => null,
]);
@endphp
<div class="card mb-20 governance-block" data-role="batch-activation-run-id-badge">
<div class="muted governance-block-title"><strong>当前批次筛选</strong></div>
<div class="muted governance-block-title"><strong>当前 BAS 批次筛选</strong></div>
<div class="muted governance-block-body">
<div>
当前 run_id<strong>{{ $batchActivationRunId }}</strong>
当前 BAS run_id<strong>{{ $batchActivationRunId }}</strong>
<span class="muted"></span>
<a class="btn btn-secondary btn-sm" href="{!! $safeFullUrlWithQuery(['batch_activation_run_id' => null, 'page' => null]) !!}">清除批次筛选</a>
<a class="btn btn-secondary btn-sm" href="{!! $safeFullUrlWithQuery(['batch_activation_run_id' => null, 'page' => null]) !!}">清除 BAS 批次筛选</a>
</div>
<div class="mt-6">
<span class="muted">快速查看:</span>
<a class="link" href="{!! $runGoAllUrl !!}">本批次全部</a>
<span class="muted"></span>
<a class="link" href="{!! $runGoFailedUrl !!}">本批次失败</a>
<span class="muted"></span>
<a class="link" href="{!! $runGoUnsyncedUrl !!}">本批次未同步</a>

View File

@@ -28,10 +28,12 @@ class AdminPlatformOrderIndexBatchActivationRunIdBadgeQuickLinksShouldRenderTest
->assertOk()
->getContent();
$this->assertStringContainsString('当前 run_id<strong>' . $runId . '</strong>', $html);
$this->assertStringContainsString('当前 BAS run_id<strong>' . $runId . '</strong>', $html);
// 本批次全部
$this->assertStringContainsString('batch_activation_run_id=' . $runId, $html);
// 本批次失败
$this->assertStringContainsString('batch_activation_run_id=' . $runId, $html);
$this->assertStringContainsString('sync_status=failed', $html);
// 本批次可同步重试unsynced + syncable_only=1

View File

@@ -26,9 +26,9 @@ class AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest extends T
$res = $this->get('/admin/platform-orders?batch_activation_run_id=BAS_BADGE_0001');
$res->assertOk();
$res->assertSee('当前批次筛选');
$res->assertSee('当前 BAS 批次筛选');
$res->assertSee('BAS_BADGE_0001');
$res->assertSee('清除批次筛选');
$res->assertSee('清除 BAS 批次筛选');
$res->assertSee('/admin/platform-orders?batch_activation_run_id=', false);
}
}