补齐批次详情页抽样复核回到最新护栏

This commit is contained in:
萝卜
2026-03-20 10:03:50 +08:00
parent 15b0ecf094
commit cb88f8fc7d
2 changed files with 103 additions and 0 deletions

View File

@@ -158,6 +158,21 @@
</div>
@else
<div class="muted">暂无可抽样订单(可能暂无成功单,或 last_result 尚未补齐)。</div>
@php
$spotAfterId = (int) request()->query('spot_after_id', 0);
@endphp
@if($spotAfterId > 0)
@php
$spotPickResetUrl = '/admin/platform-batches/show?' . \Illuminate\Support\Arr::query([
'type' => $type,
'run_id' => $runId,
]);
$spotPickResetUrl = \App\Support\BackUrl::withBack($spotPickResetUrl, $safeBackForLinks);
@endphp
<div class="mt-8">
<a class="link muted-xs" data-role="batch-spot-check-reset" href="{{ $spotPickResetUrl }}">回到最新</a>
</div>
@endif
@endif
</div>