feat(est): connect original quantity sheets
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user