From 18cbad9b4741ea49d19c4abcb122eb9a97166a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sat, 14 Mar 2026 14:26:17 +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=9Acompact=20=E5=A4=B1=E8=B4=A5=E5=8E=9F?= =?UTF-8?q?=E5=9B=A0=E8=A1=8C=E6=94=B9=E7=94=A8=20row-warn-prefix=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=B9=B6=E6=9B=B4=E6=96=B0=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/platform_orders/index.blade.php | 10 ++++++++-- ...mOrderIndexCompactViewSyncStatusShowsReasonTest.php | 6 ++++-- .../AdminPlatformOrderIndexRowWarnClassTest.php | 6 ++++-- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 3ed5102..714d03d 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1132,10 +1132,16 @@ @if(! $isFullView) @if($syncErr !== '') -
原因:{{ mb_substr($syncErr, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }}
+
+ 原因 + {{ mb_substr($syncErr, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }} +
@endif @if($bmpaErrCompact !== '') -
BMPA:{{ mb_substr($bmpaErrCompact, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }}
+
+ BMPA + {{ mb_substr($bmpaErrCompact, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }} +
@endif @endif diff --git a/tests/Feature/AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest.php b/tests/Feature/AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest.php index eba44bd..dc68a47 100644 --- a/tests/Feature/AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest.php +++ b/tests/Feature/AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest.php @@ -70,8 +70,10 @@ class AdminPlatformOrderIndexCompactViewSyncStatusShowsReasonTest extends TestCa // 默认精简视图:应显示原因(full 视图仍由“失败原因”列承载) $this->get('/admin/platform-orders') ->assertOk() - ->assertSee('原因:SIMULATED_SYNC_ERROR', false) - ->assertSee('BMPA:SIMULATED_BMPA_ERROR', false); + ->assertSee('原因', false) + ->assertSee('SIMULATED_SYNC_ERROR', false) + ->assertSee('BMPA', false) + ->assertSee('SIMULATED_BMPA_ERROR', false); // full 视图:不强制在该单元格重复显示(避免信息过载),这里确保不出现 compact 的前缀文案 $this->get('/admin/platform-orders?view=full') diff --git a/tests/Feature/AdminPlatformOrderIndexRowWarnClassTest.php b/tests/Feature/AdminPlatformOrderIndexRowWarnClassTest.php index 2e0a759..81e2b3c 100644 --- a/tests/Feature/AdminPlatformOrderIndexRowWarnClassTest.php +++ b/tests/Feature/AdminPlatformOrderIndexRowWarnClassTest.php @@ -72,8 +72,10 @@ class AdminPlatformOrderIndexRowWarnClassTest extends TestCase $res->assertOk(); $res->assertSee('row-warn', false); - $res->assertSee('原因:SIM_SYNC_ERR', false); - $res->assertSee('BMPA:SIM_BMPA_ERR', false); + $res->assertSee('原因', false); + $res->assertSee('SIM_SYNC_ERR', false); + $res->assertSee('BMPA', false); + $res->assertSee('SIM_BMPA_ERR', false); $res->assertSee('无回执', false); } }