chore(admin-ui): pagination links no-underline; fix platform order syncable test seed
This commit is contained in:
@@ -138,6 +138,14 @@
|
|||||||
margin-top:16px;
|
margin-top:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 强制去掉分页区域下划线:避免被全局 a:hover{text-decoration:underline;} 影响 */
|
||||||
|
.adm-pagination a,
|
||||||
|
.adm-pagination a:hover,
|
||||||
|
.adm-pagination a:focus,
|
||||||
|
.adm-pagination a:active{
|
||||||
|
text-decoration:none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.adm-pagination-inner{
|
.adm-pagination-inner{
|
||||||
display:flex;
|
display:flex;
|
||||||
align-items:center;
|
align-items:center;
|
||||||
|
|||||||
@@ -360,9 +360,27 @@ class AdminPlatformOrderTest extends TestCase
|
|||||||
->assertDontSee('PO202603100102');
|
->assertDontSee('PO202603100102');
|
||||||
|
|
||||||
// 只看可同步:已支付 + 已生效 + 未同步
|
// 只看可同步:已支付 + 已生效 + 未同步
|
||||||
|
// 注意:为避免“续费但未绑定订阅”的脏数据被误判为可同步集合,业务逻辑会排除 renewal 且 site_subscription_id 为空的订单。
|
||||||
|
// 因此这里必须构造一条已绑定订阅的续费订单。
|
||||||
|
$syncableSub = \App\Models\SiteSubscription::query()->create([
|
||||||
|
'merchant_id' => $merchant->id,
|
||||||
|
'plan_id' => $plan->id,
|
||||||
|
'status' => 'activated',
|
||||||
|
'source' => 'manual',
|
||||||
|
'subscription_no' => 'SUB_SYNCABLE_0001',
|
||||||
|
'plan_name' => $plan->name,
|
||||||
|
'billing_cycle' => 'monthly',
|
||||||
|
'period_months' => 1,
|
||||||
|
'amount' => 199,
|
||||||
|
'starts_at' => now()->subDay(),
|
||||||
|
'ends_at' => now()->addMonth(),
|
||||||
|
'activated_at' => now()->subDay(),
|
||||||
|
]);
|
||||||
|
|
||||||
PlatformOrder::query()->create([
|
PlatformOrder::query()->create([
|
||||||
'merchant_id' => $merchant->id,
|
'merchant_id' => $merchant->id,
|
||||||
'plan_id' => $plan->id,
|
'plan_id' => $plan->id,
|
||||||
|
'site_subscription_id' => $syncableSub->id,
|
||||||
'order_no' => 'PO202603100106',
|
'order_no' => 'PO202603100106',
|
||||||
'order_type' => 'renewal',
|
'order_type' => 'renewal',
|
||||||
'status' => 'activated',
|
'status' => 'activated',
|
||||||
|
|||||||
Reference in New Issue
Block a user