Subscription show: orders table links BAS/BMPA run_id to batch replay
This commit is contained in:
@@ -466,6 +466,8 @@
|
||||
<th>同步状态</th>
|
||||
<th>同步时间</th>
|
||||
<th>失败原因</th>
|
||||
<th>BAS run_id</th>
|
||||
<th>BMPA run_id</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -486,6 +488,23 @@
|
||||
<td>{{ $order->id }}</td>
|
||||
@php
|
||||
$orderShowUrl = \App\Support\BackUrl::withBack('/admin/platform-orders/' . $order->id, $selfWithoutBack);
|
||||
|
||||
$basRunId = (string) (data_get($order->meta, 'batch_activation.run_id') ?? '');
|
||||
$bmpaRunId = (string) (data_get($order->meta, 'batch_mark_paid_and_activate.run_id') ?? '');
|
||||
|
||||
$basBatchUrl = $basRunId !== ''
|
||||
? \App\Support\BackUrl::withBack('/admin/platform-batches/show?' . \Illuminate\Support\Arr::query([
|
||||
'type' => 'bas',
|
||||
'run_id' => $basRunId,
|
||||
]), $selfWithoutBack)
|
||||
: '';
|
||||
|
||||
$bmpaBatchUrl = $bmpaRunId !== ''
|
||||
? \App\Support\BackUrl::withBack('/admin/platform-batches/show?' . \Illuminate\Support\Arr::query([
|
||||
'type' => 'bmpa',
|
||||
'run_id' => $bmpaRunId,
|
||||
]), $selfWithoutBack)
|
||||
: '';
|
||||
@endphp
|
||||
<td><a href="{!! $orderShowUrl !!}">{{ $order->order_no }}</a></td>
|
||||
<td>{{ $order->status }}</td>
|
||||
@@ -504,13 +523,27 @@
|
||||
<span class="muted">-</span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($basBatchUrl !== '')
|
||||
<a class="link" href="{!! $basBatchUrl !!}">{{ $basRunId }}</a>
|
||||
@else
|
||||
<span class="muted">-</span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($bmpaBatchUrl !== '')
|
||||
<a class="link" href="{!! $bmpaBatchUrl !!}">{{ $bmpaRunId }}</a>
|
||||
@else
|
||||
<span class="muted">-</span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<a href="{!! $orderShowUrl !!}">详情</a>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="11" class="muted table-empty">暂无关联平台订单。</td>
|
||||
<td colspan="13" class="muted table-empty">暂无关联平台订单。</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user