How vvvvvversion/tax-system works
智税通 is a browser-based enterprise tax-compliance management demo. Its main user journey is to sign in, open a tax filing, select a report, prefill and review data, validate it, then simulate submission and receipt. Separate modules cover invoice lifecycle management, compliance review, four-flow matching, policy services, risk monitoring, notifications, and settings. The architecture is a React UI backed by role/company context and browser-local storage. README capabilities are included; some page internals were not sampled, so their undocumented data connections are omitted.
Main entry points: App.tsx Route shell · database.ts IndexedDB · importExport.ts Import and export · AutoFiling.tsx Tax filing flow
Components 24
App and access
- Route shell
src/App.tsx - Sign-in
src/pages/Login.tsx - Workspace layout
src/components/Layout/MainLayout.tsx - Dashboard
src/pages/Dashboard.tsx - System settings
src/pages/Settings.tsx - Notification center
src/pages/NotificationCenter.tsx
Tax filing
- Tax filing flow
src/pages/AutoFiling.tsx - Tax form editor
src/components/TaxForms/FormTable.tsx - Filing records
src/services/taxFormService.ts
Finance operations
- Invoice management
src/pages/InvoiceManagement.tsx - Invoice records
src/services/invoiceService.ts - Four-flow matching
src/pages/MultiFlowCompare.tsx - Contract records
src/services/contractService.ts - Transaction records
src/services/transactionService.ts
Compliance and insights
- Compliance review
src/pages/ComplianceReview.tsx - Risk center
src/pages/RiskCenter.tsx - Policy services
src/pages/PolicyService.tsx - Policy records
src/services/policyService.ts
Shared services
- Identity and RBAC
src/contexts/AuthContext.tsx - Notification store
src/services/notificationService.ts - Import and export
src/utils/importExport.ts - IndexedDB
src/utils/database.ts - Domain records
src/types/database.ts
Other components
- Enterprise user
Connections 33
- Enterprise user → Route shell: opens
src/App.tsx - Route shell → Sign-in: routes to
src/App.tsx - Route shell → Workspace layout: renders
src/App.tsx - Route shell → Dashboard: routes to
src/App.tsx - Route shell → Tax filing flow: routes to
src/App.tsx - Route shell → Invoice management: routes to
src/App.tsx - Route shell → Compliance review: routes to
src/App.tsx - Route shell → Four-flow matching: routes to
src/App.tsx - Route shell → Policy services: routes to
src/App.tsx - Route shell → Risk center: routes to
src/App.tsx - Route shell → System settings: routes to
src/App.tsx - Route shell → Notification center: routes to
src/App.tsx - Sign-in → Identity and RBAC: authenticates via
src/pages/Login.tsx - Route shell → Identity and RBAC: checks access
src/App.tsx - Workspace layout → Identity and RBAC: reads permissions
src/components/Layout/MainLayout.tsx - Workspace layout → Notification store: loads alerts
src/components/Layout/MainLayout.tsx - Tax filing flow → Tax form editor: renders editor
src/pages/AutoFiling.tsx - Tax filing flow → Filing records: uses filing records
src/pages/AutoFiling.tsx - Tax filing flow → Identity and RBAC: checks permissions
src/pages/AutoFiling.tsx - Invoice management → Invoice records: manages invoices
src/pages/InvoiceManagement.tsx - Invoice management → Import and export: imports and exports
src/pages/InvoiceManagement.tsx - Four-flow matching → Import and export: exports reports
src/pages/MultiFlowCompare.tsx - Compliance review → Import and export: exports reports
src/pages/ComplianceReview.tsx - Policy services → Import and export: exports data
src/pages/PolicyService.tsx - Risk center → Import and export: exports reports
src/pages/RiskCenter.tsx - Notification center → Notification store: manages alerts
src/pages/NotificationCenter.tsx - Invoice records → IndexedDB: reads and writes
src/services/invoiceService.ts - Filing records → IndexedDB: reads and writes
src/services/taxFormService.ts - Contract records → IndexedDB: reads and writes
src/services/contractService.ts - Transaction records → IndexedDB: reads and writes
src/services/transactionService.ts - Policy records → IndexedDB: reads and writes
src/services/policyService.ts - Invoice records → Domain records: uses record types
src/services/invoiceService.ts - IndexedDB → Domain records: stores records
src/utils/database.ts