{{ toast.message }}

🔐 授权验证

{{ authError }}

【添加公事→完善信息→记账→备份】

🎉 公事记账簿 👤 {{ currentUser }}

当前公事:{{ currentAffair || '请选择公事' }}
{{ affair.name }}
{{ affair.type === '自定义' && affair.customType ? affair.customType : affair.type }}
没有找到匹配的公事

正在加载数据...

{{ error }}

💰 收礼记录

收礼记录列表 ({{ filteredGifts.length }}条)

{{ gift.giver }} ¥{{ gift.amount.toLocaleString() }} {{ gift.relationship }} {{ gift.attended || '参加' }} {{ gift.note }}

暂无收礼记录

💸 支出记录

支出记录列表 ({{ filteredExpenses.length }}条)

{{ expense.item }} ¥{{ expense.amount.toLocaleString() }}
{{ expense.note }}

暂无支出记录

ℹ️ 基本信息

当前公事信息

公事名称:{{ currentAffair }}

公事类型:{{ getCurrentAffairType() }}

注意:公事名称可修改,但需谨慎操作。

{{ networkStatus === 'online' ? '🟢 API连接正常' : networkStatus === 'testing' ? '🟡 正在检测...' : networkStatus === 'unknown' ? '⚪ 未检测' : '🔴 API连接异常' }}
{{ networkStatus === 'online' ? '✅ 服务器响应正常,可以正常使用所有功能' : networkStatus === 'testing' ? '⏳ 正在检测网络连接状态...' : '❌ 无法连接到服务器,请检查网络连接' }}

🗂️ 数据管理

📊 导出功能

📥 导入功能

💡 导出说明 {{ showExportHelp ? '收起' : '展开' }}

导出全部JSON数据:包含所有公事的完整数据,用于备份和恢复。

导出适配人情往来JSON:导出当前或选定公事的数据,格式兼容“人情往来记账本”App,方便导入。

导出Excel表格:当前公事的表格格式,包含详细记录和统计数据。

导出Word文档:当前公事的正式报告格式,适合打印和存档。

📊 统计信息

💰 收礼总额

¥{{ totalGifts.toLocaleString() }}

{{ gifts.length }} 笔记录

💸 支出总额

¥{{ totalExpenses.toLocaleString() }}

{{ expenses.length }} 笔记录

📈 账面余额

¥{{ netIncome.toLocaleString() }}

{{ netIncome >= 0 ? '结余' : '亏损' }}

参与情况统计
参加
{{ attendanceStats.attended }}
{{ attendanceStats.total > 0 ? Math.round(attendanceStats.attended / attendanceStats.total * 100) : 0 }}%
未参加
{{ attendanceStats.notAttended }}
{{ attendanceStats.total > 0 ? Math.round(attendanceStats.notAttended / attendanceStats.total * 100) : 0 }}%
委托参加
{{ attendanceStats.delegated }}
{{ attendanceStats.total > 0 ? Math.round(this.attendanceStats.delegated / this.attendanceStats.total * 100) : 0 }}%

添加新公事

请准确填入数据,添加后可修改,但需谨慎!

编辑收礼记录

编辑支出记录

导出兼容格式JSON数据

选择要导出的公事,支持多选。导出的数据格式兼容“人情往来记账本”App。