feat(est-test): 표지·갑지 상세편집, 산출 줄 글자모양, 수량산출서 인쇄, 엑셀형 셀 테두리·음영·수량붙여넣기

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 18:53:58 +09:00
co-authored by Claude Opus 5.5
parent 3e7c477631
commit 67cb82d8d2
6 changed files with 118 additions and 3 deletions
+4
View File
@@ -98,6 +98,10 @@ const EstDocs = (() => {
(c) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" })[c],
);
const align = (pos) => ["left", "center", "right"][Number(pos)] || "center";
// 상세편집(popupDetailEdit)으로 고친 모양이 있으면 그대로
const detail = { 8: "gabgi", 9: "cover" }[form];
if (detail && project.docs?.[detail]?.detailHtml && typeof EstDocEditor !== "undefined")
return `<div class="document-${detail === "gabgi" ? "gabgi" : "cover"}">${EstDocEditor.clean(project.docs[detail].detailHtml)}</div>`;
if (form === 9) {
const c = doc(project, "cover");
return `<div class="document-cover" style="text-align:center;padding:40px 0">${c.YearShow ? `<p style="font-size:15pt">${esc(year(c.Date))}</p>` : ""}<h1 style="font-size:32pt;margin:80px 0 20px">${esc(c.Name)}</h1>${c.Name2 ? `<h2>${esc(c.Name2)}</h2>` : ""}<p style="font-size:15pt;margin-top:160px;text-align:${align(c.CompanyPos)}">${esc(c.CompanyName)}</p></div>`;