Dashboard recent platform orders scanline: refund status should show trace (有/无/异常)
This commit is contained in:
@@ -865,7 +865,16 @@
|
||||
$reconcileStatusText = ($isPaid && $hasReceiptEvidence)
|
||||
? ($po->isReconcileMismatch() ? '不一致' : '一致')
|
||||
: '-';
|
||||
$refundStatusText = ($isPaid || $isRefunded) ? ($po->isRefundInconsistent() ? '异常' : '正常') : '-';
|
||||
// 扫描行退款摘要口径(更贴近治理):
|
||||
// - 非 paid/refunded:显示 "-"(避免对未支付订单造成误导)
|
||||
// - paid/refunded:
|
||||
// - 有退款且不一致:"异常"(直达 #add-refund-receipt)
|
||||
// - 有退款且一致:"有"(直达 #add-refund-receipt,便于核对退款轨迹)
|
||||
// - 无退款:"无"
|
||||
$hasRefundTrace = ((float) $po->refundTotal()) > 0;
|
||||
$refundStatusText = ($isPaid || $isRefunded)
|
||||
? ($po->isRefundInconsistent() ? '异常' : ($hasRefundTrace ? '有' : '无'))
|
||||
: '-';
|
||||
|
||||
$syncStatusText = $syncErrMsg !== '' ? '失败' : '正常';
|
||||
$bmpaStatusText = $bmpaErrMsg !== '' ? '失败' : '正常';
|
||||
@@ -919,9 +928,9 @@
|
||||
@endif
|
||||
</span>
|
||||
<span class="adm-order-scansep">|</span>
|
||||
<span class="adm-order-scanitem" title="退款金额与支付状态一致性">
|
||||
<span class="adm-order-scanitem" title="退款轨迹(refund_summary/refund_receipts)与退款状态一致性">
|
||||
退款:
|
||||
@if($refundStatusText !== '-' && $refundStatusText !== '正常')
|
||||
@if($refundStatusText !== '-' && $refundStatusText !== '无')
|
||||
<a class="link" href="{!! $scanGoRefundUrl !!}"><strong>{{ $refundStatusText }}</strong></a>
|
||||
@else
|
||||
<strong>{{ $refundStatusText }}</strong>
|
||||
|
||||
Reference in New Issue
Block a user