feat(platform-orders): 列表增加行级回执总额与对账差额列

This commit is contained in:
萝卜
2026-03-10 21:34:46 +00:00
parent ea633c9bb6
commit cfbd9a1693
2 changed files with 47 additions and 0 deletions

View File

@@ -340,6 +340,8 @@
<th>失败原因</th>
<th>最近批量同步</th>
<th>最近批量生效</th>
<th>回执总额</th>
<th>对账差额</th>
<th>回执数</th>
<th>退款数</th>
<th>退款总额</th>
@@ -463,6 +465,24 @@
<span class="muted">-</span>
@endif
</td>
<td>
@php
$receiptTotal = (float) ($order->receipt_total ?? 0);
@endphp
@if($receiptTotal > 0)
<span class="muted">¥{{ number_format($receiptTotal, 2) }}</span>
@else
<span class="muted">-</span>
@endif
</td>
<td>
@php $rowDelta = (float) ($order->reconciliation_delta_row ?? 0); @endphp
@if(abs($rowDelta) >= 0.01)
<span class="muted text-danger">¥{{ number_format($rowDelta, 2) }}</span>
@else
<span class="muted">¥0.00</span>
@endif
</td>
<td>
@php
$receiptCount = count((array) (data_get($order->meta, 'payment_receipts', []) ?? []));