From ed59e299115d8b4d8ba59e2b7777d5361569dc46 Mon Sep 17 00:00:00 2001
From: renshen <1005457301@qq.com>
Date: Wed, 4 Nov 2026 13:50:49 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=80=80=E6=AC=BE?=
=?UTF-8?q?=E5=BE=85=E7=A1=AE=E8=AE=A4=E7=9B=AE=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/business_navigation.php | 1 +
.../pages/refunds/refund-pending.blade.php | 55 +++++++++++++++++++
tests/Feature/Settings/NavigationTest.php | 18 +++++-
3 files changed, 72 insertions(+), 2 deletions(-)
create mode 100644 resources/views/business/pages/refunds/refund-pending.blade.php
diff --git a/config/business_navigation.php b/config/business_navigation.php
index 563831bb..169ef858 100644
--- a/config/business_navigation.php
+++ b/config/business_navigation.php
@@ -673,6 +673,7 @@ $navigation = [
'pages' => [
['slug' => 'jingxi-refund-data', 'title' => '京喜退款数据'],
['slug' => 'non-jingxi-refund-data', 'title' => '售后(退货退款)'],
+ ['slug' => 'refund-pending', 'title' => '退款待确认'],
],
],
[
diff --git a/resources/views/business/pages/refunds/refund-pending.blade.php b/resources/views/business/pages/refunds/refund-pending.blade.php
new file mode 100644
index 00000000..999b41f6
--- /dev/null
+++ b/resources/views/business/pages/refunds/refund-pending.blade.php
@@ -0,0 +1,55 @@
+
+ @include('business.pages.partials.upstream-data-styles')
+
+
+
+
+
+
+
pending_actions
+
退款待确认页面已创建
+
退款数据源接入后,待确认的退款记录将在这里展示。
+
+
+
+
diff --git a/tests/Feature/Settings/NavigationTest.php b/tests/Feature/Settings/NavigationTest.php
index 9d696eaa..506a28fa 100644
--- a/tests/Feature/Settings/NavigationTest.php
+++ b/tests/Feature/Settings/NavigationTest.php
@@ -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);
--
2.47.2