审计追溯:手动修正退款状态记录快照并在详情展示

This commit is contained in:
萝卜
2026-03-11 05:42:24 +00:00
parent 8cb0368a10
commit 09981f9933
3 changed files with 103 additions and 0 deletions

View File

@@ -432,16 +432,29 @@
<th style="width:120px;">范围</th>
<th style="width:200px;">时间</th>
<th style="width:100px;">管理员</th>
<th style="width:180px;">快照</th>
<th>备注</th>
</tr>
</thead>
<tbody>
@foreach($auditItems as $item)
@php
$snap = (array) (data_get($item, 'snapshot', []) ?? []);
$snapPaid = data_get($snap, 'paid_amount');
$snapRefund = data_get($snap, 'refund_total');
@endphp
<tr>
<td>{{ $auditActionLabels[data_get($item, 'action')] ?? (data_get($item, 'action') ?: '-') }}</td>
<td>{{ data_get($item, 'scope') ?: '-' }}</td>
<td>{{ data_get($item, 'at') ?: '-' }}</td>
<td>{{ data_get($item, 'admin_id') ?: '-' }}</td>
<td class="muted">
@if($snapPaid !== null || $snapRefund !== null)
paid=¥{{ number_format((float) ($snapPaid ?? 0), 2) }}refund=¥{{ number_format((float) ($snapRefund ?? 0), 2) }}
@else
-
@endif
</td>
<td class="muted">{{ data_get($item, 'note') ?: '' }}</td>
</tr>
@endforeach