$_GET['status'] ?? '', 'order_no' => $_GET['order_no'] ?? '', 'user_id' => $_GET['user_id'] ?? '', 'supplier_id' => $_GET['supplier_id'] ?? '', ]; $orders = zjmf_order_list_all($page, 30, $filters); $suppliers = zjmf_supplier_list_all(); $action_labels = [ 'buy' => '购买', 'upgrade_config' => '配置升级', 'upgrade_product' => '产品升级', ]; $status_labels = [ 'pending' => '待处理', 'paid' => '已支付', 'opened' => '已完成', 'failed' => '失败', 'cancelled' => '已取消', ]; $status_classes = [ 'pending' => 'badge-secondary', 'paid' => 'badge-info', 'opened' => 'badge-success', 'failed' => 'badge-danger', 'cancelled' => 'badge-warning', ]; $title = $title ?? '订单管理'; ?>
| ID | 订单号 | 动作 | 供应商 | 用户ID | 商品 | 周期 | 金额 | 上游订单 | 上游主机 | 状态 | 下单时间 | 完成时间 | 备注/失败原因 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 暂无订单 | |||||||||||||
| = (int)$o['id'] ?> | = htmlspecialchars($o['order_no'], ENT_QUOTES) ?> | = htmlspecialchars($action_labels[$o['action']] ?? $o['action']) ?> | = htmlspecialchars($o['supplier_name'] ?: '-') ?> | = (int)$o['user_id'] ?> | = htmlspecialchars($o['product_name'], ENT_QUOTES) ?> | = htmlspecialchars($o['cycle_name'] ?: '-') ?> | ¥= zjmf_format_cents($o['amount_cents']) ?> | = (int)$o['up_order_id'] > 0 ? (int)$o['up_order_id'] : '-' ?> | = (int)$o['up_host_id'] > 0 ? (int)$o['up_host_id'] : '-' ?> | = htmlspecialchars($status_labels[$o['status']] ?? $o['status']) ?> | = htmlspecialchars($o['created_at']) ?> | = htmlspecialchars($o['opened_at'] ?: '-') ?> | = htmlspecialchars($o['remark'] ?: '-') ?> |