From 061ff2a0b4cf03289358973d25aff485231ec3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 22:30:30 +0800 Subject: [PATCH] =?UTF-8?q?admin:=20=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=9B=9E=E6=89=A7/=E5=AF=B9=E8=B4=A6?= =?UTF-8?q?=E8=A1=8C=E7=BA=A7=E5=85=A5=E5=8F=A3=E7=BB=9F=E4=B8=80=E7=9B=B4?= =?UTF-8?q?=E8=BE=BE=E8=BF=BD=E5=8A=A0=E6=94=AF=E4=BB=98=E5=9B=9E=E6=89=A7?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/platform_orders/index.blade.php | 5 +++-- ...tformOrderIndexReceiptRefundCountLinksContainBackTest.php | 2 +- .../AdminPlatformOrderReconcileMismatchRowHintTest.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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('对账不一致'); } }