Platform batch show: add spot-check next link
This commit is contained in:
@@ -129,6 +129,17 @@
|
||||
<button type="button" class="btn btn-secondary btn-xs" data-action="copy-text" data-role="copy-spot-check-order-id" data-copy-label="订单ID" data-copy-text="{{ $spotCheck['order_id'] }}">复制订单ID</button>
|
||||
@endif
|
||||
<span class="muted muted-xs">(从本批次成功集合抽一单,用于 spot-check)</span>
|
||||
@if(($spotCheck['order_id'] ?? 0) > 0)
|
||||
@php
|
||||
$spotPickNextUrl = '/admin/platform-batches/show?' . \Illuminate\Support\Arr::query([
|
||||
'type' => $type,
|
||||
'run_id' => $runId,
|
||||
'spot_after_id' => (int) ($spotCheck['order_id'] ?? 0),
|
||||
]);
|
||||
$spotPickNextUrl = \App\Support\BackUrl::withBack($spotPickNextUrl, $safeBackForLinks);
|
||||
@endphp
|
||||
<a class="link muted-xs" data-role="batch-spot-check-next" href="{{ $spotPickNextUrl }}">换一单</a>
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
<div class="muted">暂无可抽样订单(可能暂无成功单,或 last_result 尚未补齐)。</div>
|
||||
|
||||
Reference in New Issue
Block a user