feat(admin): 关联订阅区块补齐续费缺订阅治理提示与查找订阅入口
This commit is contained in:
@@ -429,6 +429,37 @@
|
||||
</table>
|
||||
@else
|
||||
<p class="muted">该订单尚未关联订阅(site_subscription_id 为空)。</p>
|
||||
|
||||
@php
|
||||
$isRenewalMissingSubscription = ((string) ($order->order_type ?? '') === 'renewal')
|
||||
&& ((int) ($order->site_subscription_id ?? 0) <= 0);
|
||||
|
||||
$missingSubHelpUrlForRelationBlock = '';
|
||||
if ($isRenewalMissingSubscription) {
|
||||
$missingSubHelpUrlForRelationBlock = \App\Support\BackUrl::withBack('/admin/site-subscriptions?' . \Illuminate\Support\Arr::query([
|
||||
'merchant_id' => (int) ($order->merchant_id ?? 0) ?: null,
|
||||
'plan_id' => (int) ($order->plan_id ?? 0) ?: null,
|
||||
'page' => null,
|
||||
]), $orderShowSelf);
|
||||
}
|
||||
@endphp
|
||||
|
||||
@if($isRenewalMissingSubscription)
|
||||
<div class="card governance-block mt-10">
|
||||
<div class="muted text-danger governance-block-title"><strong>订阅关联治理提示</strong></div>
|
||||
<div class="muted governance-block-body">
|
||||
<div>
|
||||
当前订单类型为「续费」,但未绑定订阅(site_subscription_id 为空)。
|
||||
<span class="muted">|</span>
|
||||
<span class="muted">建议先找到正确订阅并补齐关联,再进行 BMPA/同步/标记生效等动作。</span>
|
||||
@if($missingSubHelpUrlForRelationBlock !== '')
|
||||
<span class="muted">|</span>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $missingSubHelpUrlForRelationBlock !!}">去订阅管理查找订阅</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user