diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index aa7f484..0fb54e9 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1785,7 +1785,7 @@ $needReconcileFix = (bool) $order->isReconcileMismatch(); $needRefundFix = (bool) $order->isRefundInconsistent(); $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, 'refund-receipts'); + $refundFixUrlCompact = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-refund-receipt'); @endphp @if($needReconcileFix || $needRefundFix) diff --git a/tests/Feature/AdminPlatformOrderIndexCompactViewGovernanceHintsStillReachableTest.php b/tests/Feature/AdminPlatformOrderIndexCompactViewGovernanceHintsStillReachableTest.php index 27a262b..5bcd73a 100644 --- a/tests/Feature/AdminPlatformOrderIndexCompactViewGovernanceHintsStillReachableTest.php +++ b/tests/Feature/AdminPlatformOrderIndexCompactViewGovernanceHintsStillReachableTest.php @@ -95,7 +95,7 @@ class AdminPlatformOrderIndexCompactViewGovernanceHintsStillReachableTest extend ->assertOk() ->assertSee('/admin/platform-orders/' . $reconcileOrder->id . '?back=' . $backEncoded . '#add-payment-receipt', false) ->assertSee('去补回执') - ->assertSee('/admin/platform-orders/' . $refundOrder->id . '?back=' . $backEncoded . '#refund-receipts', false) + ->assertSee('/admin/platform-orders/' . $refundOrder->id . '?back=' . $backEncoded . '#add-refund-receipt', false) ->assertSee('去核对退款'); } } diff --git a/tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest.php b/tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest.php index b462e07..2d62a16 100644 --- a/tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest.php +++ b/tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest.php @@ -52,9 +52,10 @@ class AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSection $html = (string) $res->getContent(); - // 退款不一致集合里,行内“去核对退款”应锚定到退款区块(#refund-receipts)。 + // 退款不一致集合里,行内“去核对退款”应优先锚定到“追加退款记录”面板(#add-refund-receipt), + // 以缩短 SOP(进入详情页后无需再滚动/再展开)。 $this->assertStringContainsString('疑似不一致', $html); $this->assertStringContainsString('/admin/platform-orders/' . $order->id, $html); - $this->assertStringContainsString('#refund-receipts', $html); + $this->assertStringContainsString('#add-refund-receipt', $html); } }