feat(platform_orders): add cross links between receipt summary cards
This commit is contained in:
@@ -358,6 +358,9 @@
|
||||
/ ¥{{ number_format((float) ($summaryStats['total_receipt_amount'] ?? 0), 2) }}
|
||||
</div>
|
||||
<div class="muted muted-xs">有回执口径:payment_summary.total_amount 存在或 payment_receipts 有记录</div>
|
||||
<div class="muted muted-xs">
|
||||
<a class="link" href="{!! $safeFullUrlWithQuery(['receipt_status' => 'none', 'page' => null]) !!}">查看无回执订单</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3>无回执订单</h3>
|
||||
@@ -365,6 +368,9 @@
|
||||
<a class="link" href="{!! $safeFullUrlWithQuery(['receipt_status' => 'none', 'page' => null]) !!}">{{ $summaryStats['no_receipt_orders'] ?? 0 }}</a>
|
||||
</div>
|
||||
<div class="muted muted-xs">无 payment_summary 且无 payment_receipts</div>
|
||||
<div class="muted muted-xs">
|
||||
<a class="link" href="{!! $safeFullUrlWithQuery(['receipt_status' => 'has', 'page' => null]) !!}">查看有回执订单</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3>治理顺序建议(SOP)</h3>
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminPlatformOrderReceiptCardsCrossLinksTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
protected function loginAsPlatformAdmin(): void
|
||||
{
|
||||
$this->seed();
|
||||
|
||||
$this->post('/admin/login', [
|
||||
'email' => 'platform.admin@demo.local',
|
||||
'password' => 'Platform@123456',
|
||||
])->assertRedirect('/admin');
|
||||
}
|
||||
|
||||
public function test_receipt_cards_should_have_cross_links_for_governance_navigation(): void
|
||||
{
|
||||
$this->loginAsPlatformAdmin();
|
||||
|
||||
$this->get('/admin/platform-orders')
|
||||
->assertOk()
|
||||
->assertSee('查看无回执订单')
|
||||
->assertSee('查看有回执订单')
|
||||
->assertSee('receipt_status=none')
|
||||
->assertSee('receipt_status=has');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user