feat(est): print annual allocations
This commit is contained in:
@@ -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: "금액",
|
||||
|
||||
Reference in New Issue
Block a user