fix(admin): 平台订单列表新建入口保留 lead_id 上下文

This commit is contained in:
萝卜
2026-03-14 04:59:32 +00:00
parent 7f09d57083
commit 02b45830c7
2 changed files with 52 additions and 0 deletions

View File

@@ -873,6 +873,10 @@
if (trim((string) ($filters['site_subscription_id'] ?? '')) !== '') {
$createQuery['site_subscription_id'] = (int) ($filters['site_subscription_id'] ?? 0);
}
// 线索联动:若当前列表已按 lead_id 锁定,则新建订单也应带上 lead_id维持闭环追溯
if (trim((string) ($filters['lead_id'] ?? '')) !== '') {
$createQuery['lead_id'] = (int) ($filters['lead_id'] ?? 0);
}
$createOrderUrl = '/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($createQuery);
@endphp