feat(platform_orders): add cross links between receipt summary cards

This commit is contained in:
萝卜
2026-03-14 21:43:05 +00:00
parent 6e48c47288
commit fe6e8d5d0b
2 changed files with 39 additions and 0 deletions

View File

@@ -358,6 +358,9 @@
/ ¥{{ number_format((float) ($summaryStats['total_receipt_amount'] ?? 0), 2) }} / ¥{{ number_format((float) ($summaryStats['total_receipt_amount'] ?? 0), 2) }}
</div> </div>
<div class="muted muted-xs">有回执口径payment_summary.total_amount 存在或 payment_receipts 有记录</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>
<div class="card"> <div class="card">
<h3>无回执订单</h3> <h3>无回执订单</h3>
@@ -365,6 +368,9 @@
<a class="link" href="{!! $safeFullUrlWithQuery(['receipt_status' => 'none', 'page' => null]) !!}">{{ $summaryStats['no_receipt_orders'] ?? 0 }}</a> <a class="link" href="{!! $safeFullUrlWithQuery(['receipt_status' => 'none', 'page' => null]) !!}">{{ $summaryStats['no_receipt_orders'] ?? 0 }}</a>
</div> </div>
<div class="muted muted-xs"> payment_summary 且无 payment_receipts</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>
<div class="card"> <div class="card">
<h3>治理顺序建议SOP</h3> <h3>治理顺序建议SOP</h3>

View File

@@ -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');
}
}