询价管理.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. .nav-tabs { display: flex; gap: 4px; background: #f5f7fa; padding: 4px; border-radius: 8px; margin-bottom: 20px; }
  36. .nav-tab { padding: 10px 20px; cursor: pointer; border-radius: 6px; font-size: 14px; color: #606266; }
  37. .nav-tab.active { background: #fff; color: #1989fa; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  38. .inquiry-header { display: flex; gap: 20px; margin-bottom: 20px; }
  39. .inquiry-card { flex: 1; background: #f9f9f9; border-radius: 8px; padding: 16px; }
  40. .inquiry-card h4 { font-size: 13px; color: #909399; margin-bottom: 8px; }
  41. .inquiry-card p { font-size: 16px; font-weight: 600; color: #303133; }
  42. .product-list { margin-top: 20px; }
  43. .product-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
  44. .product-row:last-child { border-bottom: none; }
  45. .product-name { flex: 1; font-size: 14px; }
  46. .product-category { width: 100px; font-size: 13px; color: #909399; }
  47. .product-unit { width: 80px; font-size: 13px; color: #909399; }
  48. .compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
  49. .compare-table th, .compare-table td { padding: 12px; border: 1px solid #eee; text-align: center; font-size: 14px; }
  50. .compare-table th { background: #f5f7fa; font-weight: 600; }
  51. .compare-table .price { color: #07c160; font-weight: 600; }
  52. .compare-table .best-price { background: #f0f9eb; color: #07c160; font-weight: 700; }
  53. </style>
  54. </head>
  55. <body>
  56. <!-- 顶部导航 -->
  57. <div class="topbar">
  58. <div class="topbar-logo">
  59. <h1>叁强鲜配</h1>
  60. <span>运营管理后台</span>
  61. </div>
  62. <div class="topbar-user">
  63. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  64. <span>管理员</span>
  65. </div>
  66. </div>
  67. <div class="main-container">
  68. <!-- 左侧菜单 -->
  69. <div class="sidebar">
  70. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  71. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  72. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  73. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  74. <div class="menu-item active"><el-icon><Search /></el-icon><span>询价管理</span></div>
  75. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  76. <div class="menu-item"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  77. <div class="menu-item"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  78. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  79. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  80. </div>
  81. <!-- 内容区 -->
  82. <div class="content">
  83. <div class="breadcrumb">询价管理 / 询价单列表</div>
  84. <!-- 搜索筛选 -->
  85. <div class="card">
  86. <div class="form-section-title">筛选条件</div>
  87. <div class="form-row">
  88. <el-input placeholder="询价单标题搜索" style="width:200px;" />
  89. <el-select placeholder="所属区域" style="width:150px;">
  90. <el-option label="全部区域" value="" />
  91. <el-option label="城东区域" value="CD" />
  92. <el-option label="城西区域" value="CX" />
  93. <el-option label="城南区域" value="CN" />
  94. </el-select>
  95. <el-select placeholder="状态" style="width:140px;">
  96. <el-option label="全部状态" value="" />
  97. <el-option label="草稿" value="draft" />
  98. <el-option label="已发布" value="published" />
  99. <el-option label="已关闭" value="closed" />
  100. </el-select>
  101. <el-date-picker type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width:240px;" />
  102. <el-button type="primary">搜索</el-button>
  103. <el-button>重置</el-button>
  104. <el-button type="success">+ 创建询价单</el-button>
  105. </div>
  106. </div>
  107. <!-- 询价单列表 -->
  108. <div class="card">
  109. <div class="card-header">
  110. <span class="card-title">询价单列表</span>
  111. </div>
  112. <el-table :data="inquiryList" style="width:100%">
  113. <el-table-column prop="title" label="询价单标题" />
  114. <el-table-column prop="region" label="区域" width="100" />
  115. <el-table-column prop="productCount" label="商品数" width="80" align="center" />
  116. <el-table-column prop="supplierCount" label="供应商数" width="100" align="center" />
  117. <el-table-column prop="status" label="状态" width="100">
  118. <template #default="{row}">
  119. <span :class="'status-tag '+row.statusClass">{{row.statusText}}</span>
  120. </template>
  121. </el-table-column>
  122. <el-table-column prop="publishTime" label="发布时间" width="150" />
  123. <el-table-column prop="closeTime" label="关闭时间" width="150" />
  124. <el-table-column label="操作" width="200">
  125. <template #default>
  126. <el-button type="primary" link>查看</el-button>
  127. <el-button type="success" link>发布</el-button>
  128. <el-button type="warning" link>关闭</el-button>
  129. <el-button type="danger" link>删除</el-button>
  130. </template>
  131. </el-table-column>
  132. </el-table>
  133. <div class="page-nav">
  134. <el-pagination background layout="prev, pager, next" :total="50" />
  135. </div>
  136. </div>
  137. <!-- 询价单详情预览 -->
  138. <div class="card">
  139. <div class="form-section-title">询价单详情预览</div>
  140. <div class="inquiry-header">
  141. <div class="inquiry-card">
  142. <h4>询价单标题</h4>
  143. <p>2026年3月第3周询价单</p>
  144. </div>
  145. <div class="inquiry-card">
  146. <h4>所属区域</h4>
  147. <p>城东区域</p>
  148. </div>
  149. <div class="inquiry-card">
  150. <h4>状态</h4>
  151. <p><span class="status-tag success">已发布</span></p>
  152. </div>
  153. <div class="inquiry-card">
  154. <h4>发布时间</h4>
  155. <p>2026-03-17 10:00</p>
  156. </div>
  157. </div>
  158. <div class="form-section-title" style="font-size:14px;">询价商品清单</div>
  159. <div class="product-list">
  160. <div class="product-row">
  161. <span class="product-name">新鲜猪肉</span>
  162. <span class="product-category">肉类</span>
  163. <span class="product-unit">斤</span>
  164. </div>
  165. <div class="product-row">
  166. <span class="product-name">新鲜蔬菜</span>
  167. <span class="product-category">蔬菜</span>
  168. <span class="product-unit">斤</span>
  169. </div>
  170. <div class="product-row">
  171. <span class="product-name">新鲜水果</span>
  172. <span class="product-category">水果</span>
  173. <span class="product-unit">斤</span>
  174. </div>
  175. <div class="product-row">
  176. <span class="product-name">鸡蛋</span>
  177. <span class="product-category">禽蛋</span>
  178. <span class="product-unit">个</span>
  179. </div>
  180. </div>
  181. <div style="margin-top:24px;">
  182. <el-button type="primary">发布询价单</el-button>
  183. <el-button>编辑</el-button>
  184. <el-button type="danger">关闭</el-button>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  190. <script src="https://unpkg.com/element-plus"></script>
  191. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  192. <script>
  193. const { createApp, ref } = Vue;
  194. const app = createApp({
  195. setup() {
  196. const inquiryList = ref([
  197. { title: '2026年3月第3周询价单', region: '城东', productCount: 8, supplierCount: 3, status: 'published', statusClass: 'success', statusText: '已发布', publishTime: '2026-03-17 10:00', closeTime: '-' },
  198. { title: '2026年3月第3周询价单', region: '城西', productCount: 8, supplierCount: 2, status: 'published', statusClass: 'success', statusText: '已发布', publishTime: '2026-03-17 10:00', closeTime: '-' },
  199. { title: '2026年3月第2周询价单', region: '城东', productCount: 8, supplierCount: 3, status: 'closed', statusClass: 'info', statusText: '已关闭', publishTime: '2026-03-10 10:00', closeTime: '2026-03-16 18:00' },
  200. { title: '2026年3月第2周询价单', region: '城西', productCount: 8, supplierCount: 2, status: 'closed', statusClass: 'info', statusText: '已关闭', publishTime: '2026-03-10 10:00', closeTime: '2026-03-16 18:00' },
  201. { title: '2026年3月第1周询价单', region: '城东', productCount: 8, supplierCount: 3, status: 'closed', statusClass: 'info', statusText: '已关闭', publishTime: '2026-03-03 10:00', closeTime: '2026-03-09 18:00' },
  202. ]);
  203. return { inquiryList };
  204. }
  205. });
  206. app.use(ElementPlus);
  207. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  208. app.component(key, component);
  209. }
  210. app.mount('#app');
  211. </script>
  212. </body>
  213. </html>