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 -
-

导出

-
-
-
导出
-
- - - - - - - - - - - - - - - - - - - - - - +
+
+
导出
+ + + + + + + + + + + + + + + + + + + + + + + - + -
- -
- -
- -
-
批量同步订阅
-
- @csrf - - - - - - - - - - - - - - - - - - - - - - - - - -
提示:建议先勾选筛选条件「只看可同步」,再执行批量同步。
-
- -
-
- -
- @csrf - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
批量标记支付并生效(BMPA)
-
- @csrf - - - - - - - - - - - - - - - - - - - - - - - - - -
提示:建议先筛选「待处理 + 未支付」后再执行,避免误操作。
-
- -
-
- -
- @csrf - - - - -
-
- -
-
批量仅标记为已生效
-
- @csrf - - - - - - - - - - - - - - - - - - - - - - - - - -
提示:建议先用快捷筛选「待生效」(已支付+待处理)锁定范围,再执行批量生效。
-
- -
-
- -
- @csrf - - - - -
-
- -
-
清理失败标记:同步订阅
-
- @csrf - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- -
- @csrf - - - - -
- -
-
-
- -
-
清理失败标记:批量 BMPA
-
- @csrf - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- -
- @csrf - - - - -
- -
-
-
+
+ +
+
+
+
批量同步订阅
+
+ @csrf + + + + + + + + + + + + + + + + + + + + + + + + + +
提示:建议先勾选筛选条件「只看可同步」,再执行批量同步。
+
+ +
+
+ +
+ @csrf + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
批量标记支付并生效(BMPA)
+
+ @csrf + + + + + + + + + + + + + + + + + + + + + + + + + +
提示:建议先筛选「待处理 + 未支付」后再执行,避免误操作。
+
+ +
+
+ +
+ @csrf + + + + +
+
+ +
+
批量仅标记为已生效
+
+ @csrf + + + + + + + + + + + + + + + + + + + + + + + + + +
提示:建议先用快捷筛选「待生效」(已支付+待处理)锁定范围,再执行批量生效。
+
+ +
+
+ +
+ @csrf + + + + +
+
+ +
+
清理失败标记:同步订阅
+
+ @csrf + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ @csrf + + + + +
+ +
+
+
+ +
+
清理失败标记:批量 BMPA
+
+ @csrf + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ @csrf + + + + +
+ +
+
+

平台订单列表

@@ -974,17 +973,26 @@ $createOrderUrl = '/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($createQuery); @endphp - 新建平台订单 + @php + $toggleViewUrl = $isFullView + ? $safeFullUrlWithQuery(['view' => null, 'page' => null]) + : $safeFullUrlWithQuery(['view' => 'full', 'page' => null]); + $toggleViewLabel = $isFullView ? '精简视图' : '展开全部列'; + @endphp +
- +
- + @@ -994,15 +1002,15 @@ - - - - - - - - - + + + + + + + + + @@ -1044,7 +1052,7 @@ {{ $planName }} @endif - + - - + - - - - - - -
ID 订单号 站点 套餐订单类型订单类型 订单状态 支付状态 应付金额同步状态 订阅号 订阅到期同步时间失败原因最近批量同步最近批量生效回执总额对账差额回执数退款数退款总额同步时间失败原因最近批量同步最近批量生效回执总额对账差额回执数退款数退款总额 操作
{{ $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();