feat: 新增退款待确认目录 #857
@ -673,6 +673,7 @@ $navigation = [
|
||||
'pages' => [
|
||||
['slug' => 'jingxi-refund-data', 'title' => '京喜退款数据'],
|
||||
['slug' => 'non-jingxi-refund-data', 'title' => '售后(退货退款)'],
|
||||
['slug' => 'refund-pending', 'title' => '退款待确认'],
|
||||
],
|
||||
],
|
||||
[
|
||||
|
||||
@ -0,0 +1,55 @@
|
||||
<div class="upstream-data-page upstream-data-page--spaced" data-refund-page="pending">
|
||||
@include('business.pages.partials.upstream-data-styles')
|
||||
|
||||
<style>
|
||||
.refund-pending-empty {
|
||||
display: grid;
|
||||
min-height: 18rem;
|
||||
place-items: center;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.refund-pending-empty__content {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: .65rem;
|
||||
max-width: 30rem;
|
||||
}
|
||||
|
||||
.refund-pending-empty__icon {
|
||||
display: grid;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
place-items: center;
|
||||
border: 1px solid var(--vip-border, #d8d2c7);
|
||||
border-radius: 999px;
|
||||
background: var(--vip-content-accent-soft, #f7f0de);
|
||||
color: var(--vip-content-accent-dark, #856632);
|
||||
}
|
||||
|
||||
.refund-pending-empty h3 {
|
||||
margin: 0;
|
||||
color: var(--vip-content-ink, #171717);
|
||||
font-size: .875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.refund-pending-empty p {
|
||||
margin: 0;
|
||||
color: var(--vip-content-muted, #595959);
|
||||
font-size: .78rem;
|
||||
line-height: 1.7;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="upstream-data-table-panel">
|
||||
<div class="refund-pending-empty">
|
||||
<div class="refund-pending-empty__content">
|
||||
<span class="material-icons-outlined refund-pending-empty__icon" aria-hidden="true">pending_actions</span>
|
||||
<h3>退款待确认页面已创建</h3>
|
||||
<p>退款数据源接入后,待确认的退款记录将在这里展示。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -20,6 +20,7 @@ class NavigationTest extends FeatureTestCase
|
||||
->assertSee('/workspace/order-profit', false)
|
||||
->assertSeeText('订单利润')
|
||||
->assertSee('/workspace/refunds/non-jingxi-refund-data', false)
|
||||
->assertSee('/workspace/refunds/refund-pending', false)
|
||||
->assertSee('/workspace/product-inventory/normal-products', false)
|
||||
->assertSee('/workspace/product-inventory/monthly-weighted-average-price', false)
|
||||
->assertSee('/workspace/product-inventory/inventory-report', false);
|
||||
@ -36,6 +37,19 @@ class NavigationTest extends FeatureTestCase
|
||||
->assertSeeText('订单利润');
|
||||
}
|
||||
|
||||
public function testRefundPendingPageOpensBeforeDataIsConnected(): void
|
||||
{
|
||||
$this->loginAs()
|
||||
->get(route('business.pages.show', [
|
||||
'section' => 'refunds',
|
||||
'page' => 'refund-pending',
|
||||
]))
|
||||
->assertOk()
|
||||
->assertSeeText('退款待确认')
|
||||
->assertSeeText('退款待确认页面已创建')
|
||||
->assertSeeText('退款数据源接入后,待确认的退款记录将在这里展示。');
|
||||
}
|
||||
|
||||
public function testInventoryReportMenuPageIsAvailable(): void
|
||||
{
|
||||
$this->loginAs()
|
||||
@ -491,11 +505,11 @@ class NavigationTest extends FeatureTestCase
|
||||
$this->assertSame('退款数据', $refund['title']);
|
||||
$this->assertSame('assignment_return', $refund['icon']);
|
||||
$this->assertSame(
|
||||
['jingxi-refund-data', 'non-jingxi-refund-data'],
|
||||
['jingxi-refund-data', 'non-jingxi-refund-data', 'refund-pending'],
|
||||
array_column($refund['pages'], 'slug')
|
||||
);
|
||||
$this->assertSame(
|
||||
['京喜退款数据', '售后(退货退款)'],
|
||||
['京喜退款数据', '售后(退货退款)', '退款待确认'],
|
||||
array_column($refund['pages'], 'title')
|
||||
);
|
||||
$this->assertNotNull($financialOperations);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user