admin: 平台订单列表回执/对账行级入口统一直达追加支付回执面板

This commit is contained in:
萝卜
2026-03-17 22:30:30 +08:00
parent 08cd7b38ce
commit 061ff2a0b4
3 changed files with 5 additions and 4 deletions

View File

@@ -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
<a href="{!! $receiptCountShowUrl !!}" class="muted">{{ $receiptCount }}</a>
@else

View File

@@ -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,

View File

@@ -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('对账不一致');
}
}