From d7851f162d82f1ee96a4373f862617da684699e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 22:09:49 +0800 Subject: [PATCH] =?UTF-8?q?admin:=20=E4=BB=AA=E8=A1=A8=E7=9B=98=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E8=AE=A2=E5=8D=95=E5=8E=BB=E5=AF=B9=E8=B4=A6/?= =?UTF-8?q?=E5=8E=BB=E6=A0=B8=E5=AF=B9=E9=80=80=E6=AC=BE=E7=9B=B4=E8=BE=BE?= =?UTF-8?q?=E5=8F=AF=E6=89=A7=E8=A1=8C=E5=8A=A8=E4=BD=9C=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/dashboard.blade.php | 5 +++-- ...dersReconcileMismatchShouldIncludeGoReconcileLinkTest.php | 2 +- ...OrdersRefundInconsistentShouldIncludeGoRefundLinkTest.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index cea0946..5d6f87a 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -849,8 +849,9 @@ $bmpaFailedListUrl = $platformOrdersQuickLinks['bmpa_failed']; // 扫描行:直达治理锚点(与下方提示块的链接口径保持一致) - $scanGoReconcileUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'payment-receipts'); - $scanGoRefundUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'refund-receipts'); + // 最短治理路径:从仪表盘直接落到可执行动作面板,避免仅滚动到列表区后还要再找按钮。 + $scanGoReconcileUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-payment-receipt'); + $scanGoRefundUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-refund-receipt'); $scanGoSyncFailedUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'sync-failed'); $scanGoBmpaFailedUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'bmpa-failed'); $scanGoRelationUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'relation-subscription'); diff --git a/tests/Feature/AdminDashboardRecentPlatformOrdersReconcileMismatchShouldIncludeGoReconcileLinkTest.php b/tests/Feature/AdminDashboardRecentPlatformOrdersReconcileMismatchShouldIncludeGoReconcileLinkTest.php index 60105e8..af120b8 100644 --- a/tests/Feature/AdminDashboardRecentPlatformOrdersReconcileMismatchShouldIncludeGoReconcileLinkTest.php +++ b/tests/Feature/AdminDashboardRecentPlatformOrdersReconcileMismatchShouldIncludeGoReconcileLinkTest.php @@ -58,7 +58,7 @@ class AdminDashboardRecentPlatformOrdersReconcileMismatchShouldIncludeGoReconcil $url = '/admin/platform-orders/' . $order->id . '?' . Arr::query([ 'back' => '/admin', - ]) . '#payment-receipts'; + ]) . '#add-payment-receipt'; $res->assertSee($url, false); $res->assertDontSee('&back=', false); diff --git a/tests/Feature/AdminDashboardRecentPlatformOrdersRefundInconsistentShouldIncludeGoRefundLinkTest.php b/tests/Feature/AdminDashboardRecentPlatformOrdersRefundInconsistentShouldIncludeGoRefundLinkTest.php index 70e074d..38ed054 100644 --- a/tests/Feature/AdminDashboardRecentPlatformOrdersRefundInconsistentShouldIncludeGoRefundLinkTest.php +++ b/tests/Feature/AdminDashboardRecentPlatformOrdersRefundInconsistentShouldIncludeGoRefundLinkTest.php @@ -58,7 +58,7 @@ class AdminDashboardRecentPlatformOrdersRefundInconsistentShouldIncludeGoRefundL $url = '/admin/platform-orders/' . $order->id . '?' . Arr::query([ 'back' => '/admin', - ]) . '#refund-receipts'; + ]) . '#add-refund-receipt'; $res->assertSee($url, false); $res->assertDontSee('&back=', false);