diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 5bd969c..df56738 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1699,7 +1699,8 @@ $rowDelta = (float) ($order->reconciliation_delta_row ?? 0); // 统一口径:按分取整判断是否对账不一致,避免浮点误差导致 0.01 边界不稳定 $isReconcileMismatchRow = (bool) $order->isReconcileMismatch(); - $reconcileShowUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'payment-receipts'); + // 最短治理路径:对账差额本质是“回执证据不一致”,列表行点击应直达可执行动作面板。 + $reconcileShowUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt'); @endphp @if($isReconcileMismatchRow) @php $reconcileFixUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt'); @endphp @@ -1721,7 +1722,7 @@ @endphp @if($receiptCount > 0) @php - $receiptCountShowUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'payment-receipts'); + $receiptCountShowUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt'); @endphp {{ $receiptCount }} @else diff --git a/tests/Feature/AdminPlatformOrderIndexReceiptRefundCountLinksContainBackTest.php b/tests/Feature/AdminPlatformOrderIndexReceiptRefundCountLinksContainBackTest.php index ba730b8..dbf56e0 100644 --- a/tests/Feature/AdminPlatformOrderIndexReceiptRefundCountLinksContainBackTest.php +++ b/tests/Feature/AdminPlatformOrderIndexReceiptRefundCountLinksContainBackTest.php @@ -73,7 +73,7 @@ class AdminPlatformOrderIndexReceiptRefundCountLinksContainBackTest extends Test $receiptLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([ 'back' => $indexSelfWithoutBack, - ]) . '#payment-receipts'; + ]) . '#add-payment-receipt'; $refundLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([ 'back' => $indexSelfWithoutBack, diff --git a/tests/Feature/AdminPlatformOrderReconcileMismatchRowHintTest.php b/tests/Feature/AdminPlatformOrderReconcileMismatchRowHintTest.php index 015df16..2aa3262 100644 --- a/tests/Feature/AdminPlatformOrderReconcileMismatchRowHintTest.php +++ b/tests/Feature/AdminPlatformOrderReconcileMismatchRowHintTest.php @@ -68,8 +68,8 @@ class AdminPlatformOrderReconcileMismatchRowHintTest extends TestCase $indexSelfWithoutBack = '/admin/platform-orders?reconcile_mismatch=1'; - $res->assertSee('/admin/platform-orders/' . $order->id . '?back=' . urlencode($indexSelfWithoutBack) . '#payment-receipts', false); $res->assertSee('/admin/platform-orders/' . $order->id . '?back=' . urlencode($indexSelfWithoutBack) . '#add-payment-receipt', false); + $res->assertDontSee('/admin/platform-orders/' . $order->id . '?back=' . urlencode($indexSelfWithoutBack) . '#payment-receipts', false); $res->assertSee('对账不一致'); } }