订单管理.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>叁强鲜配 - 订单管理原型图</title>
  7. <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
  8. <style>
  9. * { margin: 0; padding: 0; box-sizing: border-box; }
  10. body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #303133; }
  11. .topbar { height: 60px; background: linear-gradient(135deg, #1989fa 0%, #07c160 100%); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: white; }
  12. .topbar-logo h1 { font-size: 22px; font-weight: 600; }
  13. .topbar-logo span { font-size: 13px; opacity: 0.85; }
  14. .topbar-user { display: flex; align-items: center; gap: 16px; }
  15. .main-container { display: flex; min-height: calc(100vh - 60px); }
  16. .sidebar { width: 220px; background: #fff; border-right: 1px solid #e4e7ed; padding: 16px 0; }
  17. .menu-item { padding: 14px 24px; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #606266; font-size: 14px; }
  18. .menu-item:hover { background: #f5f7fa; color: #1989fa; }
  19. .menu-item.active { background: #ecf5ff; color: #1989fa; border-right: 3px solid #1989fa; }
  20. .content { flex: 1; padding: 24px; }
  21. .breadcrumb { font-size: 13px; color: #909399; margin-bottom: 8px; }
  22. .card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  23. .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
  24. .card-title { font-size: 16px; font-weight: 600; }
  25. .status-tag { padding: 4px 12px; border-radius: 4px; font-size: 12px; }
  26. .status-tag.primary { background: #ecf5ff; color: #1989fa; }
  27. .status-tag.success { background: #f0f9eb; color: #07c160; }
  28. .status-tag.warning { background: #fdf6ec; color: #ff976a; }
  29. .status-tag.danger { background: #fef0f0; color: #ee0a24; }
  30. .status-tag.info { background: #f4f4f5; color: #909399; }
  31. .form-section-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #1989fa; }
  32. .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
  33. .page-nav { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
  34. .order-header { display: flex; gap: 16px; margin-bottom: 16px; }
  35. .order-info { flex: 1; background: #f9f9f9; border-radius: 8px; padding: 16px; }
  36. .order-info h4 { font-size: 14px; color: #909399; margin-bottom: 8px; }
  37. .order-info p { font-size: 16px; font-weight: 600; color: #303133; }
  38. .order-items { margin-top: 20px; }
  39. .order-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
  40. .order-item:last-child { border-bottom: none; }
  41. .item-img { width: 60px; height: 60px; background: #eee; border-radius: 8px; margin-right: 12px; }
  42. .item-info { flex: 1; }
  43. .item-info h4 { font-size: 14px; margin-bottom: 4px; }
  44. .item-info p { font-size: 12px; color: #909399; }
  45. .item-price { text-align: right; }
  46. .item-price .price { font-size: 16px; font-weight: 600; color: #ee0a24; }
  47. .item-price .quantity { font-size: 12px; color: #909399; }
  48. .order-total { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 16px 0; border-top: 2px solid #1989fa; margin-top: 16px; }
  49. .order-total .label { color: #606266; }
  50. .order-total .amount { font-size: 24px; font-weight: 600; color: #ee0a24; }
  51. .action-bar { display: flex; gap: 12px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid #eee; }
  52. .timeline { padding: 20px 0; }
  53. .timeline-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
  54. .timeline-dot { width: 12px; height: 12px; background: #1989fa; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
  55. .timeline-line { position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: #e4e7ed; }
  56. .timeline-content h4 { font-size: 14px; color: #303133; margin-bottom: 4px; }
  57. .timeline-content p { font-size: 13px; color: #909399; }
  58. .tabs { display: flex; gap: 4px; background: #f5f7fa; padding: 4px; border-radius: 8px; margin-bottom: 20px; }
  59. .tab { padding: 10px 20px; cursor: pointer; border-radius: 6px; font-size: 14px; color: #606266; }
  60. .tab.active { background: #fff; color: #1989fa; font-weight: 500; }
  61. </style>
  62. </head>
  63. <body>
  64. <!-- 顶部导航 -->
  65. <div class="topbar">
  66. <div class="topbar-logo">
  67. <h1>叁强鲜配</h1>
  68. <span>运营管理后台</span>
  69. </div>
  70. <div class="topbar-user">
  71. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  72. <span>管理员</span>
  73. </div>
  74. </div>
  75. <div class="main-container">
  76. <!-- 左侧菜单 -->
  77. <div class="sidebar">
  78. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  79. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  80. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  81. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  82. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  83. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  84. <div class="menu-item"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  85. <div class="menu-item active"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  86. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  87. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  88. </div>
  89. <!-- 内容区 -->
  90. <div class="content">
  91. <div class="breadcrumb">订单管理 / 订单列表</div>
  92. <!-- 搜索筛选 -->
  93. <div class="card">
  94. <div class="form-section-title">筛选条件</div>
  95. <div class="form-row">
  96. <el-input placeholder="订单编号" style="width:200px;" />
  97. <el-select placeholder="订单状态" style="width:150px;">
  98. <el-option label="全部状态" value="" />
  99. <el-option label="待支付" value="pending_payment" />
  100. <el-option label="待分配配送" value="pending_delivery" />
  101. <el-option label="配送中" value="delivering" />
  102. <el-option label="部分送达" value="partial_delivered" />
  103. <el-option label="待确认收货" value="pending_confirm" />
  104. <el-option label="已完成" value="completed" />
  105. <el-option label="已取消" value="cancelled" />
  106. </el-select>
  107. <el-select placeholder="所属区域" style="width:150px;">
  108. <el-option label="全部区域" value="" />
  109. <el-option label="城东区域" value="CD" />
  110. <el-option label="城西区域" value="CX" />
  111. <el-option label="城南区域" value="CN" />
  112. </el-select>
  113. <el-date-picker type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width:240px;" />
  114. <el-button type="primary">搜索</el-button>
  115. <el-button>重置</el-button>
  116. </div>
  117. </div>
  118. <!-- 订单列表 -->
  119. <div class="card">
  120. <div class="card-header">
  121. <span class="card-title">订单列表</span>
  122. <div style="display:flex;gap:12px;">
  123. <el-button type="success">导出待结算</el-button>
  124. <el-button type="warning">导出线下结算</el-button>
  125. </div>
  126. </div>
  127. <div class="tabs">
  128. <div class="tab active">全部</div>
  129. <div class="tab">待支付</div>
  130. <div class="tab">待分配配送</div>
  131. <div class="tab">配送中</div>
  132. <div class="tab">待确认收货</div>
  133. <div class="tab">已完成</div>
  134. <div class="tab">已取消</div>
  135. </div>
  136. <el-table :data="orderList" style="width:100%">
  137. <el-table-column prop="orderNo" label="订单编号" width="180" />
  138. <el-table-column prop="clientName" label="客户名称" width="140" />
  139. <el-table-column prop="region" label="区域" width="80" />
  140. <el-table-column prop="itemCount" label="商品数" width="80" align="center" />
  141. <el-table-column prop="totalAmount" label="订单金额" width="110">
  142. <template #default="{row}">
  143. <span style="color:#ee0a24;font-weight:600;">¥{{row.totalAmount}}</span>
  144. </template>
  145. </el-table-column>
  146. <el-table-column prop="paymentMethod" label="支付方式" width="90">
  147. <template #default="{row}">
  148. <span :class="'status-tag '+(row.paymentMethod=='wechat'?'primary':'info')">
  149. {{row.paymentMethod=='wechat'?'微信支付':'线下结算'}}
  150. </span>
  151. </template>
  152. </el-table-column>
  153. <el-table-column prop="status" label="订单状态" width="120">
  154. <template #default="{row}">
  155. <span :class="'status-tag '+row.statusClass">{{row.statusText}}</span>
  156. </template>
  157. </el-table-column>
  158. <el-table-column prop="createTime" label="下单时间" width="150" />
  159. <el-table-column label="操作" width="150" fixed="right">
  160. <template #default>
  161. <el-button type="primary" link>查看</el-button>
  162. <el-button type="success" link>分配</el-button>
  163. <el-button type="warning" link>调整</el-button>
  164. </template>
  165. </el-table-column>
  166. </el-table>
  167. <div class="page-nav">
  168. <el-pagination background layout="prev, pager, next" :total="100" />
  169. </div>
  170. </div>
  171. <!-- 订单详情弹窗预览 -->
  172. <div class="card">
  173. <div class="form-section-title">订单详情预览</div>
  174. <div class="order-header">
  175. <div class="order-info">
  176. <h4>订单编号</h4>
  177. <p>ORD202603190001</p>
  178. </div>
  179. <div class="order-info">
  180. <h4>订单状态</h4>
  181. <p><span class="status-tag primary">待分配配送</span></p>
  182. </div>
  183. <div class="order-info">
  184. <h4>下单客户</h4>
  185. <p>XX餐厅</p>
  186. </div>
  187. <div class="order-info">
  188. <h4>所属区域</h4>
  189. <p>城东区域</p>
  190. </div>
  191. </div>
  192. <div class="order-header">
  193. <div class="order-info">
  194. <h4>联系人</h4>
  195. <p>张三</p>
  196. </div>
  197. <div class="order-info">
  198. <h4>联系电话</h4>
  199. <p>13800138001</p>
  200. </div>
  201. <div class="order-info">
  202. <h4>配送地址</h4>
  203. <p>城东区XX路XX号</p>
  204. </div>
  205. <div class="order-info">
  206. <h4>支付方式</h4>
  207. <p>微信支付</p>
  208. </div>
  209. </div>
  210. <div class="order-items">
  211. <div class="form-section-title">商品明细</div>
  212. <div class="order-item">
  213. <div class="item-img"></div>
  214. <div class="item-info">
  215. <h4>新鲜猪肉</h4>
  216. <p>单位:斤</p>
  217. </div>
  218. <div class="item-price">
  219. <div class="price">¥25.00</div>
  220. <div class="quantity">x 10斤</div>
  221. </div>
  222. </div>
  223. <div class="order-item">
  224. <div class="item-img"></div>
  225. <div class="item-info">
  226. <h4>新鲜蔬菜</h4>
  227. <p>单位:斤</p>
  228. </div>
  229. <div class="item-price">
  230. <div class="price">¥8.00</div>
  231. <div class="quantity">x 20斤</div>
  232. </div>
  233. </div>
  234. <div class="order-item">
  235. <div class="item-img"></div>
  236. <div class="item-info">
  237. <h4>新鲜水果</h4>
  238. <p>单位:斤</p>
  239. </div>
  240. <div class="item-price">
  241. <div class="price">¥12.00</div>
  242. <div class="quantity">x 15斤</div>
  243. </div>
  244. </div>
  245. </div>
  246. <div class="order-total">
  247. <span class="label">订单总金额:</span>
  248. <span class="amount">¥710.00</span>
  249. </div>
  250. <div class="form-section-title" style="margin-top:24px;">状态变更记录</div>
  251. <div class="timeline">
  252. <div class="timeline-item">
  253. <div class="timeline-dot"></div>
  254. <div class="timeline-content">
  255. <h4>订单已创建</h4>
  256. <p>2026-03-19 10:23:45 | 客户 XX餐厅</p>
  257. </div>
  258. </div>
  259. <div class="timeline-item">
  260. <div class="timeline-dot"></div>
  261. <div class="timeline-content">
  262. <h4>订单已支付</h4>
  263. <p>2026-03-19 10:25:30 | 微信支付成功</p>
  264. </div>
  265. </div>
  266. </div>
  267. <div class="action-bar">
  268. <el-button type="primary">分配配送员</el-button>
  269. <el-button type="warning">调整订单</el-button>
  270. <el-button type="danger">取消订单</el-button>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  276. <script src="https://unpkg.com/element-plus"></script>
  277. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  278. <script>
  279. const { createApp, ref } = Vue;
  280. const app = createApp({
  281. setup() {
  282. const orderList = ref([
  283. { orderNo: 'ORD202603190001', clientName: 'XX餐厅', region: '城东', itemCount: 5, totalAmount: '710.00', paymentMethod: 'wechat', statusClass: 'primary', statusText: '待分配配送', createTime: '2026-03-19 10:23' },
  284. { orderNo: 'ORD202603190002', clientName: 'YY超市', region: '城西', itemCount: 8, totalAmount: '1,280.00', paymentMethod: 'offline', statusClass: 'warning', statusText: '待支付', createTime: '2026-03-19 09:15' },
  285. { orderNo: 'ORD202603190003', clientName: 'ZZ食堂', region: '城南', itemCount: 3, totalAmount: '456.00', paymentMethod: 'wechat', statusClass: 'info', statusText: '配送中', createTime: '2026-03-18 16:45' },
  286. { orderNo: 'ORD202603180056', clientName: 'AA饭店', region: '城东', itemCount: 6, totalAmount: '890.00', paymentMethod: 'wechat', statusClass: 'success', statusText: '已完成', createTime: '2026-03-18 14:20' },
  287. ]);
  288. return { orderList };
  289. }
  290. });
  291. app.use(ElementPlus);
  292. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  293. app.component(key, component);
  294. }
  295. app.mount('#app');
  296. </script>
  297. </body>
  298. </html>