From 03047a42bb318c852fb9913ba36d98fdb1cd2ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sat, 14 Mar 2026 00:33:39 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=EF=BC=9A=E6=B2=BB=E7=90=86=E6=8F=90=E7=A4=BA=E5=9D=97?= =?UTF-8?q?=E6=94=B9=E7=94=A8=20CSS=20=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=B9=B6=E5=8A=A0=E6=8A=A4=E6=A0=8F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 62 +++++++++++-------- ...dexGovernanceBlocksUseCssComponentTest.php | 38 ++++++++++++ 2 files changed, 75 insertions(+), 25 deletions(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexGovernanceBlocksUseCssComponentTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index f56c3fb..2ba427f 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -480,43 +480,55 @@ @endphp @if($hasReconcileMismatchFilter || $hasRefundInconsistentFilter) -
- 提示:当前筛选包含 - @if($hasReconcileMismatchFilter) - 对账不一致 - @endif - @if($hasReconcileMismatchFilter && $hasRefundInconsistentFilter) - - @endif - @if($hasRefundInconsistentFilter) - 退款不一致 - @endif - 。建议先完成金额/状态治理(补回执/核对退款/修正状态)后,再执行批量同步订阅等工具动作。 +
+
工具动作治理提示
+
+ 当前筛选包含 + @if($hasReconcileMismatchFilter) + 对账不一致 + @endif + @if($hasReconcileMismatchFilter && $hasRefundInconsistentFilter) + + @endif + @if($hasRefundInconsistentFilter) + 退款不一致 + @endif + 。建议先完成金额/状态治理(补回执/核对退款/修正状态)后,再执行批量同步订阅等工具动作。 +
@if($hasSyncableOnlyFilter) -
- 注意:当前同时勾选了「只看可同步」—— 这类订单会被批量同步订阅命中。若仍存在对账/退款异常,建议先进入治理集合处理完毕,再回到可同步集合执行批量同步。 - 先去治理(取消只看可同步) +
+
提示
+
+ 当前同时勾选了「只看可同步」—— 这类订单会被批量同步订阅命中。若仍存在对账/退款异常,建议先进入治理集合处理完毕,再回到可同步集合执行批量同步。 + 先去治理(取消只看可同步) +
@endif @endif @if($hasSyncFailedFilter) -
- 提示:当前筛选包含「同步失败/失败原因」范围。建议先治理失败原因(修复数据或重试同步),再执行批量同步订阅等工具动作。 - 进入同步失败集合 - - 切到只看可同步(用于批量重试同步) +
+
同步失败治理提示
+
+ 当前筛选包含「同步失败/失败原因」范围。建议先治理失败原因(修复数据或重试同步),再执行批量同步订阅等工具动作。 + 进入同步失败集合 + + 切到只看可同步(用于批量重试同步) +
@endif @if($hasBmpaFailedFilter) -
- 提示:当前筛选包含「批量标记支付并生效失败/失败原因」范围。建议先补齐回执/核对退款/修正状态后,再切到 pending+unpaid 集合重试批量标记支付。 - 进入批量标记支付失败集合 - - 切到 pending+unpaid(用于重试) +
+
BMPA 失败治理提示
+
+ 当前筛选包含「批量标记支付并生效失败/失败原因」范围。建议先补齐回执/核对退款/修正状态后,再切到 pending+unpaid 集合重试批量标记支付。 + 进入批量标记支付失败集合 + + 切到 pending+unpaid(用于重试) +
@endif diff --git a/tests/Feature/AdminPlatformOrderIndexGovernanceBlocksUseCssComponentTest.php b/tests/Feature/AdminPlatformOrderIndexGovernanceBlocksUseCssComponentTest.php new file mode 100644 index 0000000..087751b --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexGovernanceBlocksUseCssComponentTest.php @@ -0,0 +1,38 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_index_should_render_governance_blocks_with_css_component_class_when_filters_present(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders?reconcile_mismatch=1&syncable_only=1&sync_status=failed&bmpa_failed_only=1'); + $res->assertOk(); + + // 只要命中任一治理提示,页面应使用治理组件 class(避免再次写回 inline style) + $res->assertSee('governance-block', false); + $res->assertSee('governance-block-title', false); + $res->assertSee('governance-block-body', false); + + $res->assertSee('工具动作治理提示', false); + $res->assertSee('同步失败治理提示', false); + $res->assertSee('BMPA 失败治理提示', false); + } +}