# OIP-Report **Repository Path**: ch_sen_cloud/OIP-Report ## Basic Information - **Project Name**: OIP-Report - **Description**: 资产报表-月报 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-11-23 - **Last Updated**: 2026-11-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OIP-Report · Asset Report (Monthly & Annual) An **OIP application** for public-institution asset reporting. It supports **monthly and annual** reports driven by uploaded templates, automatic prior-period data fetch, template-based calculation, validation/warnings, review, consolidation, analysis, and historical queries. Delivered as a single self-contained HTML body using the OIP host bridge; data model follows **OIP-DataStandard** (`assetcloud.asset.v1`). > **Version** `2.1.6` · **Code** `oip.asset-monthly-report` (legacy code retained) · **Store scope** `trade` > **Package** `dist/oip.asset-monthly-report-2.1.6.oipapp.json` · **Semantic hash** `sha256s:61dbb3346d4c7c3d6a8694e11c4c9424608eef2f700f547694464498f3e92bc0` ## What it does - **Excel-style sheet tabs** for monthly (3) and annual (15) templates. - **Task workflow**: issue monthly/annual tasks, receive & auto-generate from local prior data, submit, unit review → supervisory review → finance review, then task summary report. - **Monthly**: balance sheet, asset situation, revitalization & income (3 templates). - **Annual**: 财资01–15 unit templates (balance sheet, staff, fixed/intangible stock, land, housing, vehicles, construction, allocation, lease, disposal, investment, public infrastructure, reserves, cultural relics, affordable housing). - **Auto-fetch**: previous month for monthly, previous year for annual; source is shown. - **Auto-calculation**: totals, net value (original − depreciation), cumulative (last cumulative + current), summary metrics. - **Review**: errors block approval; warnings require acknowledgement; approve/return writes a new version and audit entry. - **Consolidation**: by unit, type, period/year. - **Analysis**: monthly trend, annual year-over-year, structure, status, quality. - **History**: filter and compare with prior period/year; template trace. ## Pages `Overview · Tasks · Fill · Ledger · Consolidation · Analysis · Review · History` ## Data model - `asset_report` (33 fields): header, summary metrics, `reportData` + `reportData2..6` chunked JSON (template cells), `annualDigest`, `reportVersion`. - `asset_report_task` (23), `asset_audit` (8). - `asset_report_line` is retired in v2; annual/monthly template cells live in `reportData` + `reportData2..6` chunks to avoid per-cell write throttling and 2,000-character truncation. - 13 field bindings to 9 unique OIP-DataStandard attribute OIDs; `periodType` / `reportStatus` are semantically mapped but do not declare `attributeRef` (value-domain differences). ## Build & verify ```bash npm run build npm run validate npm test npm run preview ``` Current: **17 PASS / 0 FAIL** on `eval_ai_package.py`, **57 PASS / 0 FAIL** on `scripts/validate.py`, and the jsdom smoke test passes (monthly/yearly fill, auto-fetch, calculations, consolidation/analysis/history, review, no-bridge failure). ## Import & list 1. App factory → Import package → select the `.oipapp.json`; **enable data model import** (3 forms). 2. Publish; publish state is on the body row (`standard-page-template`). 3. App publish → Publish to app mall (`type=trade` already set). 4. Iterate with the same `code`, strictly increasing `appVersion`, rebuild, re-list. Internal `publishToPlatformSpace` requires `sourceDirectory`. ## Boundaries - Not yet imported/published/listed on a production space. - Annual templates cover 15 unit tables; 财资附/综 tables are not replicated sheet-by-sheet (consolidation is generated by the app). - Some annual leaf rows are merged (e.g., office/business/other housing). - `reportData` is an application-extension JSON, not a standard exchange field. - Auto-fetch depends on prior reports; missing details require manual entry. - Single-collection read window is 2,000 rows. See [`docs/验收报告.md`](docs/验收报告.md), [`docs/数据标准映射.md`](docs/数据标准映射.md), and [`store/上架材料.md`](store/上架材料.md).