admin: 平台订单列表退款不一致治理链接直达追加退款面板

This commit is contained in:
萝卜
2026-03-17 21:18:50 +08:00
parent bf73f6dcae
commit 545063fa42
3 changed files with 5 additions and 4 deletions

View File

@@ -1785,7 +1785,7 @@
$needReconcileFix = (bool) $order->isReconcileMismatch();
$needRefundFix = (bool) $order->isRefundInconsistent();
$reconcileFixUrlCompact = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-payment-receipt');
$refundFixUrlCompact = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'refund-receipts');
$refundFixUrlCompact = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-refund-receipt');
@endphp
@if($needReconcileFix || $needRefundFix)

View File

@@ -95,7 +95,7 @@ class AdminPlatformOrderIndexCompactViewGovernanceHintsStillReachableTest extend
->assertOk()
->assertSee('/admin/platform-orders/' . $reconcileOrder->id . '?back=' . $backEncoded . '#add-payment-receipt', false)
->assertSee('去补回执')
->assertSee('/admin/platform-orders/' . $refundOrder->id . '?back=' . $backEncoded . '#refund-receipts', false)
->assertSee('/admin/platform-orders/' . $refundOrder->id . '?back=' . $backEncoded . '#add-refund-receipt', false)
->assertSee('去核对退款');
}
}

View File

@@ -52,9 +52,10 @@ class AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSection
$html = (string) $res->getContent();
// 退款不一致集合里,行内“去核对退款”应锚定到退款区块(#refund-receipts
// 退款不一致集合里,行内“去核对退款”应优先锚定到“追加退款记录”面板(#add-refund-receipt
// 以缩短 SOP进入详情页后无需再滚动/再展开)。
$this->assertStringContainsString('疑似不一致', $html);
$this->assertStringContainsString('/admin/platform-orders/' . $order->id, $html);
$this->assertStringContainsString('#refund-receipts', $html);
$this->assertStringContainsString('#add-refund-receipt', $html);
}
}