feat(admin-dashboard): refund inconsistent hint links to add refund receipt panel

This commit is contained in:
萝卜
2026-03-16 15:46:46 +08:00
parent f0763638df
commit 2d4f366621
6 changed files with 135 additions and 2 deletions

View File

@@ -380,6 +380,8 @@
<a class="link" href="{!! $refundInconsistentUrl !!}">进入集合</a>
<span class="muted"></span>
<a class="link" href="{!! \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'refund-receipts') !!}">去核对退款</a>
<span class="muted"></span>
<a class="link" href="{!! \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-refund-receipt') !!}">去补退款记录</a>
</div>
@endif
@if((string) $po->order_type === 'renewal' && empty($po->site_subscription_id))

View File

@@ -691,7 +691,7 @@
<p class="muted">暂无退款记录。</p>
@endif
<details class="mt-12">
<details class="mt-12" id="add-refund-receipt">
<summary class="muted">追加一条退款记录(会自动推进支付状态)</summary>
<form method="post" action="/admin/platform-orders/{{ $order->id }}/add-refund-receipt" class="mt-10" data-action="disable-on-submit" onsubmit="return confirm('确认追加退款记录?该操作会写入退款轨迹,并可能推进支付状态为部分退款/已退款');">
@csrf