feat(platform-orders): 详情页展示最近批量生效记录

This commit is contained in:
萝卜
2026-03-10 15:36:59 +00:00
parent 9befa11168
commit 2d5369eeab
2 changed files with 20 additions and 0 deletions

View File

@@ -88,6 +88,25 @@
$audit = (array) (data_get($order->meta, 'audit', []) ?? []);
@endphp
@php
$batchMarkActivated = (array) (data_get($order->meta, 'batch_mark_activated', []) ?? []);
@endphp
<div class="card mb-20">
<h3>最近批量生效记录</h3>
@if((string) data_get($batchMarkActivated, 'at') !== '')
<table>
<tbody>
<tr><th style="width:160px;">生效时间</th><td>{{ data_get($batchMarkActivated, 'at') }}</td></tr>
<tr><th>操作管理员</th><td>{{ data_get($batchMarkActivated, 'admin_id') ?: '-' }}</td></tr>
<tr><th>范围</th><td>{{ data_get($batchMarkActivated, 'scope') ?: '-' }}</td></tr>
</tbody>
</table>
@else
<p class="muted">暂无批量生效记录。</p>
@endif
</div>
<div class="card mb-20">
<h3>订阅同步记录</h3>
@if($activation)

View File

@@ -99,6 +99,7 @@ class AdminPlatformOrderShowTest extends TestCase
->assertSee('PO_SHOW_0001')
->assertSee('标记支付并生效')
->assertSee('同步订阅')
->assertSee('最近批量生效记录')
->assertSee('订阅同步元数据')
->assertSee('关联订阅')
->assertSee('打开订阅详情')