diff --git a/public/css/admin-components.css b/public/css/admin-components.css index 1559ce9..4f65a35 100644 --- a/public/css/admin-components.css +++ b/public/css/admin-components.css @@ -81,3 +81,7 @@ white-space:nowrap; word-break:normal; } + +/* 平台订单列表:精简视图(默认隐藏部分列,避免列表过长) */ +.platform-orders-table .col-optional{display:none;} +.platform-orders-table.is-full .col-optional{display:table-cell;} diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index daefe58..1c96fe6 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -58,6 +58,9 @@ // 线索上下文(从开通线索跳转而来):用于提示“当前范围已锁定线索”,以及生成一键清除入口 $incomingLeadId = (int) request()->query('lead_id', 0); + + // 列表视图:默认精简(避免列表过长);view=full 展开全部列 + $isFullView = ((string) request()->query('view', '') === 'full'); $clearLeadQuery = $currentQuery; unset($clearLeadQuery['lead_id'], $clearLeadQuery['page']); @@ -624,333 +627,329 @@ @endif -
| ID | 订单号 | 站点 | 套餐 | -订单类型 | +订单类型 | 订单状态 | 支付状态 | 应付金额 | @@ -994,15 +1002,15 @@同步状态 | 订阅号 | 订阅到期 | -同步时间 | -失败原因 | -最近批量同步 | -最近批量生效 | -回执总额 | -对账差额 | -回执数 | -退款数 | -退款总额 | +同步时间 | +失败原因 | +最近批量同步 | +最近批量生效 | +回执总额 | +对账差额 | +回执数 | +退款数 | +退款总额 | 操作 | {{ $order->order_type }} | +{{ $order->order_type }} |
{{ $statusLabels[$order->status] ?? $order->status }}
{{ $order->status }}
@@ -1088,8 +1096,8 @@
@endif
|
{{ optional($order->siteSubscription?->ends_at)->format('Y-m-d H:i:s') ?: '-' }} | -{{ data_get($order->meta, 'subscription_activation.synced_at') ?: '-' }} | -+ | {{ data_get($order->meta, 'subscription_activation.synced_at') ?: '-' }} | +@php $syncErrMsg = (string) (data_get($order->meta, 'subscription_activation_error.message') ?? ''); $syncErrTooLong = $syncErrMsg !== '' && mb_strlen($syncErrMsg) > $SYNC_ERROR_KEYWORD_LINK_MAX_LEN; @@ -1130,7 +1138,7 @@ @endif @endif | -+ | @php // 优先使用扁平字段 meta.batch_activation(便于筛选/统计,也避免遍历 audit) $batchActivation = (array) (data_get($order->meta, 'batch_activation', []) ?? []); @@ -1161,7 +1169,7 @@ - @endif | -+ | @php // 优先使用扁平字段 meta.batch_mark_activated(便于筛选/统计,也避免遍历 audit) $batchMarkActivated = (array) (data_get($order->meta, 'batch_mark_activated', []) ?? []); @@ -1192,7 +1200,7 @@ - @endif | -+ | @php $receiptTotal = (float) ($order->receipt_total ?? 0); @endphp @@ -1202,7 +1210,7 @@ - @endif | -+ | @php $rowDelta = (float) ($order->reconciliation_delta_row ?? 0); // 统一口径:按分取整判断是否对账不一致,避免浮点误差导致 0.01 边界不稳定 @@ -1221,7 +1229,7 @@ ¥0.00 @endif | -+ | @php $receipts = (array) (data_get($order->meta, 'payment_receipts', []) ?? []); $receiptSummaryCount = data_get($order->meta, 'payment_summary.count'); @@ -1236,7 +1244,7 @@ 0 @endif | -+ | @php $refunds = (array) (data_get($order->meta, 'refund_receipts', []) ?? []); $refundSummaryCount = data_get($order->meta, 'refund_summary.count'); @@ -1251,7 +1259,7 @@ 0 @endif | -+ | @php $refundTotal = (float) $order->refundTotal(); $isRefundInconsistent = (bool) $order->isRefundInconsistent(); |
|---|