From 7b0a63c468c73dade2403f01ef5bb993a0027d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 18 Mar 2026 19:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95:=20=E8=A1=A5=E9=BD=90?= =?UTF-8?q?=E6=91=98=E8=A6=81=E5=8C=BA=E9=80=80=E6=AC=BE=E5=9B=9E=E6=89=A7?= =?UTF-8?q?=E8=BE=85=E5=8A=A9=E9=93=BE=E6=8E=A5=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/admin/platform_orders/index.blade.php | 6 +++--- ...tRefundLinksShouldHaveDataRoleAndKeepBackTest.php | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 734d4f3..3954212 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -723,7 +723,7 @@
¥{{ number_format((float) ($summaryStats['total_refunded_amount'] ?? 0), 2) }}
基于 meta.refund_summary.total_amount(缺省回退汇总)
- 查看有退款订单 + 查看有退款订单
@@ -743,7 +743,7 @@
有回执口径:payment_summary.total_amount 存在或 payment_receipts 有记录
- 查看无回执订单 + 查看无回执订单
@@ -753,7 +753,7 @@
无 payment_summary 且无 payment_receipts
- 查看有回执订单 + 查看有回执订单
diff --git a/tests/Feature/AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepBackTest.php b/tests/Feature/AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepBackTest.php index c6acb3e..4898749 100644 --- a/tests/Feature/AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepBackTest.php +++ b/tests/Feature/AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepBackTest.php @@ -33,6 +33,10 @@ class AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepB 'role' => 'po-summary-link-refund-orders', 'expect' => ['refund_status' => 'has'], ], + [ + 'role' => 'po-summary-link-view-refund-orders', + 'expect' => ['refund_status' => 'has'], + ], [ 'role' => 'po-summary-link-no-refund-orders', 'expect' => ['refund_status' => 'none'], @@ -41,10 +45,18 @@ class AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepB 'role' => 'po-summary-link-receipt-orders', 'expect' => ['receipt_status' => 'has'], ], + [ + 'role' => 'po-summary-link-view-receipt-orders', + 'expect' => ['receipt_status' => 'has'], + ], [ 'role' => 'po-summary-link-no-receipt-orders', 'expect' => ['receipt_status' => 'none'], ], + [ + 'role' => 'po-summary-link-view-no-receipt-orders', + 'expect' => ['receipt_status' => 'none'], + ], ]; foreach ($cases as $c) {