价格管理.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. .version-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; border: 2px solid #eee; cursor: pointer; }
  36. .version-card:hover { border-color: #1989fa; }
  37. .version-card.active { border-color: #07c160; background: #f6ffed; }
  38. .version-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  39. .version-title { font-size: 16px; font-weight: 600; }
  40. .version-info { display: flex; gap: 20px; font-size: 13px; color: #909399; }
  41. .price-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
  42. .price-table th, .price-table td { padding: 10px 12px; border: 1px solid #eee; text-align: center; font-size: 13px; }
  43. .price-table th { background: #f9f9f9; font-weight: 600; color: #606266; }
  44. .price-table .price { color: #07c160; font-weight: 600; }
  45. </style>
  46. </head>
  47. <body>
  48. <!-- 顶部导航 -->
  49. <div class="topbar">
  50. <div class="topbar-logo">
  51. <h1>叁强鲜配</h1>
  52. <span>运营管理后台</span>
  53. </div>
  54. <div class="topbar-user">
  55. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  56. <span>管理员</span>
  57. </div>
  58. </div>
  59. <div class="main-container">
  60. <!-- 左侧菜单 -->
  61. <div class="sidebar">
  62. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  63. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  64. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  65. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  66. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  67. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  68. <div class="menu-item active"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  69. <div class="menu-item"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  70. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  71. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  72. </div>
  73. <!-- 内容区 -->
  74. <div class="content">
  75. <div class="breadcrumb">价格管理 / 区域价格清单</div>
  76. <!-- 搜索筛选 -->
  77. <div class="card">
  78. <div class="form-section-title">筛选条件</div>
  79. <div class="form-row">
  80. <el-select placeholder="所属区域" style="width:150px;">
  81. <el-option label="全部区域" value="" />
  82. <el-option label="城东区域" value="CD" />
  83. <el-option label="城西区域" value="CX" />
  84. <el-option label="城南区域" value="CN" />
  85. </el-select>
  86. <el-select placeholder="状态" style="width:140px;">
  87. <el-option label="全部状态" value="" />
  88. <el-option label="草稿" value="draft" />
  89. <el-option label="待生效" value="pending" />
  90. <el-option label="生效中" value="active" />
  91. <el-option label="已失效" value="inactive" />
  92. </el-select>
  93. <el-button type="primary">搜索</el-button>
  94. <el-button>重置</el-button>
  95. <el-button type="success">+ 创建价格清单</el-button>
  96. </div>
  97. </div>
  98. <!-- 价格清单列表 -->
  99. <div class="card">
  100. <div class="card-header">
  101. <span class="card-title">价格清单列表</span>
  102. </div>
  103. <el-table :data="priceList" style="width:100%">
  104. <el-table-column prop="region" label="区域" width="120" />
  105. <el-table-column prop="supplierName" label="供应商" width="150" />
  106. <el-table-column prop="version" label="版本号" width="100" align="center" />
  107. <el-table-column prop="status" label="状态" width="100">
  108. <template #default="{row}">
  109. <span :class="'status-tag '+row.statusClass">{{row.statusText}}</span>
  110. </template>
  111. </el-table-column>
  112. <el-table-column prop="effectiveTime" label="生效时间" width="160" />
  113. <el-table-column prop="publishTime" label="发布时间" width="160" />
  114. <el-table-column prop="publishName" label="发布人" width="100" />
  115. <el-table-column label="操作" width="200">
  116. <template #default>
  117. <el-button type="primary" link>查看</el-button>
  118. <el-button type="success" link>发布</el-button>
  119. <el-button type="warning" link>设为失效</el-button>
  120. <el-button type="danger" link>删除</el-button>
  121. </template>
  122. </el-table-column>
  123. </el-table>
  124. <div class="page-nav">
  125. <el-pagination background layout="prev, pager, next" :total="50" />
  126. </div>
  127. </div>
  128. <!-- 价格清单详情 -->
  129. <div class="card">
  130. <div class="form-section-title">价格清单详情 - 城东区域 V3</div>
  131. <div class="version-card active">
  132. <div class="version-header">
  133. <div>
  134. <span class="version-title">V3 版本</span>
  135. <span class="status-tag success" style="margin-left:12px;">生效中</span>
  136. </div>
  137. <div class="version-info">
  138. <span>生效时间:2026-03-19 00:00</span>
  139. <span>发布时间:2026-03-18 15:00</span>
  140. <span>发布人:管理员</span>
  141. </div>
  142. </div>
  143. <table class="price-table">
  144. <thead>
  145. <tr>
  146. <th>序号</th>
  147. <th>商品名称</th>
  148. <th>分类</th>
  149. <th>单位</th>
  150. <th>单价(元)</th>
  151. </tr>
  152. </thead>
  153. <tbody>
  154. <tr>
  155. <td>1</td>
  156. <td>新鲜猪肉</td>
  157. <td>肉类</td>
  158. <td>斤</td>
  159. <td class="price">25.00</td>
  160. </tr>
  161. <tr>
  162. <td>2</td>
  163. <td>新鲜蔬菜</td>
  164. <td>蔬菜</td>
  165. <td>斤</td>
  166. <td class="price">8.00</td>
  167. </tr>
  168. <tr>
  169. <td>3</td>
  170. <td>新鲜水果</td>
  171. <td>水果</td>
  172. <td>斤</td>
  173. <td class="price">12.00</td>
  174. </tr>
  175. <tr>
  176. <td>4</td>
  177. <td>鸡蛋</td>
  178. <td>禽蛋</td>
  179. <td>个</td>
  180. <td class="price">6.00</td>
  181. </tr>
  182. <tr>
  183. <td>5</td>
  184. <td>大米</td>
  185. <td>粮食</td>
  186. <td>斤</td>
  187. <td class="price">3.00</td>
  188. </tr>
  189. </tbody>
  190. </table>
  191. </div>
  192. <div class="version-card">
  193. <div class="version-header">
  194. <div>
  195. <span class="version-title">V2 版本</span>
  196. <span class="status-tag info" style="margin-left:12px;">已失效</span>
  197. </div>
  198. <div class="version-info">
  199. <span>生效时间:2026-03-12 00:00</span>
  200. <span>发布时间:2026-03-11 15:00</span>
  201. <span>发布人:管理员</span>
  202. </div>
  203. </div>
  204. </div>
  205. <div class="version-card">
  206. <div class="version-header">
  207. <div>
  208. <span class="version-title">V1 版本</span>
  209. <span class="status-tag info" style="margin-left:12px;">已失效</span>
  210. </div>
  211. <div class="version-info">
  212. <span>生效时间:2026-03-05 00:00</span>
  213. <span>发布时间:2026-03-04 15:00</span>
  214. <span>发布人:管理员</span>
  215. </div>
  216. </div>
  217. </div>
  218. <div style="margin-top:24px;">
  219. <el-button type="primary">发布新版本</el-button>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  225. <script src="https://unpkg.com/element-plus"></script>
  226. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  227. <script>
  228. const { createApp, ref } = Vue;
  229. const app = createApp({
  230. setup() {
  231. const priceList = ref([
  232. { region: '城东区域', supplierName: 'XX供应商', version: 'V3', status: 'active', statusClass: 'success', statusText: '生效中', effectiveTime: '2026-03-19 00:00', publishTime: '2026-03-18 15:00', publishName: '管理员' },
  233. { region: '城东区域', supplierName: 'XX供应商', version: 'V2', status: 'inactive', statusClass: 'info', statusText: '已失效', effectiveTime: '2026-03-12 00:00', publishTime: '2026-03-11 15:00', publishName: '管理员' },
  234. { region: '城西区域', supplierName: 'YY供应商', version: 'V2', status: 'active', statusClass: 'success', statusText: '生效中', effectiveTime: '2026-03-19 00:00', publishTime: '2026-03-18 15:00', publishName: '管理员' },
  235. { region: '城南区域', supplierName: 'ZZ供应商', version: 'V1', status: 'active', statusClass: 'success', statusText: '生效中', effectiveTime: '2026-03-19 00:00', publishTime: '2026-03-18 15:00', publishName: '管理员' },
  236. { region: '城东区域', supplierName: 'XX供应商', version: 'V1', status: 'inactive', statusClass: 'info', statusText: '已失效', effectiveTime: '2026-03-05 00:00', publishTime: '2026-03-04 15:00', publishName: '管理员' },
  237. ]);
  238. return { priceList };
  239. }
  240. });
  241. app.use(ElementPlus);
  242. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  243. app.component(key, component);
  244. }
  245. app.mount('#app');
  246. </script>
  247. </body>
  248. </html>