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);