询价详情.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. .info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
  26. .info-item { }
  27. .info-label { font-size: 13px; color: #909399; margin-bottom: 4px; }
  28. .info-value { font-size: 14px; color: #303133; font-weight: 500; }
  29. .status-tag { padding: 4px 12px; border-radius: 4px; font-size: 12px; }
  30. .status-tag.warning { background: #fdf6ec; color: #ff976a; }
  31. .status-tag.success { background: #f0f9eb; color: #07c160; }
  32. .status-tag.info { background: #f4f4f5; color: #909399; }
  33. .btn { padding: 8px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none; }
  34. .btn-primary { background: #1989fa; color: #fff; }
  35. .btn-default { background: #fff; color: #606266; border: 1px solid #dcdfe6; }
  36. .quote-summary { display: flex; gap: 16px; margin-top: 16px; }
  37. .quote-stat { flex: 1; padding: 16px; background: #f5f7fa; border-radius: 8px; text-align: center; }
  38. .quote-stat-num { font-size: 28px; font-weight: 700; color: #1989fa; }
  39. .quote-stat-label { font-size: 13px; color: #909399; margin-top: 4px; }
  40. </style>
  41. </head>
  42. <body>
  43. <div id="app">
  44. <div class="topbar">
  45. <div class="topbar-logo"><h1>叁强鲜配</h1><span>运营管理后台</span></div>
  46. <div class="topbar-user"><el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar><span>管理员</span></div>
  47. </div>
  48. <div class="main-container">
  49. <div class="sidebar">
  50. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  51. <div class="menu-item active"><el-icon><View /></el-icon><span>询价详情</span></div>
  52. </div>
  53. <div class="content">
  54. <div class="breadcrumb">首页 / 询价管理 / 询价详情</div>
  55. <div class="card">
  56. <div class="card-header">
  57. <span class="card-title">询价单基本信息</span>
  58. <div style="display:flex;gap:8px;">
  59. <el-button @click="history.back()">返回</el-button>
  60. <el-button type="primary" size="small" v-if="form.status==='draft'">发布询价</el-button>
  61. </div>
  62. </div>
  63. <div class="info-grid">
  64. <div class="info-item">
  65. <div class="info-label">询价单号</div>
  66. <div class="info-value">INQ202603170001</div>
  67. </div>
  68. <div class="info-item">
  69. <div class="info-label">询价标题</div>
  70. <div class="info-value">2026年3月第3周询价单</div>
  71. </div>
  72. <div class="info-item">
  73. <div class="info-label">询价区域</div>
  74. <div class="info-value">城东区域</div>
  75. </div>
  76. <div class="info-item">
  77. <div class="info-label">状态</div>
  78. <div class="info-value"><span class="status-tag warning">进行中</span></div>
  79. </div>
  80. <div class="info-item">
  81. <div class="info-label">发布时间</div>
  82. <div class="info-value">2026-03-17 09:00</div>
  83. </div>
  84. <div class="info-item">
  85. <div class="info-label">截止时间</div>
  86. <div class="info-value">2026-03-20 18:00</div>
  87. </div>
  88. <div class="info-item">
  89. <div class="info-label">创建人</div>
  90. <div class="info-value">张三</div>
  91. </div>
  92. <div class="info-item">
  93. <div class="info-label">创建时间</div>
  94. <div class="info-value">2026-03-17 08:30</div>
  95. </div>
  96. </div>
  97. <div class="info-item">
  98. <div class="info-label">备注</div>
  99. <div class="info-value" style="background:#f5f7fa;padding:12px;border-radius:8px;">本周为春季促销备货询价,请各供应商于截止时间前完成报价。</div>
  100. </div>
  101. <div class="quote-summary">
  102. <div class="quote-stat">
  103. <div class="quote-stat-num">5</div>
  104. <div class="quote-stat-label">商品数量</div>
  105. </div>
  106. <div class="quote-stat">
  107. <div class="quote-stat-num">3</div>
  108. <div class="quote-stat-label">已报价供应商</div>
  109. </div>
  110. <div class="quote-stat">
  111. <div class="quote-stat-num">2</div>
  112. <div class="quote-stat-label">待报价供应商</div>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="card">
  117. <div class="card-header"><span class="card-title">询价商品明细</span></div>
  118. <el-table :data="productList" style="width:100%">
  119. <el-table-column prop="code" label="商品编码" width="120" />
  120. <el-table-column prop="name" label="商品名称" />
  121. <el-table-column prop="category" label="分类" width="100" />
  122. <el-table-column prop="unit" label="单位" width="80" />
  123. <el-table-column prop="minPrice" label="最低报价" width="120">
  124. <template #default="{ row }">
  125. <span style="color:#07c160;font-weight:600;">¥{{ row.minPrice.toFixed(2) }}</span>
  126. </template>
  127. </el-table-column>
  128. <el-table-column prop="maxPrice" label="最高报价" width="120">
  129. <template #default="{ row }">
  130. <span style="color:#ee0a24;">¥{{ row.maxPrice.toFixed(2) }}</span>
  131. </template>
  132. </el-table-column>
  133. <el-table-column prop="avgPrice" label="平均报价" width="120">
  134. <template #default="{ row }">
  135. <span>¥{{ row.avgPrice.toFixed(2) }}</span>
  136. </template>
  137. </el-table-column>
  138. <el-table-column label="操作" width="100">
  139. <template #default>
  140. <el-button type="primary" link size="small">查看报价</el-button>
  141. </template>
  142. </el-table-column>
  143. </el-table>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  149. <script src="https://unpkg.com/element-plus"></script>
  150. <script>
  151. const { createApp } = Vue;
  152. const app = createApp({
  153. setup() {
  154. const form = reactive({
  155. status: 'published'
  156. });
  157. const productList = [
  158. { code: 'P001', name: '新鲜猪肉', category: '肉类', unit: '斤', minPrice: 16.50, maxPrice: 19.00, avgPrice: 17.80 },
  159. { code: 'P002', name: '新鲜鸡肉', category: '肉类', unit: '斤', minPrice: 13.00, maxPrice: 15.50, avgPrice: 14.20 },
  160. { code: 'P003', name: '新鲜蔬菜', category: '蔬菜', unit: '斤', minPrice: 6.50, maxPrice: 9.00, avgPrice: 7.80 },
  161. { code: 'P004', name: '新鲜水果', category: '水果', unit: '斤', minPrice: 10.00, maxPrice: 14.00, avgPrice: 12.00 },
  162. { code: 'P005', name: '大米', category: '粮油', unit: '袋', minPrice: 65.00, maxPrice: 72.00, avgPrice: 68.50 }
  163. ];
  164. return { form, productList };
  165. }
  166. });
  167. const { reactive } = Vue;
  168. app.use(ElementPlus);
  169. app.mount('#app');
  170. </script>
  171. </body>
  172. </html>