结算管理.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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. .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
  36. .stats-card { background: #fff; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  37. .stats-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
  38. .stats-icon.primary { background: #ecf5ff; color: #1989fa; }
  39. .stats-icon.success { background: #f0f9eb; color: #07c160; }
  40. .stats-icon.warning { background: #fdf6ec; color: #ff976a; }
  41. .stats-icon.danger { background: #fef0f0; color: #ee0a24; }
  42. .stats-info h3 { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
  43. .stats-info p { font-size: 13px; color: #909399; }
  44. </style>
  45. </head>
  46. <body>
  47. <!-- 顶部导航 -->
  48. <div class="topbar">
  49. <div class="topbar-logo">
  50. <h1>叁强鲜配</h1>
  51. <span>运营管理后台</span>
  52. </div>
  53. <div class="topbar-user">
  54. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  55. <span>管理员</span>
  56. </div>
  57. </div>
  58. <div class="main-container">
  59. <!-- 左侧菜单 -->
  60. <div class="sidebar">
  61. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  62. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  63. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  64. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  65. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  66. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  67. <div class="menu-item"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  68. <div class="menu-item"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  69. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  70. <div class="menu-item active"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  71. </div>
  72. <!-- 内容区 -->
  73. <div class="content">
  74. <div class="breadcrumb">结算管理 / 结算列表</div>
  75. <!-- 统计 -->
  76. <div class="stats-grid">
  77. <div class="stats-card">
  78. <div class="stats-icon primary">
  79. <el-icon><Wallet /></el-icon>
  80. </div>
  81. <div class="stats-info">
  82. <h3>¥128,560</h3>
  83. <p>今日线上收入</p>
  84. </div>
  85. </div>
  86. <div class="stats-card">
  87. <div class="stats-icon warning">
  88. <el-icon><Money /></el-icon>
  89. </div>
  90. <div class="stats-info">
  91. <h3>¥86,420</h3>
  92. <p>待结算金额</p>
  93. </div>
  94. </div>
  95. <div class="stats-card">
  96. <div class="stats-icon success">
  97. <el-icon><CircleCheck /></el-icon>
  98. </div>
  99. <div class="stats-info">
  100. <h3>¥256,800</h3>
  101. <p>本月已结算</p>
  102. </div>
  103. </div>
  104. <div class="stats-card">
  105. <div class="stats-icon danger">
  106. <el-icon><RefreshRight /></el-icon>
  107. </div>
  108. <div class="stats-info">
  109. <h3>3</h3>
  110. <p>待处理退款</p>
  111. </div>
  112. </div>
  113. </div>
  114. <!-- Tab切换 -->
  115. <div class="card" style="padding:16px 24px;">
  116. <div style="display:flex;gap:4px;background:#f5f7fa;padding:4px;border-radius:8px;width:300px;">
  117. <div style="padding:10px 20px;cursor:pointer;border-radius:6px;font-size:14px;color:#606266;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.05);">线下结算</div>
  118. <div style="padding:10px 20px;cursor:pointer;border-radius:6px;font-size:14px;color:#606266;">退款记录</div>
  119. </div>
  120. </div>
  121. <!-- 搜索筛选 -->
  122. <div class="card">
  123. <div class="form-section-title">筛选条件</div>
  124. <div class="form-row">
  125. <el-select placeholder="所属区域" style="width:150px;">
  126. <el-option label="全部区域" value="" />
  127. <el-option label="城东区域" value="CD" />
  128. <el-option label="城西区域" value="CX" />
  129. <el-option label="城南区域" value="CN" />
  130. </el-select>
  131. <el-select placeholder="客户名称" style="width:150px;">
  132. <el-option label="全部客户" value="" />
  133. <el-option label="XX餐厅" value="1" />
  134. <el-option label="YY超市" value="2" />
  135. </el-select>
  136. <el-select placeholder="结算状态" style="width:140px;">
  137. <el-option label="全部状态" value="" />
  138. <el-option label="待确认" value="pending" />
  139. <el-option label="已完成" value="completed" />
  140. </el-select>
  141. <el-date-picker type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width:240px;" />
  142. <el-button type="primary">搜索</el-button>
  143. <el-button>重置</el-button>
  144. <el-button type="success">导出报表</el-button>
  145. </div>
  146. </div>
  147. <!-- 结算列表 -->
  148. <div class="card">
  149. <div class="card-header">
  150. <span class="card-title">线下结算订单列表</span>
  151. </div>
  152. <el-table :data="settlementList" style="width:100%">
  153. <el-table-column prop="orderNo" label="订单编号" width="180" />
  154. <el-table-column prop="clientName" label="客户名称" width="150" />
  155. <el-table-column prop="region" label="区域" width="100" />
  156. <el-table-column prop="totalAmount" label="订单金额" width="120">
  157. <template #default="{row}">
  158. <span style="color:#ee0a24;font-weight:600;">¥{{row.totalAmount}}</span>
  159. </template>
  160. </el-table-column>
  161. <el-table-column prop="paidAmount" label="已付金额" width="120">
  162. <template #default="{row}">
  163. <span style="color:#07c160;font-weight:600;">¥{{row.paidAmount}}</span>
  164. </template>
  165. </el-table-column>
  166. <el-table-column prop="receivableAmount" label="应收金额" width="120">
  167. <template #default="{row}">
  168. <span style="font-weight:600;">¥{{row.receivableAmount}}</span>
  169. </template>
  170. </el-table-column>
  171. <el-table-column prop="status" label="结算状态" width="100">
  172. <template #default="{row}">
  173. <span :class="'status-tag '+row.statusClass">{{row.statusText}}</span>
  174. </template>
  175. </el-table-column>
  176. <el-table-column prop="createTime" label="下单时间" width="150" />
  177. <el-table-column label="操作" width="150">
  178. <template #default>
  179. <el-button type="primary" link>查看</el-button>
  180. <el-button type="success" link>确认结算</el-button>
  181. </template>
  182. </el-table-column>
  183. </el-table>
  184. <div class="page-nav">
  185. <el-pagination background layout="prev, pager, next" :total="100" />
  186. </div>
  187. </div>
  188. <!-- 结算弹窗预览 -->
  189. <div class="card">
  190. <div class="form-section-title">确认结算弹窗预览</div>
  191. <div style="background:#f9f9f9;border-radius:8px;padding:24px;text-align:center;">
  192. <div style="font-size:16px;color:#606266;margin-bottom:16px;">订单编号:ORD202603190001</div>
  193. <div style="font-size:24px;color:#ee0a24;font-weight:600;margin-bottom:24px;">应收金额:¥1,280.00</div>
  194. <div class="form-row" style="justify-content:center;">
  195. <el-select placeholder="结算方式" style="width:200px;">
  196. <el-option label="转账" value="transfer" />
  197. <el-option label="现金" value="cash" />
  198. <el-option label="其他" value="other" />
  199. </el-select>
  200. </div>
  201. <div style="margin-top:16px;">
  202. <el-input placeholder="结算备注(选填)" type="textarea" :rows="2" style="width:400px;" />
  203. </div>
  204. <div style="margin-top:16px;">
  205. <el-button type="primary" size="large" style="width:200px;">确认结算</el-button>
  206. </div>
  207. </div>
  208. </div>
  209. <!-- 退款记录 -->
  210. <div class="card">
  211. <div class="form-section-title">退款记录列表</div>
  212. <el-table :data="refundList" style="width:100%">
  213. <el-table-column prop="refundNo" label="退款单号" width="180" />
  214. <el-table-column prop="orderNo" label="订单编号" width="180" />
  215. <el-table-column prop="clientName" label="客户" width="120" />
  216. <el-table-column prop="refundAmount" label="退款金额" width="120">
  217. <template #default="{row}">
  218. <span style="color:#ee0a24;font-weight:600;">¥{{row.refundAmount}}</span>
  219. </template>
  220. </el-table-column>
  221. <el-table-column prop="refundMethod" label="退款方式" width="100">
  222. <template #default="{row}">
  223. <span :class="'status-tag '+(row.refundMethod=='wechat'?'primary':'info')">
  224. {{row.refundMethod=='wechat'?'微信退款':'线下冲销'}}
  225. </span>
  226. </template>
  227. </el-table-column>
  228. <el-table-column prop="status" label="状态" width="100">
  229. <template #default="{row}">
  230. <span :class="'status-tag '+row.statusClass">{{row.statusText}}</span>
  231. </template>
  232. </el-table-column>
  233. <el-table-column prop="createTime" label="申请时间" width="150" />
  234. <el-table-column label="操作" width="150">
  235. <template #default>
  236. <el-button type="primary" link>查看</el-button>
  237. <el-button type="warning" link>人工处理</el-button>
  238. </template>
  239. </el-table-column>
  240. </el-table>
  241. <div class="page-nav">
  242. <el-pagination background layout="prev, pager, next" :total="50" />
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  248. <script src="https://unpkg.com/element-plus"></script>
  249. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  250. <script>
  251. const { createApp, ref } = Vue;
  252. const app = createApp({
  253. setup() {
  254. const settlementList = ref([
  255. { orderNo: 'ORD202603190001', clientName: 'XX餐厅', region: '城东', totalAmount: '1,280.00', paidAmount: '0.00', receivableAmount: '1,280.00', status: 'pending', statusClass: 'warning', statusText: '待确认', createTime: '2026-03-19 10:23' },
  256. { orderNo: 'ORD202603180056', clientName: 'YY超市', region: '城东', totalAmount: '2,560.00', paidAmount: '0.00', receivableAmount: '2,560.00', status: 'pending', statusClass: 'warning', statusText: '待确认', createTime: '2026-03-18 14:30' },
  257. { orderNo: 'ORD202603180055', clientName: 'ZZ食堂', region: '城西', totalAmount: '856.00', paidAmount: '856.00', receivableAmount: '856.00', status: 'completed', statusClass: 'success', statusText: '已完成', createTime: '2026-03-18 11:20' },
  258. ]);
  259. const refundList = ref([
  260. { refundNo: 'REF20260319001', orderNo: 'ORD202603150023', clientName: 'AA饭店', refundAmount: '560.00', refundMethod: 'wechat', status: 'success', statusClass: 'success', statusText: '成功', createTime: '2026-03-19 14:30' },
  261. { refundNo: 'REF20260318002', orderNo: 'ORD202603140015', clientName: 'BB商店', refundAmount: '320.00', refundMethod: 'offline', status: 'success', statusClass: 'success', statusText: '成功', createTime: '2026-03-18 10:20' },
  262. { refundNo: 'REF20260317003', orderNo: 'ORD202603120008', clientName: 'CC商行', refundAmount: '180.00', refundMethod: 'wechat', status: 'failed', statusClass: 'danger', statusText: '失败', createTime: '2026-03-17 16:45' },
  263. ]);
  264. return { settlementList, refundList };
  265. }
  266. });
  267. app.use(ElementPlus);
  268. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  269. app.component(key, component);
  270. }
  271. app.mount('#app');
  272. </script>
  273. </body>
  274. </html>