Files
billai/web
cheliangzhao a2de8c5078 feat: implement WeChat cross-batch refund reconciliation and fix misc issues
WeChat cross-batch refund reconciliation:
- Add OriginalAmount field to CleanedBill for accurate cumulative refund math
- DeduplicateRawFile detects WeChat status-update rows (已退款/已全额退款) and
  emits WechatRefundUpdates for Go-side reconciliation (Scenario 1)
- WechatPy cleaner surfaces -退款 income rows with no same-batch expense match
  as unresolved_refunds for Go ReconcileRefund (Scenario 2)
- Add ReconcileWechatRefund to repository interface and MongoDB implementation
- upload.go step 15 iterates WechatRefundUpdates and reconciles against bills_cleaned

Bug fixes:
- ReviewStats: add nil repo check to prevent panic when DB is not connected
- JWT: remove hardcoded fallback secret; return 500/401 if JWTSecret not configured
- Remove unused parsePageParam dead code and its strconv import
- BillDetailDrawer: show 不计收支 amount in muted gray instead of red
- test_jd_cleaner.py: replace hardcoded D:\Projects\BillAI path with dynamic __file__ resolution

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 21:38:25 +08:00
..

BillAI Web

BillAI 的前端 Web 应用,基于 SvelteKit + Tailwind提供账单分析/复核/管理等界面。

开发

yarn install
yarn dev

常用命令:

yarn check
yarn lint
yarn format

构建

yarn build
yarn preview

API 访问

  • 开发环境下通过 SvelteKit/Vite 代理访问后端(统一使用相对路径,例如 /api/...
  • Docker 部署时由 docker-compose.yaml 将前端容器与后端容器联通

说明

前端展示层使用统一账单模型 UIBillcamelCase 字段 + amount:number),分析链路与详情编辑弹窗避免多种账单类型混用。