| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>叁强鲜配 - 发票管理</title>
- <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
- <style>
- * { margin: 0; padding: 0; box-sizing: border-box; }
- body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #303133; }
- .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; }
- .topbar-logo h1 { font-size: 22px; font-weight: 600; }
- .topbar-logo span { font-size: 13px; opacity: 0.85; }
- .topbar-user { display: flex; align-items: center; gap: 16px; }
- .main-container { display: flex; min-height: calc(100vh - 60px); }
- .sidebar { width: 220px; background: #fff; border-right: 1px solid #e4e7ed; padding: 16px 0; }
- .menu-item { padding: 14px 24px; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #606266; font-size: 14px; }
- .menu-item.active { background: #ecf5ff; color: #1989fa; border-right: 3px solid #1989fa; }
- .content { flex: 1; padding: 24px; }
- .breadcrumb { font-size: 13px; color: #909399; margin-bottom: 8px; }
- .card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
- .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
- .card-title { font-size: 16px; font-weight: 600; }
- .search-bar { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
- .search-item { display: flex; align-items: center; gap: 8px; }
- .search-label { font-size: 14px; color: #606266; }
- .status-tag { padding: 4px 12px; border-radius: 4px; font-size: 12px; }
- .status-tag.warning { background: #fdf6ec; color: #ff976a; }
- .status-tag.success { background: #f0f9eb; color: #07c160; }
- .status-tag.info { background: #f4f4f5; color: #909399; }
- .amount { color: #ee0a24; font-weight: 600; }
- </style>
- </head>
- <body>
- <div id="app">
- <div class="topbar">
- <div class="topbar-logo"><h1>叁强鲜配</h1><span>运营管理后台</span></div>
- <div class="topbar-user"><el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar><span>管理员</span></div>
- </div>
- <div class="main-container">
- <div class="sidebar">
- <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
- <div class="menu-item active"><el-icon><Document /></el-icon><span>发票管理</span></div>
- </div>
- <div class="content">
- <div class="breadcrumb">首页 / 结算管理 / 发票管理</div>
- <div class="card">
- <div class="card-header"><span class="card-title">发票列表</span><el-button type="primary" size="small">开具发票</el-button></div>
- <div class="search-bar">
- <div class="search-item">
- <span class="search-label">发票号</span>
- <el-input placeholder="请输入发票号" style="width:160px" />
- </div>
- <div class="search-item">
- <span class="search-label">客户</span>
- <el-input placeholder="请输入客户名称" style="width:160px" />
- </div>
- <div class="search-item">
- <span class="search-label">状态</span>
- <el-select placeholder="全部" style="width:120px">
- <el-option label="全部" value="" />
- <el-option label="待开票" value="pending" />
- <el-option label="已开票" value="issued" />
- <el-option label="已作废" value="cancelled" />
- </el-select>
- </div>
- <div class="search-item">
- <el-date-picker type="daterange" placeholder="开票日期" style="width:240px" />
- </div>
- <el-button type="primary">搜索</el-button>
- <el-button>重置</el-button>
- </div>
- <el-table :data="invoiceList" style="width:100%">
- <el-table-column prop="invoiceNo" label="发票号" width="160" />
- <el-table-column prop="customerName" label="客户名称" />
- <el-table-column prop="orderNo" label="关联订单" width="160" />
- <el-table-column prop="amount" label="发票金额" width="120">
- <template #default="{ row }"><span class="amount">¥{{ (row.amount/100).toFixed(2) }}</span></template>
- </el-table-column>
- <el-table-column prop="taxRate" label="税率" width="80" />
- <el-table-column prop="status" label="状态" width="100">
- <template #default="{ row }">
- <span :class="'status-tag ' + row.statusClass">{{ row.statusText }}</span>
- </template>
- </el-table-column>
- <el-table-column prop="issueDate" label="开票日期" width="120" />
- <el-table-column label="操作" width="150">
- <template #default="{ row }">
- <el-button type="primary" link size="small">查看</el-button>
- <el-button type="primary" link size="small">下载</el-button>
- <el-button type="danger" link size="small" v-if="row.status==='pending'">作废</el-button>
- </template>
- </el-table-column>
- </el-table>
- <el-pagination style="margin-top:20px;justify-content:flex-end" :total="100" :page-size="10" layout="total, prev, pager, next" />
- </div>
- </div>
- </div>
- </div>
- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
- <script src="https://unpkg.com/element-plus"></script>
- <script>
- const { createApp } = Vue;
- const app = createApp({
- setup() {
- const invoiceList = [
- { invoiceNo: 'INV202603190001', customerName: 'AA餐厅', orderNo: 'ORD202603150023', amount: 358000, taxRate: '6%', status: 'issued', statusText: '已开票', statusClass: 'success', issueDate: '2026-03-19' },
- { invoiceNo: 'INV202603190002', customerName: 'BB超市', orderNo: 'ORD202603160035', amount: 125600, taxRate: '6%', status: 'pending', statusText: '待开票', statusClass: 'warning', issueDate: '-' },
- { invoiceNo: 'INV202603180001', customerName: 'CC商行', orderNo: 'ORD202603150042', amount: 89200, taxRate: '6%', status: 'issued', statusText: '已开票', statusClass: 'success', issueDate: '2026-03-18' },
- { invoiceNo: 'INV202603170002', customerName: 'DD饭店', orderNo: 'ORD202603140015', amount: 45600, taxRate: '6%', status: 'cancelled', statusText: '已作废', statusClass: 'info', issueDate: '2026-03-17' }
- ];
- return { invoiceList };
- }
- });
- app.use(ElementPlus);
- app.mount('#app');
- </script>
- </body>
- </html>
|