订单调整.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. .order-info-bar { display: flex; gap: 20px; background: #f9f9f9; padding: 16px; border-radius: 8px; margin-bottom: 20px; }
  34. .order-info-item { text-align: center; }
  35. .order-info-item label { font-size: 12px; color: #909399; display: block; margin-bottom: 4px; }
  36. .order-info-item span { font-size: 16px; font-weight: 600; color: #303133; }
  37. .adjust-table { width: 100%; border-collapse: collapse; }
  38. .adjust-table th, .adjust-table td { padding: 12px; border: 1px solid #eee; text-align: left; font-size: 14px; }
  39. .adjust-table th { background: #f5f7fa; font-weight: 600; color: #606266; }
  40. .adjust-table .input-num { width: 100px; }
  41. .adjust-type-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
  42. .adjust-type-tag.reduce { background: #fff7e6; color: #ff976a; }
  43. .adjust-type-tag.delete { background: #fef0f0; color: #ee0a24; }
  44. .adjust-type-tag.substitute { background: #ecf5ff; color: #1989fa; }
  45. .adjust-summary { background: #f5f7fa; border-radius: 8px; padding: 20px; margin-top: 20px; }
  46. .summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
  47. .summary-row.total { border-top: 2px solid #1989fa; padding-top: 12px; margin-top: 8px; font-size: 16px; font-weight: 600; }
  48. .summary-row .amount { color: #ee0a24; }
  49. .action-bar { display: flex; gap: 12px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid #eee; }
  50. .reason-input { margin-top: 16px; }
  51. </style>
  52. </head>
  53. <body>
  54. <div class="topbar">
  55. <div class="topbar-logo">
  56. <h1>叁强鲜配</h1>
  57. <span>运营管理后台</span>
  58. </div>
  59. <div class="topbar-user">
  60. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  61. <span>管理员</span>
  62. </div>
  63. </div>
  64. <div class="main-container">
  65. <div class="sidebar">
  66. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  67. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  68. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  69. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  70. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  71. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  72. <div class="menu-item"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  73. <div class="menu-item active"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  74. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  75. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  76. </div>
  77. <div class="content">
  78. <div class="breadcrumb">订单管理 / 订单详情 / 订单调整</div>
  79. <div class="card">
  80. <div class="card-header">
  81. <span class="card-title">订单调整</span>
  82. <span class="status-tag warning">部分送达</span>
  83. </div>
  84. <div class="order-info-bar">
  85. <div class="order-info-item">
  86. <label>订单编号</label>
  87. <span>ORD202603180056</span>
  88. </div>
  89. <div class="order-info-item">
  90. <label>客户</label>
  91. <span>XX餐厅</span>
  92. </div>
  93. <div class="order-info-item">
  94. <label>原订单金额</label>
  95. <span style="color:#ee0a24;">¥710.00</span>
  96. </div>
  97. <div class="order-info-item">
  98. <label>已付金额</label>
  99. <span style="color:#07c160;">¥710.00</span>
  100. </div>
  101. </div>
  102. <div class="form-section-title">调整商品明细</div>
  103. <table class="adjust-table">
  104. <thead>
  105. <tr>
  106. <th style="width:40px;"><el-checkbox /></th>
  107. <th>商品名称</th>
  108. <th>单位</th>
  109. <th>原数量</th>
  110. <th>新数量</th>
  111. <th>调整类型</th>
  112. <th>原金额</th>
  113. <th>新金额</th>
  114. <th>差额</th>
  115. <th>原因</th>
  116. </tr>
  117. </thead>
  118. <tbody>
  119. <tr style="background:#fff7e6;">
  120. <td><el-checkbox checked /></td>
  121. <td>新鲜猪肉</td>
  122. <td>斤</td>
  123. <td>10</td>
  124. <td><el-input-number :min="0" :max="10" v-model="猪肉数量" size="small" class="input-num" /></td>
  125. <td><span class="adjust-type-tag reduce">减量</span></td>
  126. <td>¥250.00</td>
  127. <td>¥125.00</td>
  128. <td style="color:#07c160;">-¥125.00</td>
  129. <td><el-input placeholder="缺货" size="small" style="width:100px;" /></td>
  130. </tr>
  131. <tr>
  132. <td><el-checkbox /></td>
  133. <td>新鲜蔬菜</td>
  134. <td>斤</td>
  135. <td>20</td>
  136. <td>20</td>
  137. <td>-</td>
  138. <td>¥160.00</td>
  139. <td>¥160.00</td>
  140. <td>-</td>
  141. <td>-</td>
  142. </tr>
  143. <tr>
  144. <td><el-checkbox /></td>
  145. <td>新鲜水果</td>
  146. <td>斤</td>
  147. <td>15</td>
  148. <td>15</td>
  149. <td>-</td>
  150. <td>¥180.00</td>
  151. <td>¥180.00</td>
  152. <td>-</td>
  153. <td>-</td>
  154. </tr>
  155. <tr>
  156. <td><el-checkbox /></td>
  157. <td>鸡蛋</td>
  158. <td>个</td>
  159. <td>20</td>
  160. <td>20</td>
  161. <td>-</td>
  162. <td>¥120.00</td>
  163. <td>¥120.00</td>
  164. <td>-</td>
  165. <td>-</td>
  166. </tr>
  167. </tbody>
  168. </table>
  169. <div class="adjust-summary">
  170. <div class="summary-row">
  171. <span>原订单总金额</span>
  172. <span>¥710.00</span>
  173. </div>
  174. <div class="summary-row">
  175. <span>调整商品金额</span>
  176. <span style="color:#07c160;">-¥125.00</span>
  177. </div>
  178. <div class="summary-row">
  179. <span>已付金额</span>
  180. <span>¥710.00</span>
  181. </div>
  182. <div class="summary-row total">
  183. <span>应退金额</span>
  184. <span class="amount">¥125.00</span>
  185. </div>
  186. </div>
  187. <div class="reason-input">
  188. <div class="form-section-title">调整原因(必填)</div>
  189. <el-input type="textarea" :rows="3" placeholder="请输入调整原因,如:部分商品缺货导致无法全部送达" />
  190. </div>
  191. <div class="adjust-summary" style="margin-top:16px;background:#fff1f0;border:1px solid #ffccc7;">
  192. <div style="font-size:14px;color:#ee0a24;margin-bottom:12px;">
  193. <el-icon><WarningFilled /></el-icon> 退款处理方式
  194. </div>
  195. <el-radio-group>
  196. <el-radio label="wechat">微信原路退款 ¥125.00</el-radio>
  197. <el-radio label="offline">线下冲销</el-radio>
  198. </el-radio-group>
  199. </div>
  200. <div class="action-bar">
  201. <el-button @click="goBack">取消</el-button>
  202. <el-button type="primary">确认调整</el-button>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  208. <script src="https://unpkg.com/element-plus"></script>
  209. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  210. <script>
  211. const { createApp, ref } = Vue;
  212. const app = createApp({
  213. setup() {
  214. const goBack = () => window.history.back();
  215. return { goBack };
  216. }
  217. });
  218. app.use(ElementPlus);
  219. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  220. app.component(key, component);
  221. }
  222. app.mount('#app');
  223. </script>
  224. </body>
  225. </html>