admin: 退款不一致行内提示链接直达追加退款面板

This commit is contained in:
萝卜
2026-03-17 21:21:14 +08:00
parent 545063fa42
commit 5164078f82
3 changed files with 3 additions and 3 deletions

View File

@@ -1752,7 +1752,7 @@
@endphp @endphp
@if($refundTotal > 0) @if($refundTotal > 0)
@if($isRefundInconsistent) @if($isRefundInconsistent)
@php $refundFixUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'refund-receipts'); @endphp @php $refundFixUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-refund-receipt'); @endphp
<a class="link text-danger" href="{!! $refundShowUrl !!}">¥{{ number_format($refundTotal, 2) }}</a> <a class="link text-danger" href="{!! $refundShowUrl !!}">¥{{ number_format($refundTotal, 2) }}</a>
<div class="muted text-danger muted-xs"> <div class="muted text-danger muted-xs">
疑似不一致 疑似不一致

View File

@@ -68,7 +68,7 @@ class AdminPlatformOrderRefundInconsistentRowHintFixLinkTest extends TestCase
$indexSelfWithoutBack = '/admin/platform-orders?refund_inconsistent=1'; $indexSelfWithoutBack = '/admin/platform-orders?refund_inconsistent=1';
$res->assertSee('/admin/platform-orders/' . $order->id . '?back=' . urlencode($indexSelfWithoutBack) . '#refund-receipts', false); $res->assertSee('/admin/platform-orders/' . $order->id . '?back=' . urlencode($indexSelfWithoutBack) . '#add-refund-receipt', false);
$res->assertSee('去核对退款'); $res->assertSee('去核对退款');
} }
} }

View File

@@ -66,6 +66,6 @@ class AdminPlatformOrderRefundInconsistentRowHintTest extends TestCase
->assertOk() ->assertOk()
->assertSee('PO_ROW_REFUND_INCONS_0001') ->assertSee('PO_ROW_REFUND_INCONS_0001')
->assertSee('疑似不一致') ->assertSee('疑似不一致')
->assertSee('#refund-receipts'); ->assertSee('#add-refund-receipt');
} }
} }