订阅详情:批量同步按钮前增加治理提示块(对账/退款异常)

This commit is contained in:
萝卜
2026-03-14 00:48:18 +00:00
parent 69f85172f6
commit 9323793485
2 changed files with 136 additions and 0 deletions

View File

@@ -152,6 +152,43 @@
</div>
<div class="mt-10" id="syncable-batch">
@php
$reconcileMismatchOrders = (int) ($summaryStats['reconcile_mismatch_orders'] ?? 0);
$refundInconsistentOrders = (int) ($summaryStats['refund_inconsistent_orders'] ?? 0);
@endphp
@if($reconcileMismatchOrders > 0 || $refundInconsistentOrders > 0)
<div class="card governance-block" style="margin-bottom:10px;">
<div class="muted text-danger governance-block-title"><strong>批量同步治理提示</strong></div>
<div class="muted governance-block-body">
当前订阅下存在
@if($reconcileMismatchOrders > 0)
<a class="link" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'reconcile_mismatch' => '1']) !!}">对账不一致</a>
<span class="muted">{{ $reconcileMismatchOrders }}</span>
@endif
@if($reconcileMismatchOrders > 0 && $refundInconsistentOrders > 0)
<span class="muted"></span>
@endif
@if($refundInconsistentOrders > 0)
<a class="link" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'refund_inconsistent' => '1']) !!}">退款不一致</a>
<span class="muted">{{ $refundInconsistentOrders }}</span>
@endif
订单。建议先逐单治理金额/状态口径(补回执/核对退款/修正状态),再批量同步订阅。
@if($reconcileMismatchOrders > 0)
<div style="margin-top:6px;">
<a class="link" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'reconcile_mismatch' => '1']) !!}">进入对账不一致订单列表</a>
</div>
@endif
@if($refundInconsistentOrders > 0)
<div style="margin-top:6px;">
<a class="link" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'refund_inconsistent' => '1']) !!}">进入退款不一致订单列表</a>
</div>
@endif
</div>
</div>
@endif
<form method="post" action="/admin/platform-orders/batch-activate-subscriptions" onsubmit="return confirm('确认批量同步该订阅下“可同步”的订单?(仅处理:已支付+已生效+未同步)');">
@csrf
<input type="hidden" name="scope" value="filtered">