Platform order show: link BAS/BMPA run_id to batch replay page

This commit is contained in:
萝卜
2026-03-18 06:52:45 +08:00
parent 4f795bc93d
commit 8f247b3efe
2 changed files with 118 additions and 0 deletions

View File

@@ -157,6 +157,46 @@
<tr><th>回执数 / 回执总额</th><td>{{ $receiptCount }} / ¥{{ number_format($receiptTotal, 2) }}</td></tr>
<tr><th>退款笔数 / 退款总额</th><td>{{ $refundCount }} / ¥{{ number_format($refundTotal, 2) }}</td></tr>
<tr><th>金额容差</th><td>¥{{ number_format($amountTol, 2) }}</td></tr>
@php
$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,
]), $orderShowSelf)
: '';
$bmpaBatchUrl = $bmpaRunId !== ''
? \App\Support\BackUrl::withBack('/admin/platform-batches/show?' . \Illuminate\Support\Arr::query([
'type' => 'bmpa',
'run_id' => $bmpaRunId,
]), $orderShowSelf)
: '';
@endphp
<tr>
<th>BAS 批次 run_id</th>
<td>
@if($basBatchUrl !== '')
<a class="link" href="{!! $basBatchUrl !!}">{{ $basRunId }}</a>
<span class="muted">(批次复盘)</span>
@else
-
@endif
</td>
</tr>
<tr>
<th>BMPA 批次 run_id</th>
<td>
@if($bmpaBatchUrl !== '')
<a class="link" href="{!! $bmpaBatchUrl !!}">{{ $bmpaRunId }}</a>
<span class="muted">(批次复盘)</span>
@else
-
@endif
</td>
</tr>
</tbody>
</table>