debug(admin-web): 添加分类账数据匹配调试日志
添加 console.log 输出,用于调试固定账户明细数据匹配问题。 请在浏览器开发者工具控制台查看输出,确认后端返回的数据格式。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7744abf57d
commit
fa0fd3adb3
|
|
@ -350,6 +350,9 @@ function FixedAccountsSection({ data }: { data: SystemAccountReportResponse['fix
|
|||
const accountLedger = allLedgerData.fixedAccountsLedger.find(
|
||||
(item) => item.accountSequence === accountSequence
|
||||
);
|
||||
// [2026-01-07] 调试:验证数据匹配是否正确
|
||||
console.log('[getAccountLedger] 查找:', accountSequence, '→ 找到:', accountLedger?.accountSequence, '条数:', accountLedger?.ledger?.length);
|
||||
console.log('[getAccountLedger] 后端返回的账户列表:', allLedgerData.fixedAccountsLedger.map(l => ({ seq: l.accountSequence, type: l.accountType, count: l.ledger?.length })));
|
||||
return accountLedger?.ledger || [];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue