ui(platform-orders): add batch governance links in bmpa error block
This commit is contained in:
@@ -1431,14 +1431,52 @@
|
||||
@endif
|
||||
|
||||
@if($bmpaErrMsg !== '')
|
||||
@php
|
||||
$bmpaRunIdRow = (string) (data_get($order->meta, 'batch_mark_paid_and_activate.run_id') ?? '');
|
||||
|
||||
$bmpaGoFailedUrl = $buildQuickFilterUrl([
|
||||
'bmpa_failed_only' => '1',
|
||||
'page' => null,
|
||||
]);
|
||||
|
||||
$bmpaGoBatchFailedUrl = '';
|
||||
if ($bmpaRunIdRow !== '') {
|
||||
$bmpaGoBatchFailedUrl = $buildQuickFilterUrl([
|
||||
'batch_bmpa_run_id' => $bmpaRunIdRow,
|
||||
'bmpa_failed_only' => '1',
|
||||
'page' => null,
|
||||
]);
|
||||
}
|
||||
|
||||
$bmpaGoBatchReasonUrl = '';
|
||||
if ($bmpaRunIdRow !== '' && ! $bmpaErrTooLong) {
|
||||
$bmpaGoBatchReasonUrl = $buildQuickFilterUrl([
|
||||
'batch_bmpa_run_id' => $bmpaRunIdRow,
|
||||
'bmpa_failed_only' => '1',
|
||||
'bmpa_error_keyword' => $bmpaErrMsg,
|
||||
'page' => null,
|
||||
]);
|
||||
}
|
||||
@endphp
|
||||
<div class="mt-6">
|
||||
<span class="muted muted-xs">BMPA:</span>
|
||||
@if($bmpaErrTooLong)
|
||||
<span class="muted text-danger" title="{{ $bmpaErrMsg }}">{{ mb_substr($bmpaErrMsg, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }}</span>
|
||||
<div class="muted text-danger muted-xs">原因过长,请复制到筛选框</div>
|
||||
<a class="link" href="{!! $safeFullUrlWithQuery(['bmpa_failed_only' => '1', 'page' => null]) !!}">进入批量标记支付失败集合</a>
|
||||
|
||||
@if($bmpaGoBatchFailedUrl !== '')
|
||||
<div class="muted muted-xs">治理:<a class="link" href="{!! $bmpaGoBatchFailedUrl !!}">进入本批次 BMPA 失败集合</a></div>
|
||||
@else
|
||||
<div class="muted muted-xs">治理:<a class="link" href="{!! $bmpaGoFailedUrl !!}">进入 BMPA 失败集合</a></div>
|
||||
@endif
|
||||
@else
|
||||
<a class="link text-danger" href="{!! $safeFullUrlWithQuery(['bmpa_error_keyword' => $bmpaErrMsg, 'page' => null]) !!}">{{ mb_substr($bmpaErrMsg, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }}</a>
|
||||
|
||||
@if($bmpaGoBatchReasonUrl !== '')
|
||||
<div class="muted muted-xs">治理:<a class="link" href="{!! $bmpaGoBatchReasonUrl !!}">本批次按原因筛选</a></div>
|
||||
@elseif($bmpaGoBatchFailedUrl !== '')
|
||||
<div class="muted muted-xs">治理:<a class="link" href="{!! $bmpaGoBatchFailedUrl !!}">进入本批次 BMPA 失败集合</a></div>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user