价格详情.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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. .info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
  34. .info-item { background: #f9f9f9; border-radius: 8px; padding: 16px; }
  35. .info-item label { font-size: 13px; color: #909399; display: block; margin-bottom: 8px; }
  36. .info-item span { font-size: 16px; font-weight: 600; color: #303133; }
  37. .version-tabs { display: flex; gap: 12px; margin-bottom: 20px; }
  38. .version-tab { padding: 12px 24px; background: #f5f7fa; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
  39. .version-tab:hover { border-color: #1989fa; }
  40. .version-tab.active { background: #f6ffed; border-color: #07c160; }
  41. .version-tab .version { font-size: 14px; font-weight: 600; }
  42. .version-tab .status { font-size: 12px; margin-top: 4px; }
  43. .price-table { width: 100%; border-collapse: collapse; }
  44. .price-table th, .price-table td { padding: 12px; border: 1px solid #eee; text-align: left; font-size: 14px; }
  45. .price-table th { background: #f5f7fa; font-weight: 600; color: #606266; }
  46. .price-table .price { color: #07c160; font-weight: 600; }
  47. .history-table { width: 100%; border-collapse: collapse; }
  48. .history-table th, .history-table td { padding: 10px 12px; border: 1px solid #eee; text-align: left; font-size: 13px; }
  49. .history-table th { background: #f5f7fa; font-weight: 600; color: #606266; }
  50. .history-table .add { color: #07c160; }
  51. .history-table .reduce { color: #ee0a24; }
  52. .action-bar { display: flex; gap: 12px; justify-content: center; padding-top: 20px; border-top: 1px solid #eee; }
  53. </style>
  54. </head>
  55. <body>
  56. <div class="topbar">
  57. <div class="topbar-logo">
  58. <h1>叁强鲜配</h1>
  59. <span>运营管理后台</span>
  60. </div>
  61. <div class="topbar-user">
  62. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  63. <span>管理员</span>
  64. </div>
  65. </div>
  66. <div class="main-container">
  67. <div class="sidebar">
  68. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  69. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  70. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  71. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  72. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  73. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  74. <div class="menu-item active"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  75. <div class="menu-item"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  76. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  77. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  78. </div>
  79. <div class="content">
  80. <div class="breadcrumb">价格管理 / 价格清单详情</div>
  81. <div class="card">
  82. <div class="card-header">
  83. <span class="card-title">价格清单详情 - 城东区域</span>
  84. </div>
  85. <div class="info-grid">
  86. <div class="info-item">
  87. <label>区域</label>
  88. <span>城东区域</span>
  89. </div>
  90. <div class="info-item">
  91. <label>供应商</label>
  92. <span>XX供应商</span>
  93. </div>
  94. <div class="info-item">
  95. <label>选用询价单</label>
  96. <span>2026年3月第3周询价单</span>
  97. </div>
  98. <div class="info-item">
  99. <label>商品数量</label>
  100. <span>8种</span>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="card">
  105. <div class="card-header">
  106. <span class="card-title">版本列表</span>
  107. </div>
  108. <div class="version-tabs">
  109. <div class="version-tab active">
  110. <div class="version">V3 <span class="status-tag success" style="font-size:10px;padding:1px 4px;">生效中</span></div>
  111. <div class="status">生效时间:2026-03-19</div>
  112. </div>
  113. <div class="version-tab">
  114. <div class="version">V2</div>
  115. <div class="status">失效时间:2026-03-18</div>
  116. </div>
  117. <div class="version-tab">
  118. <div class="version">V1</div>
  119. <div class="status">失效时间:2026-03-11</div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="card">
  124. <div class="card-header">
  125. <span class="card-title">V3 版本价格明细</span>
  126. <span class="status-tag success">生效中</span>
  127. </div>
  128. <table class="price-table">
  129. <thead>
  130. <tr>
  131. <th style="width:60px;">序号</th>
  132. <th>商品名称</th>
  133. <th>分类</th>
  134. <th>单位</th>
  135. <th>单价(元)</th>
  136. <th>选用供应商</th>
  137. <th>选用理由</th>
  138. </tr>
  139. </thead>
  140. <tbody>
  141. <tr>
  142. <td>1</td>
  143. <td>新鲜猪肉</td>
  144. <td>肉类</td>
  145. <td>斤</td>
  146. <td class="price">25.00</td>
  147. <td>XX供应商</td>
  148. <td>最低价</td>
  149. </tr>
  150. <tr>
  151. <td>2</td>
  152. <td>新鲜蔬菜</td>
  153. <td>蔬菜</td>
  154. <td>斤</td>
  155. <td class="price">8.00</td>
  156. <td>XX供应商</td>
  157. <td>最低价</td>
  158. </tr>
  159. <tr>
  160. <td>3</td>
  161. <td>新鲜水果</td>
  162. <td>水果</td>
  163. <td>斤</td>
  164. <td class="price">12.00</td>
  165. <td>YY供应商</td>
  166. <td>最低价</td>
  167. </tr>
  168. <tr>
  169. <td>4</td>
  170. <td>鸡蛋</td>
  171. <td>禽蛋</td>
  172. <td>个</td>
  173. <td class="price">6.00</td>
  174. <td>XX供应商</td>
  175. <td>最低价</td>
  176. </tr>
  177. <tr>
  178. <td>5</td>
  179. <td>大米</td>
  180. <td>粮食</td>
  181. <td>斤</td>
  182. <td class="price">3.00</td>
  183. <td>XX供应商</td>
  184. <td>唯一报价</td>
  185. </tr>
  186. </tbody>
  187. </table>
  188. </div>
  189. <div class="card">
  190. <div class="card-header">
  191. <span class="card-title">历史版本对比(V2 vs V3)</span>
  192. <el-button type="primary" size="small" @click="showCompare">查看详细对比</el-button>
  193. </div>
  194. <table class="history-table">
  195. <thead>
  196. <tr>
  197. <th>商品</th>
  198. <th>V2 单价</th>
  199. <th>V3 单价</th>
  200. <th>变化</th>
  201. <th>变化幅度</th>
  202. </tr>
  203. </thead>
  204. <tbody>
  205. <tr>
  206. <td>新鲜猪肉</td>
  207. <td>¥26.00</td>
  208. <td>¥25.00</td>
  209. <td class="reduce">-¥1.00</td>
  210. <td class="reduce">↓ 3.85%</td>
  211. </tr>
  212. <tr>
  213. <td>新鲜蔬菜</td>
  214. <td>¥8.00</td>
  215. <td>¥8.00</td>
  216. <td>-</td>
  217. <td>-</td>
  218. </tr>
  219. <tr>
  220. <td>新鲜水果</td>
  221. <td>¥11.00</td>
  222. <td>¥12.00</td>
  223. <td class="add">+¥1.00</td>
  224. <td class="add">↑ 9.09%</td>
  225. </tr>
  226. <tr>
  227. <td>鸡蛋</td>
  228. <td>¥6.00</td>
  229. <td>¥6.00</td>
  230. <td>-</td>
  231. <td>-</td>
  232. </tr>
  233. </tbody>
  234. </table>
  235. </div>
  236. <div class="card">
  237. <div class="action-bar">
  238. <el-button @click="goBack">返回列表</el-button>
  239. <el-button type="warning" @click="setInvalid">设为失效</el-button>
  240. <el-button type="primary">发布新版本</el-button>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  246. <script src="https://unpkg.com/element-plus"></script>
  247. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  248. <script>
  249. const { createApp } = Vue;
  250. const app = createApp({
  251. setup() {
  252. const goBack = () => window.history.back();
  253. const showCompare = () => alert('显示详细对比弹窗');
  254. const setInvalid = () => alert('确认设为失效');
  255. return { goBack, showCompare, setInvalid };
  256. }
  257. });
  258. app.use(ElementPlus);
  259. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  260. app.component(key, component);
  261. }
  262. app.mount('#app');
  263. </script>
  264. </body>
  265. </html>