diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 4309e7d..4c16474 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -259,6 +259,7 @@ @php $hasReconcileMismatchFilter = (($filters['reconcile_mismatch'] ?? '') === '1'); $hasRefundInconsistentFilter = (($filters['refund_inconsistent'] ?? '') === '1'); + $hasSyncableOnlyFilter = (($filters['syncable_only'] ?? '') === '1'); @endphp @if($hasReconcileMismatchFilter || $hasRefundInconsistentFilter) @@ -275,6 +276,13 @@ @endif 。建议先完成金额/状态治理(补回执/核对退款)后,再执行批量同步订阅等工具动作。 + + @if($hasSyncableOnlyFilter) +
+ 注意:当前同时勾选了「只看可同步」—— 这类订单会被批量同步订阅命中。若仍存在对账/退款异常,建议先进入治理集合处理完毕,再回到可同步集合执行批量同步。 + 先去治理(取消只看可同步) +
+ @endif @endif
diff --git a/tests/Feature/AdminPlatformOrderToolsGovernanceHintTest.php b/tests/Feature/AdminPlatformOrderToolsGovernanceHintTest.php index a25a364..d646f13 100644 --- a/tests/Feature/AdminPlatformOrderToolsGovernanceHintTest.php +++ b/tests/Feature/AdminPlatformOrderToolsGovernanceHintTest.php @@ -38,4 +38,15 @@ class AdminPlatformOrderToolsGovernanceHintTest extends TestCase ->assertSee('建议先完成金额/状态治理', false) ->assertSee('退款不一致', false); } + + public function test_platform_orders_tools_show_strong_hint_when_syncable_only_and_governance_filters_present(): void + { + $this->loginAsPlatformAdmin(); + + $this->get('/admin/platform-orders?syncable_only=1&reconcile_mismatch=1') + ->assertOk() + ->assertSee('注意:当前同时勾选了「只看可同步」', false) + ->assertSee('先去治理(取消只看可同步)', false) + ->assertSee('syncable_only=', false); + } }