feat(est): connect original quantity sheets

This commit is contained in:
2026-11-05 06:19:15 +09:00
parent 60ccedcd9a
commit 1856aa897d
13 changed files with 284 additions and 15 deletions
+8 -1
View File
@@ -143,8 +143,14 @@ const EstApp = (() => {
const errors = calculated.errors || [];
byId("messages").hidden = !errors.length && !state.notice;
byId("messages").textContent = state.notice || errors.join(" / ");
const rowCount =
state.project.tables[state.view]?.length ??
(state.view === "quantity"
? (state.project.quantitySheets?.find((s) => s.Code === state.quantitySheet)?.items
.length ?? state.project.quantities.length)
: 0);
byId("status").textContent =
`${state.project.name} · ${titles[state.view]} · ${state.project.tables[state.view]?.length || 0}행 · ${errors.length ? `계산 오류 ${errors.length}건` : "계산 오류 없음"}`;
`${state.project.name} · ${titles[state.view]} · ${rowCount}행 · ${errors.length ? `계산 오류 ${errors.length}건` : "계산 오류 없음"}`;
EstViews.render(state);
byId("work-content").scrollLeft = scroll;
const next = focus?.table
@@ -211,6 +217,7 @@ const EstApp = (() => {
const saved = sessionStorage.getItem(CACHE);
setProject(saved ? JSON.parse(saved) : await api("/api/sample"));
EstActions.install();
EstQuantity.install();
} catch (error) {
byId("messages").hidden = false;
byId("messages").textContent = `시작 실패: ${error.message}`;