配送管理.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. <link rel="stylesheet" href="https://unpkg.com/@element-plus/icons-vue/dist/index.css">
  9. <style>
  10. * { margin: 0; padding: 0; box-sizing: border-box; }
  11. body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #303133; }
  12. .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; }
  13. .topbar-logo h1 { font-size: 22px; font-weight: 600; }
  14. .topbar-logo span { font-size: 13px; opacity: 0.85; }
  15. .topbar-user { display: flex; align-items: center; gap: 16px; }
  16. .main-container { display: flex; min-height: calc(100vh - 60px); }
  17. .sidebar { width: 220px; background: #fff; border-right: 1px solid #e4e7ed; padding: 16px 0; }
  18. .menu-item { padding: 14px 24px; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #606266; font-size: 14px; }
  19. .menu-item:hover { background: #f5f7fa; color: #1989fa; }
  20. .menu-item.active { background: #ecf5ff; color: #1989fa; border-right: 3px solid #1989fa; }
  21. .content { flex: 1; padding: 24px; }
  22. .breadcrumb { font-size: 13px; color: #909399; margin-bottom: 8px; }
  23. .card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  24. .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
  25. .card-title { font-size: 16px; font-weight: 600; }
  26. .status-tag { padding: 4px 12px; border-radius: 4px; font-size: 12px; }
  27. .status-tag.primary { background: #ecf5ff; color: #1989fa; }
  28. .status-tag.success { background: #f0f9eb; color: #07c160; }
  29. .status-tag.warning { background: #fdf6ec; color: #ff976a; }
  30. .status-tag.danger { background: #fef0f0; color: #ee0a24; }
  31. .status-tag.info { background: #f4f4f5; color: #909399; }
  32. .form-section-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #1989fa; }
  33. .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
  34. .page-nav { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
  35. .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
  36. .stats-card { background: #fff; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  37. .stats-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
  38. .stats-icon.warning { background: #fdf6ec; color: #ff976a; }
  39. .stats-icon.primary { background: #ecf5ff; color: #1989fa; }
  40. .stats-icon.info { background: #f4f4f5; color: #909399; }
  41. .stats-icon.success { background: #f0f9eb; color: #07c160; }
  42. .stats-info h3 { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
  43. .stats-info p { font-size: 13px; color: #909399; }
  44. .warning-card { background: #fff1f0; border: 1px solid #ffccc7; border-radius: 8px; padding: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
  45. .warning-icon { color: #ee0a24; font-size: 20px; }
  46. .warning-text { flex: 1; }
  47. .warning-text h4 { font-size: 14px; color: #303133; margin-bottom: 4px; }
  48. .warning-text p { font-size: 13px; color: #ff4d4f; }
  49. </style>
  50. </head>
  51. <body>
  52. <!-- 顶部导航 -->
  53. <div class="topbar">
  54. <div class="topbar-logo">
  55. <h1>叁强鲜配</h1>
  56. <span>运营管理后台</span>
  57. </div>
  58. <div class="topbar-user">
  59. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  60. <span>管理员</span>
  61. </div>
  62. </div>
  63. <div class="main-container">
  64. <!-- 左侧菜单 -->
  65. <div class="sidebar">
  66. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  67. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  68. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  69. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  70. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  71. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  72. <div class="menu-item"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  73. <div class="menu-item"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  74. <div class="menu-item active"><el-icon><Van /></el-icon><span>配送管理</span></div>
  75. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  76. </div>
  77. <!-- 内容区 -->
  78. <div class="content">
  79. <div class="breadcrumb">配送管理 / 配送任务列表</div>
  80. <!-- 统计 -->
  81. <div class="stats-grid">
  82. <div class="stats-card">
  83. <div class="stats-icon warning">
  84. <el-icon><Clock /></el-icon>
  85. </div>
  86. <div class="stats-info">
  87. <h3>12</h3>
  88. <p>待取货</p>
  89. </div>
  90. </div>
  91. <div class="stats-card">
  92. <div class="stats-icon primary">
  93. <el-icon><Van /></el-icon>
  94. </div>
  95. <div class="stats-info">
  96. <h3>28</h3>
  97. <p>配送中</p>
  98. </div>
  99. </div>
  100. <div class="stats-card">
  101. <div class="stats-icon info">
  102. <el-icon><Document /></el-icon>
  103. </div>
  104. <div class="stats-info">
  105. <h3>156</h3>
  106. <p>已完成</p>
  107. </div>
  108. </div>
  109. <div class="stats-card">
  110. <div class="stats-icon success">
  111. <el-icon><CircleCheck /></el-icon>
  112. </div>
  113. <div class="stats-info">
  114. <h3>3</h3>
  115. <p>即将过期</p>
  116. </div>
  117. </div>
  118. </div>
  119. <!-- 预警提示 -->
  120. <div class="warning-card">
  121. <div class="warning-icon">
  122. <el-icon><WarningFilled /></el-icon>
  123. </div>
  124. <div class="warning-text">
  125. <h4>配送时效预警提醒</h4>
  126. <p>您有 3 个配送单将在 1 小时内过期,请及时处理!</p>
  127. </div>
  128. <el-button type="danger" size="small">查看详情</el-button>
  129. </div>
  130. <!-- 搜索筛选 -->
  131. <div class="card">
  132. <div class="form-section-title">筛选条件</div>
  133. <div class="form-row">
  134. <el-input placeholder="配送单号搜索" style="width:200px;" />
  135. <el-select placeholder="所属区域" style="width:150px;">
  136. <el-option label="全部区域" value="" />
  137. <el-option label="城东区域" value="CD" />
  138. <el-option label="城西区域" value="CX" />
  139. <el-option label="城南区域" value="CN" />
  140. </el-select>
  141. <el-select placeholder="配送状态" style="width:140px;">
  142. <el-option label="全部状态" value="" />
  143. <el-option label="待取货" value="pending" />
  144. <el-option label="取货中" value="picking" />
  145. <el-option label="配送中" value="delivering" />
  146. <el-option label="已完成" value="completed" />
  147. <el-option label="已取消" value="cancelled" />
  148. </el-select>
  149. <el-date-picker type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width:240px;" />
  150. <el-button type="primary">搜索</el-button>
  151. <el-button>重置</el-button>
  152. </div>
  153. </div>
  154. <!-- 配送任务列表 -->
  155. <div class="card">
  156. <div class="card-header">
  157. <span class="card-title">配送任务列表</span>
  158. </div>
  159. <el-table :data="deliveryList" style="width:100%">
  160. <el-table-column prop="taskNo" label="配送单号" width="180" />
  161. <el-table-column prop="orderNo" label="订单编号" width="180" />
  162. <el-table-column prop="supplierName" label="供应商" width="120" />
  163. <el-table-column prop="clientName" label="客户" width="120" />
  164. <el-table-column prop="region" label="区域" width="80" />
  165. <el-table-column prop="deliverName" label="配送员" width="100" />
  166. <el-table-column prop="status" label="状态" width="100">
  167. <template #default="{row}">
  168. <span :class="'status-tag '+row.statusClass">{{row.statusText}}</span>
  169. </template>
  170. </el-table-column>
  171. <el-table-column prop="createTime" label="创建时间" width="150" />
  172. <el-table-column label="操作" width="150">
  173. <template #default>
  174. <el-button type="primary" link>查看</el-button>
  175. <el-button type="success" link>分配</el-button>
  176. </template>
  177. </el-table-column>
  178. </el-table>
  179. <div class="page-nav">
  180. <el-pagination background layout="prev, pager, next" :total="100" />
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  186. <script src="https://unpkg.com/element-plus"></script>
  187. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  188. <script>
  189. const { createApp, ref } = Vue;
  190. const app = createApp({
  191. setup() {
  192. const deliveryList = ref([
  193. { taskNo: 'DLV20260319001', orderNo: 'ORD202603190001', supplierName: 'XX供应商', clientName: 'XX餐厅', region: '城东', deliverName: '王强', status: 'pending', statusClass: 'warning', statusText: '待取货', createTime: '2026-03-19 08:30' },
  194. { taskNo: 'DLV20260319002', orderNo: 'ORD202603190002', supplierName: 'YY供应商', clientName: 'YY超市', region: '城东', deliverName: '李明', status: 'picking', statusClass: 'primary', statusText: '取货中', createTime: '2026-03-19 08:45' },
  195. { taskNo: 'DLV20260319003', orderNo: 'ORD202603190003', supplierName: 'XX供应商', clientName: 'ZZ食堂', region: '城西', deliverName: '张伟', status: 'delivering', statusClass: 'info', statusText: '配送中', createTime: '2026-03-19 09:00' },
  196. { taskNo: 'DLV20260318056', orderNo: 'ORD202603180056', supplierName: 'YY供应商', clientName: 'AA饭店', region: '城东', deliverName: '王强', status: 'completed', statusClass: 'success', statusText: '已完成', createTime: '2026-03-18 14:00' },
  197. { taskNo: 'DLV20260318055', orderNo: 'ORD202603180055', supplierName: 'ZZ供应商', clientName: 'BB商店', region: '城南', deliverName: '赵强', status: 'completed', statusClass: 'success', statusText: '已完成', createTime: '2026-03-18 15:30' },
  198. ]);
  199. return { deliveryList };
  200. }
  201. });
  202. app.use(ElementPlus);
  203. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  204. app.component(key, component);
  205. }
  206. app.mount('#app');
  207. </script>
  208. </body>
  209. </html>