feat(est): connect original quantity sheets
This commit is contained in:
@@ -16,6 +16,10 @@ const EstExtra = (() => {
|
||||
{ esc, number, byId } = EstApp;
|
||||
let html = "";
|
||||
if (view === "quantity") {
|
||||
if (project.quantitySheets?.length && state.quantitySheet !== "manual") {
|
||||
EstQuantity.render(state);
|
||||
return;
|
||||
}
|
||||
const values = Object.create(null),
|
||||
rows = project.quantities.map((row, index) => {
|
||||
let result,
|
||||
@@ -40,12 +44,14 @@ const EstExtra = (() => {
|
||||
button("delete-extra", "삭제", `data-section="quantities" data-row="${index}"`),
|
||||
];
|
||||
});
|
||||
html = box(
|
||||
"수량산출서",
|
||||
button("add-quantity", "산출 항목 추가") + button("apply-quantity", "내역에 수량 반영"),
|
||||
table(["산출코드", "품명", "연결 내역코드", "수식", "소수자리", "결과", ""], rows),
|
||||
"앞선 산출 항목을 [산출코드]로 참조합니다. 내역 반영은 연결된 코드의 산출값을 합산하여 수량에 반영합니다.",
|
||||
);
|
||||
html =
|
||||
EstQuantity.selector(state) +
|
||||
box(
|
||||
"수량산출서",
|
||||
button("add-quantity", "산출 항목 추가") + button("apply-quantity", "내역에 수량 반영"),
|
||||
table(["산출코드", "품명", "연결 내역코드", "수식", "소수자리", "결과", ""], rows),
|
||||
"앞선 산출 항목을 [산출코드]로 참조합니다. 내역 반영은 연결된 코드의 산출값을 합산하여 수량에 반영합니다.",
|
||||
);
|
||||
} else if (view === "change") {
|
||||
const changes = EstBusiness.changes(project);
|
||||
html = box(
|
||||
|
||||
Reference in New Issue
Block a user