ui(platform-orders): refund inconsistent fix link anchors to refund section

This commit is contained in:
萝卜
2026-03-17 08:21:53 +08:00
parent 0458399b9b
commit 617400a9e1
2 changed files with 5 additions and 4 deletions

View File

@@ -1639,7 +1639,7 @@
@endphp @endphp
@if($refundTotal > 0) @if($refundTotal > 0)
@if($isRefundInconsistent) @if($isRefundInconsistent)
@php $refundFixUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-refund-receipt'); @endphp @php $refundFixUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'refund-receipts'); @endphp
<a class="link text-danger" href="{!! $refundShowUrl !!}">¥{{ number_format($refundTotal, 2) }}</a> <a class="link text-danger" href="{!! $refundShowUrl !!}">¥{{ number_format($refundTotal, 2) }}</a>
<div class="muted text-danger muted-xs"> <div class="muted text-danger muted-xs">
疑似不一致 疑似不一致
@@ -1672,7 +1672,7 @@
$needReconcileFix = (bool) $order->isReconcileMismatch(); $needReconcileFix = (bool) $order->isReconcileMismatch();
$needRefundFix = (bool) $order->isRefundInconsistent(); $needRefundFix = (bool) $order->isRefundInconsistent();
$reconcileFixUrlCompact = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt'); $reconcileFixUrlCompact = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt');
$refundFixUrlCompact = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-refund-receipt'); $refundFixUrlCompact = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'refund-receipts');
@endphp @endphp
@if($needReconcileFix || $needRefundFix) @if($needReconcileFix || $needRefundFix)

View File

@@ -52,9 +52,10 @@ class AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundRece
$html = (string) $res->getContent(); $html = (string) $res->getContent();
// 退款不一致集合里,行内“去核对退款”应直达追加退款回执面板(#add-refund-receipt // 退款不一致集合里,行内“去核对退款”应锚定到退款区块(#refund-receipts避免误打开“追加退款记录”面板
// 原因:核对退款包含查看轨迹/核对金额/再决定是否追加记录,不等于直接追加。
$this->assertStringContainsString('疑似不一致', $html); $this->assertStringContainsString('疑似不一致', $html);
$this->assertStringContainsString('/admin/platform-orders/' . $order->id, $html); $this->assertStringContainsString('/admin/platform-orders/' . $order->id, $html);
$this->assertStringContainsString('#add-refund-receipt', $html); $this->assertStringContainsString('#refund-receipts', $html);
} }
} }