feat(est): print annual allocations

This commit is contained in:
2026-11-07 08:49:33 +09:00
parent cffeb84ce4
commit 95c7acb7d4
3 changed files with 34 additions and 0 deletions
+15
View File
@@ -1,6 +1,19 @@
const EstForms = (() => {
const common = ["Code", "Name", "Size", "Unite"];
function data(id, project, state = {}) {
if (id === "annual-summary") {
const output = EstBusiness.annual(project, false);
return {
columns: ["Name", "formula", "directCost", "contractCost"],
rows: project.annual.map((year, index) => ({
Name: year.name,
formula: year.formula,
directCost: output.results[index]?.project.calculation.direct.TC,
contractCost: output.results[index]?.project.calculation.total,
})),
errors: output.errors,
};
}
if (id === "progress-summary") {
const round =
project.progress.find((item) => item.id === state.roundId) || project.progress.at(-1);
@@ -241,6 +254,8 @@ const EstForms = (() => {
EGC: "재료비 증감",
EJC: "경비 증감",
ESC: "산출경비 증감",
directCost: "순공사비",
contractCost: "도급액",
TargetCode: "연결 내역",
TU: "단가",
TC: "금액",