财务折线:概览卡画净资产趋势(配服务端 /timeline)laoyang/FamilyBook#24
用户原话(2026-10-28):「鸿蒙端对齐网页端」。财务概览卡原来「折线图占位 (第二轮接图表能力后填)」,现在: 1) FbLedgerPoint 类型 + parseLedgerTimeline(读 /timeline 的 items) 2) loadEntries 里顺带拉 timeline(单独缓存键 ledger_timeline_<id>) 3) timelinePath():时序点 → 绝对坐标折线 path(Path 组件画,Y 轴按 min..max 归一,不是从 0 起 —— 金额平稳时不贴底);<2 点时给占位文案。 编译 BUILD SUCCESSFUL;守卫 _fb_arkts_guard.js 1324/0;服务端冒烟 _i24_timeline_api.py 8/0 + 反证命中。
This commit is contained in:
@@ -901,6 +901,18 @@ export interface FbLedgerDetail {
|
||||
debtCent: number;
|
||||
}
|
||||
|
||||
/** 一个时序点(工单 #24 财务折线:`GET /api/v1/ledger/<id>/timeline`) */
|
||||
export interface FbLedgerPoint {
|
||||
/** 日期 YYYY-MM-DD */
|
||||
date: string;
|
||||
/** 净资产(分) */
|
||||
netCent: number;
|
||||
/** 总资产(分) */
|
||||
assetCent: number;
|
||||
/** 总负债(分) */
|
||||
debtCent: number;
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 资源(resources)
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user