Spaces:
Running
Running
| <html lang="zh-CN"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>薪资明细查询 - 薪智算</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap'); | |
| body { | |
| font-family: 'Noto Sans SC', sans-serif; | |
| } | |
| .detail-card { | |
| transition: all 0.3s ease; | |
| } | |
| .detail-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- 导航栏 --> | |
| <nav class="bg-indigo-600 text-white py-4 px-6 shadow-lg"> | |
| <div class="container mx-auto flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="dollar-sign" class="w-6 h-6"></i> | |
| <span class="text-xl font-bold">薪智算</span> | |
| </div> | |
| <div class="hidden md:flex space-x-6"> | |
| <a href="index.html" class="hover:text-indigo-200 font-medium">首页</a> | |
| <a href="calculator.html" class="hover:text-indigo-200 font-medium">薪资计算</a> | |
| <a href="payment.html" class="hover:text-indigo-200 font-medium">薪资发放</a> | |
| <a href="salary_detail.html" class="font-medium text-indigo-200 border-b-2 border-indigo-200">薪资明细</a> | |
| <a href="#" class="hover:text-indigo-200 font-medium">社保公积金</a> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <i data-feather="bell" class="w-5 h-5 hover:text-indigo-200 cursor-pointer"></i> | |
| <span class="absolute -top-1 -right-1 w-4 h-4 bg-red-500 text-white text-xs rounded-full flex items-center justify-center">2</span> | |
| </div> | |
| <div class="flex items-center space-x-2 cursor-pointer"> | |
| <div class="w-8 h-8 rounded-full bg-indigo-700 flex items-center justify-center"> | |
| <i data-feather="user" class="w-4 h-4"></i> | |
| </div> | |
| <span>员工</span> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <main class="container mx-auto px-6 py-8"> | |
| <!-- 顶部标题 --> | |
| <div class="mb-8"> | |
| <h1 class="text-2xl md:text-3xl font-bold">我的薪资明细</h1> | |
| <p class="text-gray-600 mt-2">查看历史薪资发放记录与明细</p> | |
| </div> | |
| <!-- 筛选条件 --> | |
| <div class="bg-white rounded-lg shadow-sm p-4 mb-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">查询月份</label> | |
| <input type="month" class="w-full border border-gray-300 rounded-md py-2 px-3 focus:outline-none focus:ring-1 focus:ring-indigo-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">薪资类型</label> | |
| <select class="w-full border border-gray-300 rounded-md py-2 px-3 focus:outline-none focus:ring-1 focus:ring-indigo-500"> | |
| <option value="">全部类型</option> | |
| <option>月度工资</option> | |
| <option>年终奖</option> | |
| <option>项目奖金</option> | |
| <option>其他补贴</option> | |
| </select> | |
| </div> | |
| <div class="flex items-end"> | |
| <button class="w-full py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition flex items-center justify-center"> | |
| <i data-feather="search" class="mr-2 w-4 h-4"></i> 查询 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- 薪资明细卡片 --> | |
| <div class="grid grid-cols-1 gap-6 mb-8"> | |
| <!-- 薪资卡片1 --> | |
| <div class="detail-card bg-white rounded-lg shadow-sm overflow-hidden"> | |
| <div class="p-5 border-b border-gray-200 flex justify-between items-center"> | |
| <div> | |
| <h3 class="text-lg font-bold">2023年10月薪资</h3> | |
| <p class="text-sm text-gray-500">发放日期: 2023-10-05</p> | |
| </div> | |
| <span class="px-3 py-1 bg-green-100 text-green-800 text-sm font-medium rounded-full">已发放</span> | |
| </div> | |
| <div class="p-5"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4"> | |
| <div> | |
| <p class="text-sm text-gray-500">税前工资</p> | |
| <p class="text-xl font-bold">¥15,000.00</p> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">扣款总额</p> | |
| <p class="text-xl font-bold">¥2,873.60</p> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">实发工资</p> | |
| <p class="text-xl font-bold text-indigo-600">¥12,126.40</p> | |
| </div> | |
| </div> | |
| <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center"> | |
| <i data-feather="chevron-down" class="mr-1 w-4 h-4"></i> 查看详细明细 | |
| </button> | |
| </div> | |
| <!-- 详细明细 (默认隐藏) --> | |
| <div class="px-5 pb-5 hidden"> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">项目</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">金额</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">备注</th> | |
| </tr> | |
| </thead> | |
| <tbody class="divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium">基本工资</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">¥12,000.00</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">-</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium">绩效奖金</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">¥3,000.00</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">Q3绩效</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium">养老保险</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-red-500">-¥840.00</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">个人8%</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium">医疗保险</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-red-500">-¥108.00</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">个人2%+3</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium">失业保险</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-red-500">-¥30.00</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">个人0.5%</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium">公积金</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-red-500">-¥1,200.00</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">个人12%</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium">个人所得税</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-red-500">-¥245.60</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm">累计预扣法</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="mt-4 flex justify-end"> | |
| <button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition flex items-center"> | |
| <i data-feather="download" class="mr-2 w-4 h-4"></i> 下载工资条 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- 薪资卡片2 --> | |
| <div class="detail-card bg-white rounded-lg shadow-sm overflow-hidden"> | |
| <div class="p-5 border-b border-gray-200 flex justify-between items-center"> | |
| <div> | |
| <h3 class="text-lg font-bold">2023年9月薪资</h3> | |
| <p class="text-sm text-gray-500">发放日期: 2023-09-05</p> | |
| </div> | |
| <span class="px-3 py-1 bg-green-100 text-green-800 text-sm font-medium rounded-full">已发放</span> | |
| </div> | |
| <div class="p-5"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4"> | |
| <div> | |
| <p class="text-sm text-gray-500">税前工资</p> | |
| <p class="text-xl font-bold">¥15,000.00</p> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">扣款总额</p> | |
| <p class="text-xl font-bold">¥2,873.60</p> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">实发工资</p> | |
| <p class="text-xl font-bold text-indigo-600">¥12,126.40</p> | |
| </div> | |
| </div> | |
| <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium flex items-center"> | |
| <i data-feather="chevron-down" class="mr-1 w-4 h-4"></i> 查看详细明细 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- 分页 --> | |
| <div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 rounded-b-lg"> | |
| <div class="flex-1 flex justify-between sm:hidden"> | |
| <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">上一页</a> | |
| <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">下一页</a> | |
| </div> | |
| <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"> | |
| <div> | |
| <p class="text-sm text-gray-700"> | |
| 显示 <span class="font-medium">1</span> 到 <span class="font-medium">2</span>,共 <span class="font-medium">6</span> 条记录 | |
| </p> | |
| </div> | |
| <div> | |
| <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination"> | |
| <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> | |
| <span class="sr-only">Previous</span> | |
| <i data-feather="chevron-left" class="h-5 w-5"></i> | |
| </a> | |
| <a href="#" aria-current="page" class="z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a> | |
| <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a> | |
| <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a> | |
| <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> | |
| <span class="sr-only">Next</span> | |
| <i data-feather="chevron-right" class="h-5 w-5"></i> | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script> | |
| // Feather 图标替换 | |
| document.addEventListener('DOMContentLoaded', function() { | |
| feather.replace(); | |
| // 点击展开/收起详细明细 | |
| document.querySelectorAll('.detail-card button').forEach(button => { | |
| button.addEventListener('click', function() { | |
| const detailSection = this.closest('.detail-card').querySelector('div.hidden'); | |
| const icon = this.querySelector('i'); | |
| if (detailSection) { | |
| detailSection.classList.toggle('hidden'); | |
| icon.setAttribute('data-feather', | |
| detailSection.classList.contains('hidden') ? 'chevron-down' : 'chevron-up'); | |
| feather.replace(); | |
| } | |
| }); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |