报价比价对比.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. /* 比价对比表格 */
  36. .compare-wrapper { overflow-x: auto; }
  37. .compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
  38. .compare-table th, .compare-table td { padding: 12px 16px; border: 1px solid #ebeef5; text-align: center; font-size: 13px; }
  39. .compare-table th { background: #f5f7fa; font-weight: 600; color: #606266; }
  40. .compare-table th.supplier-col { background: #ecf5ff; color: #1989fa; min-width: 120px; }
  41. .compare-table td { color: #303133; }
  42. .compare-table .item-name { text-align: left; font-weight: 500; }
  43. .compare-table .price-cell { color: #07c160; font-weight: 600; }
  44. .compare-table .best-price { background: #f0f9eb; color: #07c160; font-weight: 700; position: relative; }
  45. .compare-table .best-price::after { content: '最低'; position: absolute; top: 2px; right: 2px; font-size: 10px; background: #07c160; color: #fff; padding: 1px 4px; border-radius: 2px; }
  46. .compare-table .total-row { background: #f5f7fa; font-weight: 700; }
  47. .compare-table .total-row td { font-size: 15px; }
  48. /* 供应商卡片 */
  49. .supplier-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #f5f7fa; border-radius: 8px 8px 0 0; }
  50. .supplier-info { display: flex; align-items: center; gap: 12px; }
  51. .supplier-name { font-size: 15px; font-weight: 600; color: #303133; }
  52. .supplier-badge { padding: 4px 10px; border-radius: 4px; font-size: 11px; }
  53. .supplier-badge.recommended { background: linear-gradient(135deg, #07c160, #1989fa); color: #fff; }
  54. .supplier-badge.selected { background: #07c160; color: #fff; }
  55. .supplier-total { font-size: 20px; font-weight: 700; color: #303133; }
  56. .supplier-total span { font-size: 14px; color: #909399; font-weight: 400; margin-right: 4px; }
  57. /* 选择操作区 */
  58. .action-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #fff; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  59. .selected-info { display: flex; align-items: center; gap: 16px; }
  60. .selected-supplier { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #f0f9eb; border-radius: 8px; }
  61. .selected-supplier-name { font-weight: 600; color: #07c160; }
  62. .selected-amount { font-size: 18px; font-weight: 700; color: #07c160; }
  63. .no-selection { color: #909399; font-size: 14px; }
  64. /* 底部统计 */
  65. .summary-section { background: #fff; border-radius: 12px; padding: 20px; margin-top: 20px; }
  66. .summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  67. .summary-item { text-align: center; padding: 16px; background: #f5f7fa; border-radius: 8px; }
  68. .summary-item .label { font-size: 12px; color: #909399; margin-bottom: 8px; }
  69. .summary-item .value { font-size: 18px; font-weight: 600; color: #303133; }
  70. .summary-item .value.best { color: #07c160; }
  71. /* 左侧供应商选择列表 */
  72. .supplier-list-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
  73. .supplier-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 2px solid #ebeef5; border-radius: 8px; margin-bottom: 12px; cursor: pointer; transition: all 0.3s; }
  74. .supplier-item:hover { border-color: #1989fa; }
  75. .supplier-item.selected { border-color: #07c160; background: #f0f9eb; }
  76. .supplier-item-left { display: flex; align-items: center; gap: 12px; }
  77. .supplier-item-name { font-weight: 600; font-size: 14px; }
  78. .supplier-item-sub { font-size: 12px; color: #909399; margin-top: 4px; }
  79. .supplier-item-right { text-align: right; }
  80. .supplier-item-amount { font-size: 16px; font-weight: 700; color: #07c160; }
  81. .supplier-item-count { font-size: 12px; color: #909399; }
  82. </style>
  83. </head>
  84. <body>
  85. <!-- 顶部导航 -->
  86. <div class="topbar">
  87. <div class="topbar-logo">
  88. <h1>叁强鲜配</h1>
  89. <span>运营管理后台</span>
  90. </div>
  91. <div class="topbar-user">
  92. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  93. <span>管理员</span>
  94. </div>
  95. </div>
  96. <div class="main-container">
  97. <!-- 左侧菜单 -->
  98. <div class="sidebar">
  99. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  100. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  101. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  102. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  103. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  104. <div class="menu-item active"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  105. <div class="menu-item"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  106. <div class="menu-item"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  107. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  108. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  109. </div>
  110. <!-- 内容区 -->
  111. <div class="content">
  112. <div class="breadcrumb">报价管理 / 报价比价对比</div>
  113. <!-- 操作栏 -->
  114. <div class="action-bar">
  115. <div class="selected-info">
  116. <span style="font-size:14px;color:#606266;">当前比价:</span>
  117. <span style="font-weight:600;">2026年3月第3周询价单 - 城东区域</span>
  118. <span class="status-tag info">待比价</span>
  119. </div>
  120. <div class="form-row">
  121. <el-button @click="$router.back()">返回报价列表</el-button>
  122. <el-button type="warning" plain>导出对比表</el-button>
  123. <el-button type="primary" :disabled="!selectedSupplier">确认选择并发布价格</el-button>
  124. </div>
  125. </div>
  126. <!-- 供应商列表快速选择 -->
  127. <div class="supplier-list-card">
  128. <div class="form-section-title">供应商报价列表</div>
  129. <div class="supplier-item selected" @click="selectSupplier('supplier1')">
  130. <div class="supplier-item-left">
  131. <el-radio v-model="currentSelection" label="supplier1"></el-radio>
  132. <div>
  133. <div class="supplier-item-name">XX供应商</div>
  134. <div class="supplier-item-sub">提交时间:2026-03-18 14:30 | 包含5种商品</div>
  135. </div>
  136. </div>
  137. <div class="supplier-item-right">
  138. <div class="supplier-item-amount">¥1,280.00</div>
  139. <div class="supplier-item-count">总价最优</div>
  140. </div>
  141. </div>
  142. <div class="supplier-item" @click="selectSupplier('supplier2')">
  143. <div class="supplier-item-left">
  144. <el-radio v-model="currentSelection" label="supplier2"></el-radio>
  145. <div>
  146. <div class="supplier-item-name">YY供应商</div>
  147. <div class="supplier-item-sub">提交时间:2026-03-18 15:20 | 包含5种商品</div>
  148. </div>
  149. </div>
  150. <div class="supplier-item-right">
  151. <div class="supplier-item-amount">¥1,350.00</div>
  152. <div class="supplier-item-count">3项最优价</div>
  153. </div>
  154. </div>
  155. <div class="supplier-item" @click="selectSupplier('supplier3')">
  156. <div class="supplier-item-left">
  157. <el-radio v-model="currentSelection" label="supplier3"></el-radio>
  158. <div>
  159. <div class="supplier-item-name">ZZ供应商</div>
  160. <div class="supplier-item-sub">提交时间:2026-03-18 16:45 | 包含5种商品</div>
  161. </div>
  162. </div>
  163. <div class="supplier-item-right">
  164. <div class="supplier-item-amount">¥1,420.00</div>
  165. <div class="supplier-item-count">价格偏高</div>
  166. </div>
  167. </div>
  168. </div>
  169. <!-- 比价对比表格 -->
  170. <div class="card">
  171. <div class="card-header">
  172. <span class="card-title">报价明细对比</span>
  173. <span style="font-size:13px;color:#909399;">* 绿色标注为各商品最低报价</span>
  174. </div>
  175. <div class="compare-wrapper">
  176. <table class="compare-table">
  177. <thead>
  178. <tr>
  179. <th class="item-name">商品信息</th>
  180. <th>单位</th>
  181. <th class="supplier-col">XX供应商</th>
  182. <th class="supplier-col">YY供应商</th>
  183. <th class="supplier-col">ZZ供应商</th>
  184. </tr>
  185. </thead>
  186. <tbody>
  187. <tr>
  188. <td class="item-name">
  189. <div>新鲜猪肉</div>
  190. <div style="font-size:11px;color:#909399;">品类:肉类</div>
  191. </td>
  192. <td>斤</td>
  193. <td class="best-price">25.00</td>
  194. <td>26.00</td>
  195. <td>27.00</td>
  196. </tr>
  197. <tr>
  198. <td class="item-name">
  199. <div>新鲜蔬菜</div>
  200. <div style="font-size:11px;color:#909399;">品类:蔬菜</div>
  201. </td>
  202. <td>斤</td>
  203. <td class="best-price">8.00</td>
  204. <td class="best-price">8.00</td>
  205. <td>9.00</td>
  206. </tr>
  207. <tr>
  208. <td class="item-name">
  209. <div>新鲜水果</div>
  210. <div style="font-size:11px;color:#909399;">品类:水果</div>
  211. </td>
  212. <td>斤</td>
  213. <td>12.00</td>
  214. <td class="best-price">11.00</td>
  215. <td>13.00</td>
  216. </tr>
  217. <tr>
  218. <td class="item-name">
  219. <div>鸡蛋</div>
  220. <div style="font-size:11px;color:#909399;">品类:禽蛋</div>
  221. </td>
  222. <td>个</td>
  223. <td class="best-price">6.00</td>
  224. <td>6.50</td>
  225. <td>6.00</td>
  226. </tr>
  227. <tr>
  228. <td class="item-name">
  229. <div>大米</div>
  230. <div style="font-size:11px;color:#909399;">品类:粮食</div>
  231. </td>
  232. <td>斤</td>
  233. <td>10.00</td>
  234. <td>9.50</td>
  235. <td class="best-price">9.00</td>
  236. </tr>
  237. <tr class="total-row">
  238. <td colspan="2">报价总计</td>
  239. <td class="price-cell" style="background:#f0f9eb;">¥1,280.00</td>
  240. <td class="price-cell">¥1,350.00</td>
  241. <td class="price-cell">¥1,420.00</td>
  242. </tr>
  243. <tr>
  244. <td colspan="2">最优报价项数</td>
  245. <td class="price-cell" style="background:#f0f9eb;">3项</td>
  246. <td class="price-cell">2项</td>
  247. <td class="price-cell">1项</td>
  248. </tr>
  249. </tbody>
  250. </table>
  251. </div>
  252. </div>
  253. <!-- 底部统计 -->
  254. <div class="summary-section">
  255. <div class="form-section-title">比价统计</div>
  256. <div class="summary-grid">
  257. <div class="summary-item">
  258. <div class="label">供应商数量</div>
  259. <div class="value">3家</div>
  260. </div>
  261. <div class="summary-item">
  262. <div class="label">商品种类</div>
  263. <div class="value">5种</div>
  264. </div>
  265. <div class="summary-item">
  266. <div class="label">最低总报价</div>
  267. <div class="value best">¥1,280.00</div>
  268. </div>
  269. <div class="summary-item">
  270. <div class="label">价格差额</div>
  271. <div class="value">¥140.00</div>
  272. </div>
  273. </div>
  274. <div style="margin-top:24px;display:flex;gap:12px;justify-content:center;">
  275. <el-button type="primary" size="large" style="width:220px;">确认选择 XX供应商</el-button>
  276. <el-button type="success" size="large" style="width:220px;">生成价格清单</el-button>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  282. <script src="https://unpkg.com/element-plus"></script>
  283. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  284. <script>
  285. const { createApp, ref } = Vue;
  286. const app = createApp({
  287. setup() {
  288. const currentSelection = ref('supplier1');
  289. const selectedSupplier = ref('XX供应商');
  290. const selectSupplier = (id) => {
  291. currentSelection.value = id;
  292. if (id === 'supplier1') selectedSupplier.value = 'XX供应商';
  293. else if (id === 'supplier2') selectedSupplier.value = 'YY供应商';
  294. else selectedSupplier.value = 'ZZ供应商';
  295. };
  296. return { currentSelection, selectedSupplier, selectSupplier };
  297. }
  298. });
  299. app.use(ElementPlus);
  300. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  301. app.component(key, component);
  302. }
  303. app.mount('#app');
  304. </script>
  305. </body>
  306. </html>