feat: reconcile mismatch row hint link to payment receipts anchor

This commit is contained in:
萝卜
2026-03-11 07:12:20 +00:00
parent b270632a90
commit 73dd49ac43
3 changed files with 81 additions and 4 deletions

View File

@@ -597,9 +597,15 @@
@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>
@php
$rowDelta = (float) ($order->reconciliation_delta_row ?? 0);
// 统一口径:按分取整判断是否对账不一致,避免浮点误差导致 0.01 边界不稳定
$isReconcileMismatchRow = (bool) $order->isReconcileMismatch();
$reconcileShowUrl = '/admin/platform-orders/' . $order->id . '#payment-receipts';
@endphp
@if($isReconcileMismatchRow)
<a class="link text-danger" href="{{ $reconcileShowUrl }}">¥{{ number_format($rowDelta, 2) }}</a>
<div class="muted text-danger muted-xs">对账不一致</div>
@else
<span class="muted">¥0.00</span>
@endif

View File

@@ -235,7 +235,7 @@
@endif
</div>
<div class="card mb-20">
<div class="card mb-20" id="payment-receipts">
<h3>支付回执(对账留痕)</h3>
<p class="muted muted-tight">用于“线下收款/转账/人工核对”的留痕记录(当前阶段先落 meta不引入独立表</p>