diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php
index 7210ce6..09ad9e3 100644
--- a/resources/views/admin/platform_orders/index.blade.php
+++ b/resources/views/admin/platform_orders/index.blade.php
@@ -549,6 +549,13 @@
当前 BAS run_id:
{{ $batchActivationRunId }}
+ @php
+ $basBatchReviewUrl = \App\Support\BackUrl::withBack('/admin/platform-batches/show?' . \Illuminate\Support\Arr::query([
+ 'type' => 'bas',
+ 'run_id' => $batchActivationRunId,
+ ]), $selfWithoutBack);
+ @endphp
+
查看批次复盘
|
清除 BAS 批次筛选
@@ -602,6 +609,13 @@
当前 BMPA run_id:
{{ $batchBmpaRunId }}
+ @php
+ $bmpaBatchReviewUrl = \App\Support\BackUrl::withBack('/admin/platform-batches/show?' . \Illuminate\Support\Arr::query([
+ 'type' => 'bmpa',
+ 'run_id' => $batchBmpaRunId,
+ ]), $selfWithoutBack);
+ @endphp
+
查看批次复盘
|
清除 BMPA 批次筛选
diff --git a/tests/Feature/AdminPlatformOrderIndexBatchRunIdBadgesShouldIncludeReviewLinksTest.php b/tests/Feature/AdminPlatformOrderIndexBatchRunIdBadgesShouldIncludeReviewLinksTest.php
new file mode 100644
index 0000000..812a4d4
--- /dev/null
+++ b/tests/Feature/AdminPlatformOrderIndexBatchRunIdBadgesShouldIncludeReviewLinksTest.php
@@ -0,0 +1,47 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_platform_orders_page_batch_run_id_badges_should_include_review_links(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $basRunId = 'BAS_BADGE_REVIEW_LINK_0001';
+ $bmpaRunId = 'BMPA_BADGE_REVIEW_LINK_0001';
+
+ $htmlBas = $this->get('/admin/platform-orders?batch_activation_run_id=' . $basRunId)
+ ->assertOk()
+ ->getContent();
+
+ $this->assertStringContainsString('查看批次复盘', $htmlBas);
+ $this->assertStringContainsString('/admin/platform-batches/show?type=bas', $htmlBas);
+ $this->assertStringContainsString('run_id=' . $basRunId, $htmlBas);
+ $this->assertStringContainsString('back=', $htmlBas);
+
+ $htmlBmpa = $this->get('/admin/platform-orders?batch_bmpa_run_id=' . $bmpaRunId)
+ ->assertOk()
+ ->getContent();
+
+ $this->assertStringContainsString('查看批次复盘', $htmlBmpa);
+ $this->assertStringContainsString('/admin/platform-batches/show?type=bmpa', $htmlBmpa);
+ $this->assertStringContainsString('run_id=' . $bmpaRunId, $htmlBmpa);
+ $this->assertStringContainsString('back=', $htmlBmpa);
+ }
+}