platform_orders index: compact view keeps governance fix links reachable
This commit is contained in:
@@ -1296,8 +1296,33 @@
|
||||
@endphp
|
||||
@php
|
||||
$canMarkPaid = ($order->payment_status !== 'paid') || ($order->status !== 'activated');
|
||||
|
||||
// 精简视图也要可达的“治理入口”:不要只依赖可选列(col-optional)里的提示
|
||||
$needReconcileFix = (bool) $order->isReconcileMismatch();
|
||||
$needRefundFix = (bool) $order->isRefundInconsistent();
|
||||
$reconcileFixUrlCompact = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]) . '#add-payment-receipt';
|
||||
$refundFixUrlCompact = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]) . '#refund-receipts';
|
||||
@endphp
|
||||
|
||||
@if($needReconcileFix || $needRefundFix)
|
||||
<div class="governance-hints">
|
||||
@if($needReconcileFix)
|
||||
<div class="muted text-danger muted-xs governance-hint">
|
||||
对账不一致
|
||||
<span class="muted">|</span>
|
||||
<a class="link" href="{!! $reconcileFixUrlCompact !!}">去补回执</a>
|
||||
</div>
|
||||
@endif
|
||||
@if($needRefundFix)
|
||||
<div class="muted text-danger muted-xs governance-hint">
|
||||
退款不一致
|
||||
<span class="muted">|</span>
|
||||
<a class="link" href="{!! $refundFixUrlCompact !!}">去核对退款</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="post" action="/admin/platform-orders/{{ $order->id }}/mark-paid-and-activate" onsubmit="return confirm('确认将该订单标记为已支付并生效?此操作会推进状态并尝试同步订阅');" class="mb-6">
|
||||
@csrf
|
||||
<button class="btn btn-sm" type="submit" @disabled(! $canMarkPaid)>标记支付并生效</button>
|
||||
|
||||
Reference in New Issue
Block a user