From 78a3ab870d653b8e9f3608690f0bbfac32dde6dc Mon Sep 17 00:00:00 2001
From: aaron <>
Date: Tue, 28 Jan 2025 00:47:30 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E9=80=81=E8=AE=A2?=
=?UTF-8?q?=E5=8D=95=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layouts/BasicLayout.vue | 104 +++++++++-
src/router/index.js | 11 ++
src/views/order/DeliveryList.vue | 325 +++++++++++++++++++++++++++++++
3 files changed, 439 insertions(+), 1 deletion(-)
create mode 100644 src/views/order/DeliveryList.vue
diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue
index 699190a..a821e84 100644
--- a/src/layouts/BasicLayout.vue
+++ b/src/layouts/BasicLayout.vue
@@ -43,6 +43,16 @@
+
+
+
+
+ 订单管理
+
+ 配送订单
+
+
+
@@ -120,6 +130,7 @@ import {
DashboardOutlined,
ShopOutlined,
SettingOutlined,
+ ShoppingOutlined,
} from '@ant-design/icons-vue'
import { useRouter } from 'vue-router'
@@ -135,6 +146,7 @@ export default defineComponent({
DashboardOutlined,
ShopOutlined,
SettingOutlined,
+ ShoppingOutlined,
},
setup() {
const router = useRouter()
@@ -156,12 +168,102 @@ export default defineComponent({
router.push('/login')
}
+ const menuItems = ref([
+ {
+ key: 'dashboard',
+ icon: () => h(DashboardOutlined),
+ title: '工作台',
+ path: '/dashboard'
+ },
+ {
+ key: 'user',
+ icon: () => h(UserOutlined),
+ title: '用户管理',
+ children: [
+ {
+ key: 'user-list',
+ title: '用户列表',
+ path: '/user/list'
+ }
+ ]
+ },
+ {
+ key: 'community',
+ icon: () => h(HomeOutlined),
+ title: '小区管理',
+ children: [
+ {
+ key: 'community-list',
+ title: '小区列表',
+ path: '/community/list'
+ },
+ {
+ key: 'building-list',
+ title: '楼栋列表',
+ path: '/community/building'
+ },
+ {
+ key: 'station-list',
+ title: '驿站列表',
+ path: '/community/station'
+ }
+ ]
+ },
+ {
+ key: 'order',
+ icon: () => h(ShoppingOutlined),
+ title: '订单管理',
+ children: [
+ {
+ key: 'order-delivery',
+ title: '配送订单',
+ path: '/order/delivery'
+ }
+ ]
+ },
+ {
+ key: 'merchant',
+ icon: () => h(ShopOutlined),
+ title: '商家管理',
+ children: [
+ {
+ key: 'merchant-list',
+ title: '商家列表',
+ path: '/merchant/list'
+ },
+ {
+ key: 'merchant-categories',
+ title: '商家分类',
+ path: '/merchant/categories'
+ },
+ {
+ key: 'merchant-products',
+ title: '商品列表',
+ path: '/merchant/products'
+ }
+ ]
+ },
+ {
+ key: 'system',
+ icon: () => h(SettingOutlined),
+ title: '系统管理',
+ children: [
+ {
+ key: 'system-logs',
+ title: '日志查询',
+ path: '/system/logs'
+ }
+ ]
+ }
+ ])
+
return {
collapsed,
selectedKeys,
openKeys,
userInfo,
- handleLogout
+ handleLogout,
+ menuItems
}
},
})
diff --git a/src/router/index.js b/src/router/index.js
index a194d3a..f908cf1 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -78,6 +78,17 @@ const routes = [
meta: { title: '日志查询' }
}
]
+ },
+ {
+ path: '/order',
+ component: BasicLayout,
+ children: [
+ {
+ path: 'delivery',
+ component: () => import('@/views/order/DeliveryList.vue'),
+ meta: { title: '配送订单' }
+ }
+ ]
}
]
diff --git a/src/views/order/DeliveryList.vue b/src/views/order/DeliveryList.vue
new file mode 100644
index 0000000..b95b0a4
--- /dev/null
+++ b/src/views/order/DeliveryList.vue
@@ -0,0 +1,325 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 已创建
+ 未支付
+ 已接单
+ 配送中
+ 已完成
+ 已取消
+
+
+
+
+
+
+ 查询
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+ {{ getStatusText(record.status) }}
+
+
+
+
+ ¥{{ record[column.dataIndex] }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file