chore(admin): 平台订单列表行展示来源线索入口

This commit is contained in:
萝卜
2026-03-14 04:53:43 +00:00
parent 686c46a649
commit 7f09d57083
2 changed files with 108 additions and 1 deletions

View File

@@ -914,7 +914,22 @@
@php
$orderShowUrl = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]);
@endphp
<td><a href="{!! $orderShowUrl !!}">{{ $order->order_no }}</a></td>
<td>
<a href="{!! $orderShowUrl !!}">{{ $order->order_no }}</a>
@php
$rowLeadId = (int) (data_get($order->meta, 'platform_lead_id') ?? 0);
$rowLeadUrl = '';
if ($rowLeadId > 0) {
$rowLeadUrl = '/admin/platform-leads?' . \Illuminate\Support\Arr::query([
'lead_id' => $rowLeadId,
'back' => $selfWithoutBack,
]);
}
@endphp
@if($rowLeadId > 0)
<div class="muted muted-xs">线索:<a class="link" href="{!! $rowLeadUrl !!}">#{{ $rowLeadId }}</a></div>
@endif
</td>
<td>
@if($order->merchant)
<a href="{!! request()->fullUrlWithQuery(['merchant_id' => $order->merchant->id, 'page' => null]) !!}" class="link">{{ $order->merchant->name }}</a>