admin: 平台订单列表回执/对账行级入口统一直达追加支付回执面板
This commit is contained in:
@@ -1699,7 +1699,8 @@
|
|||||||
$rowDelta = (float) ($order->reconciliation_delta_row ?? 0);
|
$rowDelta = (float) ($order->reconciliation_delta_row ?? 0);
|
||||||
// 统一口径:按分取整判断是否对账不一致,避免浮点误差导致 0.01 边界不稳定
|
// 统一口径:按分取整判断是否对账不一致,避免浮点误差导致 0.01 边界不稳定
|
||||||
$isReconcileMismatchRow = (bool) $order->isReconcileMismatch();
|
$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
|
@endphp
|
||||||
@if($isReconcileMismatchRow)
|
@if($isReconcileMismatchRow)
|
||||||
@php $reconcileFixUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt'); @endphp
|
@php $reconcileFixUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt'); @endphp
|
||||||
@@ -1721,7 +1722,7 @@
|
|||||||
@endphp
|
@endphp
|
||||||
@if($receiptCount > 0)
|
@if($receiptCount > 0)
|
||||||
@php
|
@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
|
@endphp
|
||||||
<a href="{!! $receiptCountShowUrl !!}" class="muted">{{ $receiptCount }}</a>
|
<a href="{!! $receiptCountShowUrl !!}" class="muted">{{ $receiptCount }}</a>
|
||||||
@else
|
@else
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class AdminPlatformOrderIndexReceiptRefundCountLinksContainBackTest extends Test
|
|||||||
|
|
||||||
$receiptLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
|
$receiptLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
|
||||||
'back' => $indexSelfWithoutBack,
|
'back' => $indexSelfWithoutBack,
|
||||||
]) . '#payment-receipts';
|
]) . '#add-payment-receipt';
|
||||||
|
|
||||||
$refundLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
|
$refundLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
|
||||||
'back' => $indexSelfWithoutBack,
|
'back' => $indexSelfWithoutBack,
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ class AdminPlatformOrderReconcileMismatchRowHintTest extends TestCase
|
|||||||
|
|
||||||
$indexSelfWithoutBack = '/admin/platform-orders?reconcile_mismatch=1';
|
$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->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('对账不一致');
|
$res->assertSee('对账不一致');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user