发票管理.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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.active { background: #ecf5ff; color: #1989fa; border-right: 3px solid #1989fa; }
  19. .content { flex: 1; padding: 24px; }
  20. .breadcrumb { font-size: 13px; color: #909399; margin-bottom: 8px; }
  21. .card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  22. .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
  23. .card-title { font-size: 16px; font-weight: 600; }
  24. .search-bar { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
  25. .search-item { display: flex; align-items: center; gap: 8px; }
  26. .search-label { font-size: 14px; color: #606266; }
  27. .status-tag { padding: 4px 12px; border-radius: 4px; font-size: 12px; }
  28. .status-tag.warning { background: #fdf6ec; color: #ff976a; }
  29. .status-tag.success { background: #f0f9eb; color: #07c160; }
  30. .status-tag.info { background: #f4f4f5; color: #909399; }
  31. .amount { color: #ee0a24; font-weight: 600; }
  32. </style>
  33. </head>
  34. <body>
  35. <div id="app">
  36. <div class="topbar">
  37. <div class="topbar-logo"><h1>叁强鲜配</h1><span>运营管理后台</span></div>
  38. <div class="topbar-user"><el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar><span>管理员</span></div>
  39. </div>
  40. <div class="main-container">
  41. <div class="sidebar">
  42. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  43. <div class="menu-item active"><el-icon><Document /></el-icon><span>发票管理</span></div>
  44. </div>
  45. <div class="content">
  46. <div class="breadcrumb">首页 / 结算管理 / 发票管理</div>
  47. <div class="card">
  48. <div class="card-header"><span class="card-title">发票列表</span><el-button type="primary" size="small">开具发票</el-button></div>
  49. <div class="search-bar">
  50. <div class="search-item">
  51. <span class="search-label">发票号</span>
  52. <el-input placeholder="请输入发票号" style="width:160px" />
  53. </div>
  54. <div class="search-item">
  55. <span class="search-label">客户</span>
  56. <el-input placeholder="请输入客户名称" style="width:160px" />
  57. </div>
  58. <div class="search-item">
  59. <span class="search-label">状态</span>
  60. <el-select placeholder="全部" style="width:120px">
  61. <el-option label="全部" value="" />
  62. <el-option label="待开票" value="pending" />
  63. <el-option label="已开票" value="issued" />
  64. <el-option label="已作废" value="cancelled" />
  65. </el-select>
  66. </div>
  67. <div class="search-item">
  68. <el-date-picker type="daterange" placeholder="开票日期" style="width:240px" />
  69. </div>
  70. <el-button type="primary">搜索</el-button>
  71. <el-button>重置</el-button>
  72. </div>
  73. <el-table :data="invoiceList" style="width:100%">
  74. <el-table-column prop="invoiceNo" label="发票号" width="160" />
  75. <el-table-column prop="customerName" label="客户名称" />
  76. <el-table-column prop="orderNo" label="关联订单" width="160" />
  77. <el-table-column prop="amount" label="发票金额" width="120">
  78. <template #default="{ row }"><span class="amount">&#165;{{ (row.amount/100).toFixed(2) }}</span></template>
  79. </el-table-column>
  80. <el-table-column prop="taxRate" label="税率" width="80" />
  81. <el-table-column prop="status" label="状态" width="100">
  82. <template #default="{ row }">
  83. <span :class="'status-tag ' + row.statusClass">{{ row.statusText }}</span>
  84. </template>
  85. </el-table-column>
  86. <el-table-column prop="issueDate" label="开票日期" width="120" />
  87. <el-table-column label="操作" width="150">
  88. <template #default="{ row }">
  89. <el-button type="primary" link size="small">查看</el-button>
  90. <el-button type="primary" link size="small">下载</el-button>
  91. <el-button type="danger" link size="small" v-if="row.status==='pending'">作废</el-button>
  92. </template>
  93. </el-table-column>
  94. </el-table>
  95. <el-pagination style="margin-top:20px;justify-content:flex-end" :total="100" :page-size="10" layout="total, prev, pager, next" />
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  101. <script src="https://unpkg.com/element-plus"></script>
  102. <script>
  103. const { createApp } = Vue;
  104. const app = createApp({
  105. setup() {
  106. const invoiceList = [
  107. { invoiceNo: 'INV202603190001', customerName: 'AA餐厅', orderNo: 'ORD202603150023', amount: 358000, taxRate: '6%', status: 'issued', statusText: '已开票', statusClass: 'success', issueDate: '2026-03-19' },
  108. { invoiceNo: 'INV202603190002', customerName: 'BB超市', orderNo: 'ORD202603160035', amount: 125600, taxRate: '6%', status: 'pending', statusText: '待开票', statusClass: 'warning', issueDate: '-' },
  109. { invoiceNo: 'INV202603180001', customerName: 'CC商行', orderNo: 'ORD202603150042', amount: 89200, taxRate: '6%', status: 'issued', statusText: '已开票', statusClass: 'success', issueDate: '2026-03-18' },
  110. { invoiceNo: 'INV202603170002', customerName: 'DD饭店', orderNo: 'ORD202603140015', amount: 45600, taxRate: '6%', status: 'cancelled', statusText: '已作废', statusClass: 'info', issueDate: '2026-03-17' }
  111. ];
  112. return { invoiceList };
  113. }
  114. });
  115. app.use(ElementPlus);
  116. app.mount('#app');
  117. </script>
  118. </body>
  119. </html>