feat(platform-orders): 支持批量仅标记为已生效(待生效集合)

This commit is contained in:
萝卜
2026-03-10 15:11:56 +00:00
parent 81136bf47a
commit 09726d4f57
4 changed files with 278 additions and 0 deletions

View File

@@ -200,6 +200,45 @@
<button type="submit">批量同步订阅(全部订单)</button>
</form>
<form method="post" action="/admin/platform-orders/batch-mark-activated" onsubmit="return confirm('确认批量将当前筛选范围内“已支付+待处理”的订单标记为已生效?(不修改支付状态,不自动同步订阅)');" class="mb-10">
@csrf
<input type="hidden" name="scope" value="filtered">
<input type="hidden" name="status" value="{{ $filters['status'] ?? '' }}">
<input type="hidden" name="payment_status" value="{{ $filters['payment_status'] ?? '' }}">
<input type="hidden" name="merchant_id" value="{{ $filters['merchant_id'] ?? '' }}">
<input type="hidden" name="plan_id" value="{{ $filters['plan_id'] ?? '' }}">
<input type="hidden" name="site_subscription_id" value="{{ $filters['site_subscription_id'] ?? '' }}">
<input type="hidden" name="fail_only" value="{{ $filters['fail_only'] ?? '' }}">
<input type="hidden" name="synced_only" value="{{ $filters['synced_only'] ?? '' }}">
<input type="hidden" name="sync_status" value="{{ $filters['sync_status'] ?? '' }}">
<input type="hidden" name="keyword" value="{{ $filters['keyword'] ?? '' }}">
<label class="muted form-inline-row mb-8">
<span>本次最多处理</span>
<input type="number" name="limit" value="50" min="1" max="500" class="w-90">
<span>条(安全阀)</span>
</label>
<div class="muted mb-8">提示:建议先用快捷筛选「待生效」(已支付+待处理)锁定范围,再执行批量生效。</div>
<button type="submit">批量仅标记为已生效(当前筛选范围)</button>
</form>
<form method="post" action="/admin/platform-orders/batch-mark-activated" onsubmit="return confirm('确认对全部订单执行批量仅标记为已生效?该操作仍只处理“已支付+待处理”的订单,但范围可能很大。');" class="mb-10">
@csrf
<input type="hidden" name="scope" value="all">
<label class="muted form-inline-row mb-8">
<span>确认输入</span>
<input type="text" name="confirm" placeholder="YES" class="w-140">
<span>(必须输入 YES 才会执行)</span>
</label>
<label class="muted form-inline-row mb-8">
<span>本次最多处理</span>
<input type="number" name="limit" value="50" min="1" max="500" class="w-90">
<span>条(安全阀)</span>
</label>
<button type="submit">批量仅标记为已生效(全部订单)</button>
</form>
<form method="post" action="/admin/platform-orders/clear-sync-errors" onsubmit="return confirm('确认清除当前筛选范围内命中的订单的“同步失败”标记?');" class="mb-10">
@csrf
<input type="hidden" name="scope" value="filtered">