重构: 收口工具治理提示链接组件

This commit is contained in:
萝卜
2026-03-18 19:41:58 +08:00
parent 5d377d16c3
commit 370a9a58e5

View File

@@ -1027,13 +1027,19 @@
<div class="muted governance-block-body">
当前筛选包含
@if($hasReconcileMismatchFilter)
<a class="link" href="{!! $safeFullUrlWithQuery(['reconcile_mismatch' => '1', 'page' => null]) !!}">对账不一致</a>
@include('admin.platform_orders._summary_text_link', [
'href' => $safeFullUrlWithQuery(['reconcile_mismatch' => '1', 'page' => null]),
'label' => '对账不一致',
])
@endif
@if($hasReconcileMismatchFilter && $hasRefundInconsistentFilter)
<span class="muted"></span>
@endif
@if($hasRefundInconsistentFilter)
<a class="link" href="{!! $safeFullUrlWithQuery(['refund_inconsistent' => '1', 'page' => null]) !!}">退款不一致</a>
@include('admin.platform_orders._summary_text_link', [
'href' => $safeFullUrlWithQuery(['refund_inconsistent' => '1', 'page' => null]),
'label' => '退款不一致',
])
@endif
。建议先完成金额/状态治理(补回执/核对退款/修正状态)后,再执行批量同步订阅等工具动作。
<div class="mt-6 actions gap-10">
@@ -1080,18 +1086,26 @@
<a class="btn btn-secondary btn-sm" href="#batch-activate-subscriptions">定位到批量同步订阅工具</a>
</div>
<div class="mt-6 actions gap-10">
<a class="btn btn-secondary btn-sm" href="{!! $safeFullUrlWithQuery([
'sync_status' => 'failed',
// 进入失败集合:不应残留“只看可同步”等互斥开关
'syncable_only' => null,
'synced_only' => null,
'fail_only' => null,
// 从 BMPA 失败上下文切回同步失败集合时,需清理冲突开关
'bmpa_failed_only' => null,
'bmpa_error_keyword' => null,
'page' => null,
]) !!}">进入同步失败集合</a>
<a class="btn btn-secondary btn-sm" href="{!! $safeFullUrlWithQuery(['syncable_only' => '1', 'sync_status' => 'unsynced', 'fail_only' => null, 'page' => null]) !!}">切到只看可同步(用于批量重试同步)</a>
@include('admin.platform_orders._summary_text_link', [
'class' => 'btn btn-secondary btn-sm',
'href' => $safeFullUrlWithQuery([
'sync_status' => 'failed',
// 进入失败集合:不应残留“只看可同步”等互斥开关
'syncable_only' => null,
'synced_only' => null,
'fail_only' => null,
// 从 BMPA 失败上下文切回同步失败集合时,需清理冲突开关
'bmpa_failed_only' => null,
'bmpa_error_keyword' => null,
'page' => null,
]),
'label' => '进入同步失败集合',
])
@include('admin.platform_orders._summary_text_link', [
'class' => 'btn btn-secondary btn-sm',
'href' => $safeFullUrlWithQuery(['syncable_only' => '1', 'sync_status' => 'unsynced', 'fail_only' => null, 'page' => null]),
'label' => '切到只看可同步(用于批量重试同步)',
])
</div>
</div>
</div>