From 1673022ea3b6b871e36051a3a13aac3b02f6b032 Mon Sep 17 00:00:00 2001
From: huangzhenbao <17818024429@163.com>
Date: Fri, 27 Feb 2026 19:42:30 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5=E8=AE=A2=E5=8D=95=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
layouts/admin/router/adminComponentMap.uts | 2 +-
layouts/admin/router/adminRoutes.uts | 4 +-
pages.json | 11 +-
pages/mall/admin/order-management.uvue | 63 --
pages/mall/admin/order/list.uvue | 481 ----------
.../components/OrderDetailDrawer.uvue | 414 +++++++++
.../admin/order/order-management/index.uvue | 833 +++++++++++++++++-
7 files changed, 1237 insertions(+), 571 deletions(-)
delete mode 100644 pages/mall/admin/order-management.uvue
delete mode 100644 pages/mall/admin/order/list.uvue
create mode 100644 pages/mall/admin/order/order-management/components/OrderDetailDrawer.uvue
diff --git a/layouts/admin/router/adminComponentMap.uts b/layouts/admin/router/adminComponentMap.uts
index 50849561..96504f7b 100644
--- a/layouts/admin/router/adminComponentMap.uts
+++ b/layouts/admin/router/adminComponentMap.uts
@@ -38,7 +38,7 @@ import ProductLabel from '@/pages/mall/admin/product/labels/index.uvue'
import ProductProtection from '@/pages/mall/admin/product/protection/index.uvue'
// --- 订单模块 ---
-import OrderList from '@/pages/mall/admin/order/list.uvue'
+import OrderList from '@/pages/mall/admin/order/order-management/index.uvue'
import OrderStatistic from '@/pages/mall/admin/order/order-statistics/index.uvue'
import OrderRefund from '@/pages/mall/admin/order/aftersales-order/index.uvue'
import OrderCashier from '@/pages/mall/admin/order/cashier-order/index.uvue'
diff --git a/layouts/admin/router/adminRoutes.uts b/layouts/admin/router/adminRoutes.uts
index 0e928ae5..97a25328 100644
--- a/layouts/admin/router/adminRoutes.uts
+++ b/layouts/admin/router/adminRoutes.uts
@@ -79,7 +79,7 @@ export const topMenus: TopMenu[] = [
id: 'order',
title: '订单',
icon: 'order',
- path: '/pages/mall/admin/order/list',
+ path: '/pages/mall/admin/order/order-management/index',
order: 3,
groups: [
{ id: 'order-manage', title: '', order: 1 }
@@ -400,7 +400,7 @@ export const routes: RouteRecord[] = [
{
id: 'order_list',
title: '订单管理',
- path: '/pages/mall/admin/order/list',
+ path: '/pages/mall/admin/order/order-management/index',
componentKey: 'OrderList',
parentId: 'order',
groupId: 'order-manage',
diff --git a/pages.json b/pages.json
index 18a5c762..f0297591 100644
--- a/pages.json
+++ b/pages.json
@@ -452,22 +452,15 @@
{
"root": "pages/mall/admin",
"pages": [
- {
- "path": "order-management",
- "style": {
- "navigationBarTitleText": "订单管理",
- "navigationStyle": "custom"
- }
- }
]
},
{
"root": "pages/mall/admin/order",
"pages": [
{
- "path": "list",
+ "path": "order-management/index",
"style": {
- "navigationBarTitleText": "订单列表",
+ "navigationBarTitleText": "订单管理",
"navigationStyle": "custom"
}
},
diff --git a/pages/mall/admin/order-management.uvue b/pages/mall/admin/order-management.uvue
deleted file mode 100644
index 42d41ee8..00000000
--- a/pages/mall/admin/order-management.uvue
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
- 页面参数(query)
- {{ params }}
-
-
-
-
-
-
-
-
-
diff --git a/pages/mall/admin/order/list.uvue b/pages/mall/admin/order/list.uvue
deleted file mode 100644
index 291d6708..00000000
--- a/pages/mall/admin/order/list.uvue
+++ /dev/null
@@ -1,481 +0,0 @@
-
-
-
-
-
-
-
- 订单类型:
-
- 全部订单
-
-
-
-
- 支付方式:
-
- 全部
-
-
-
-
- 创建时间:
-
-
- 开始日期 - 结束日期
-
-
-
- 订单搜索:
-
-
- 全部
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ tab.name }}
- ({{ tab.count }})
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 订单号 | 类型
- 商品信息
- 用户信息
- 实际支付
- 支付方式
- 支付时间
- 订单状态
- 操作
-
-
-
-
-
-
-
-
-
- {{ item.sn }}
- [{{ item.typeName }}]
- {{ item.cancelStatus }}
-
-
-
-
-
- {{ item.product.name }}
-
-
-
-
- {{ item.user.phone }} | {{ item.user.id }}
-
-
-
- {{ item.actualPrice }}
-
-
-
- {{ item.payMethod }}
-
-
-
- {{ item.payTime }}
-
-
-
- {{ item.statusName }}
-
-
-
-
- {{ item.primaryAction }}
-
- 更多
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/mall/admin/order/order-management/components/OrderDetailDrawer.uvue b/pages/mall/admin/order/order-management/components/OrderDetailDrawer.uvue
new file mode 100644
index 00000000..ed57e73b
--- /dev/null
+++ b/pages/mall/admin/order/order-management/components/OrderDetailDrawer.uvue
@@ -0,0 +1,414 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ orderInfo['typeName'] || '普通订单' }}
+ 订单号:{{ orderInfo['sn'] }}
+ {{ orderInfo['store_name'] }}
+
+
+
+ 订单状态
+ {{ orderInfo['statusName'] }}
+
+
+ 总金额
+ ¥ {{ orderInfo['actualPrice'] }}
+
+
+ 已支付
+ ¥ {{ orderInfo['paidAmount'] }}
+
+
+ 支付方式
+ {{ orderInfo['payMethod'] }}
+
+
+ 配送人员
+ {{ orderInfo['delivery_name'] }}
+
+
+
+
+
+
+
+
+ {{ tab }}
+
+
+
+
+
+
+
+
+
+
+ 用户信息
+
+
+
+ 用户名称:
+ {{ orderInfo['user']['name'] }}
+
+
+ 绑定电话:
+ {{ orderInfo['user']['phone'] }}
+
+
+
+
+
+
+
+ 收货信息
+
+
+
+ 收货人:
+ {{ orderInfo['real_name'] || orderInfo['user']['name'] }}
+
+
+ 收货电话:
+ {{ orderInfo['user_phone'] || orderInfo['user']['phone'] }}
+
+
+ 收货地址:
+ {{ orderInfo['user_address'] || '暂无地址信息' }}
+
+
+
+
+
+
+
+ 订单信息
+
+
+
+ 创建时间:
+ {{ orderInfo['created_at'] || '--' }}
+
+
+ 商品总数:
+ {{ orderInfo['total_num'] || '0' }}
+
+
+ 产品金额:
+ ¥ {{ orderInfo['total_price'] || '0.00' }}
+
+
+ 运费:
+ ¥ {{ orderInfo['shipping_fee'] || '0.00' }}
+
+
+ 折扣金额:
+ - ¥ {{ orderInfo['coupon_price'] || '0.00' }}
+
+
+ 总金额:
+ ¥ {{ orderInfo['actualPrice'] }}
+
+
+ 支付金额:
+ ¥ {{ orderInfo['paidAmount'] }}
+
+
+
+
+
+
+
+ 买家留言
+
+
+
+ {{ orderInfo['mark'] || '-' }}
+
+
+
+
+
+
+
+ 订单备注
+
+
+
+ {{ orderInfo['remark'] || '-' }}
+
+
+
+
+
+
+
+
+
+ 商品信息
+ 规格
+ 单价
+ 数量
+ 小计
+
+
+
+
+
+ {{ p['name'] }}
+
+
+ {{ p['sku_info'] || '-' }}
+
+ ¥{{ p['price'] }}
+ {{ p['quantity'] }}
+ ¥{{ (parseFloat(p['price'] as string) * parseInt(p['quantity'] as string)).toFixed(2) }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ log.title }}
+ {{ log.time }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/mall/admin/order/order-management/index.uvue b/pages/mall/admin/order/order-management/index.uvue
index 84a1c86b..7636c507 100644
--- a/pages/mall/admin/order/order-management/index.uvue
+++ b/pages/mall/admin/order/order-management/index.uvue
@@ -1,25 +1,828 @@
-
-
-
+
+
+
+
+