feat(admin-dashboard): scanline abnormal statuses link to governance anchors
This commit is contained in:
@@ -320,6 +320,13 @@
|
||||
$syncFailedListUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?sync_status=failed', $selfWithoutBack);
|
||||
$bmpaFailedListUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?bmpa_failed_only=1', $selfWithoutBack);
|
||||
|
||||
// 扫描行:直达治理锚点(与下方提示块的链接口径保持一致)
|
||||
$scanGoReconcileUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'payment-receipts');
|
||||
$scanGoRefundUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'refund-receipts');
|
||||
$scanGoSyncFailedUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'sync-failed');
|
||||
$scanGoBmpaFailedUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'bmpa-failed');
|
||||
$scanGoRelationUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'relation-subscription');
|
||||
|
||||
// 运营扫描用的“治理状态摘要”(不替代下方的治理提示入口,只用于快速判断)
|
||||
// 注意:为避免对“未支付订单”造成误导,回执/对账/退款在非 paid/refunded 时显示 "-"。
|
||||
$isPaid = ((string) $po->payment_status === 'paid');
|
||||
@@ -366,15 +373,50 @@
|
||||
<div class="muted muted-xs adm-order-scanline" data-role="recent-platform-order-scanline">
|
||||
<span class="adm-order-scanitem" title="支付回执证据(payment_summary/payment_receipts)">回执:<strong>{{ $receiptStatusText }}</strong></span>
|
||||
<span class="adm-order-scansep">|</span>
|
||||
<span class="adm-order-scanitem" title="回执金额 vs 已付金额(仅在有回执证据时判断)">对账:<strong>{{ $reconcileStatusText }}</strong></span>
|
||||
<span class="adm-order-scanitem" title="回执金额 vs 已付金额(仅在有回执证据时判断)">
|
||||
对账:
|
||||
@if($reconcileStatusText !== '-' && $reconcileStatusText !== '一致')
|
||||
<a class="link" href="{!! $scanGoReconcileUrl !!}"><strong>{{ $reconcileStatusText }}</strong></a>
|
||||
@else
|
||||
<strong>{{ $reconcileStatusText }}</strong>
|
||||
@endif
|
||||
</span>
|
||||
<span class="adm-order-scansep">|</span>
|
||||
<span class="adm-order-scanitem" title="退款金额与支付状态一致性">退款:<strong>{{ $refundStatusText }}</strong></span>
|
||||
<span class="adm-order-scanitem" title="退款金额与支付状态一致性">
|
||||
退款:
|
||||
@if($refundStatusText !== '-' && $refundStatusText !== '正常')
|
||||
<a class="link" href="{!! $scanGoRefundUrl !!}"><strong>{{ $refundStatusText }}</strong></a>
|
||||
@else
|
||||
<strong>{{ $refundStatusText }}</strong>
|
||||
@endif
|
||||
</span>
|
||||
<span class="adm-order-scansep">|</span>
|
||||
<span class="adm-order-scanitem" title="订阅激活同步(subscription_activation_error)">同步:<strong>{{ $syncStatusText }}</strong></span>
|
||||
<span class="adm-order-scanitem" title="订阅激活同步(subscription_activation_error)">
|
||||
同步:
|
||||
@if($syncStatusText === '失败')
|
||||
<a class="link" href="{!! $scanGoSyncFailedUrl !!}"><strong>{{ $syncStatusText }}</strong></a>
|
||||
@else
|
||||
<strong>{{ $syncStatusText }}</strong>
|
||||
@endif
|
||||
</span>
|
||||
<span class="adm-order-scansep">|</span>
|
||||
<span class="adm-order-scanitem" title="批量标记已付并激活(batch_mark_paid_and_activate_error)">BMPA:<strong>{{ $bmpaStatusText }}</strong></span>
|
||||
<span class="adm-order-scanitem" title="批量标记已付并激活(batch_mark_paid_and_activate_error)">
|
||||
BMPA:
|
||||
@if($bmpaStatusText === '失败')
|
||||
<a class="link" href="{!! $scanGoBmpaFailedUrl !!}"><strong>{{ $bmpaStatusText }}</strong></a>
|
||||
@else
|
||||
<strong>{{ $bmpaStatusText }}</strong>
|
||||
@endif
|
||||
</span>
|
||||
<span class="adm-order-scansep">|</span>
|
||||
<span class="adm-order-scanitem" title="续费单订阅关联(site_subscription_id)">订阅:<strong>{{ $subscriptionStatusText }}</strong></span>
|
||||
<span class="adm-order-scanitem" title="续费单订阅关联(site_subscription_id)">
|
||||
订阅:
|
||||
@if($subscriptionStatusText === '缺')
|
||||
<a class="link" href="{!! $scanGoRelationUrl !!}"><strong>{{ $subscriptionStatusText }}</strong></a>
|
||||
@else
|
||||
<strong>{{ $subscriptionStatusText }}</strong>
|
||||
@endif
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>¥{{ number_format((float) $po->payable_amount, 2) }}</td>
|
||||
|
||||
Reference in New Issue
Block a user