补充平台订单回执筛选治理提示
This commit is contained in:
@@ -415,11 +415,14 @@
|
|||||||
<option value="synced" @selected(($filters['sync_status'] ?? '') === 'synced')>已同步</option>
|
<option value="synced" @selected(($filters['sync_status'] ?? '') === 'synced')>已同步</option>
|
||||||
<option value="failed" @selected(($filters['sync_status'] ?? '') === 'failed')>同步失败</option>
|
<option value="failed" @selected(($filters['sync_status'] ?? '') === 'failed')>同步失败</option>
|
||||||
</select>
|
</select>
|
||||||
<select name="receipt_status">
|
<div>
|
||||||
<option value="">全部回执状态</option>
|
<select name="receipt_status">
|
||||||
<option value="has" @selected(($filters['receipt_status'] ?? '') === 'has')>有回执</option>
|
<option value="">全部回执状态</option>
|
||||||
<option value="none" @selected(($filters['receipt_status'] ?? '') === 'none')>无回执(广义)</option>
|
<option value="has" @selected(($filters['receipt_status'] ?? '') === 'has')>有回执</option>
|
||||||
</select>
|
<option value="none" @selected(($filters['receipt_status'] ?? '') === 'none')>无回执(广义)</option>
|
||||||
|
</select>
|
||||||
|
<div class="muted muted-xs mt-6">无回执(广义)会包含未支付订单;收费闭环治理请优先使用“已付无回执”快捷筛选。</div>
|
||||||
|
</div>
|
||||||
<select name="refund_status">
|
<select name="refund_status">
|
||||||
<option value="">全部退款状态</option>
|
<option value="">全部退款状态</option>
|
||||||
<option value="has" @selected(($filters['refund_status'] ?? '') === 'has')>有退款</option>
|
<option value="has" @selected(($filters['refund_status'] ?? '') === 'has')>有退款</option>
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderFiltersReceiptStatusShouldExplainBroadNoneAndPaidNoReceiptPriorityTest 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_platform_orders_filters_should_explain_broad_none_and_paid_no_receipt_priority(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$res = $this->get('/admin/platform-orders');
|
||||||
|
$res->assertOk();
|
||||||
|
|
||||||
|
$html = (string) $res->getContent();
|
||||||
|
$this->assertStringContainsString('无回执(广义)会包含未支付订单;收费闭环治理请优先使用“已付无回执”快捷筛选。', $html);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user