feat(est-test): 갑지·표지 양식 저장·불러오기·기본양식·초기화·인쇄
- 원본 TFRMGABGI·TFRMCOVER 팝업: 양식목록, 양식저장하기, 기본양식으로 저장(처음 열 때 채움), 초기화, 인쇄 미리보기 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -156,12 +156,12 @@ const EstDocs = (() => {
|
||||
const title = { gabgi: "갑지", cover: "표지", explan: "공사설명서", sibang: "시방서" }[kind];
|
||||
EstApp.showDialog(
|
||||
`${title} 편집`,
|
||||
`<div class="form-fields">${body}</div><button data-action="doc-save" data-kind="${kind}">저장</button>`,
|
||||
`${(kind === "gabgi" || kind === "cover") && typeof EstDocForms !== "undefined" ? EstDocForms.tools(kind) : ""}<div class="form-fields">${body}</div><button data-action="doc-save" data-kind="${kind}">저장</button>`,
|
||||
);
|
||||
if (kind === "explan" || kind === "sibang") {
|
||||
state.docEditor = { kind };
|
||||
EstDocEditor.fill(kind);
|
||||
}
|
||||
} else if (typeof EstDocForms !== "undefined") EstDocForms.fill(state, kind);
|
||||
}
|
||||
function collect(kind) {
|
||||
const value = (name) => field(`doc-${name}`)?.value ?? "";
|
||||
|
||||
Reference in New Issue
Block a user