feat(M02): 일위대가 사전조합 — 층 단추 따로 · 명시 owner · 구분 › 상세구분 2단 나무(134-3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SE9MxeXTu2uaDZ55BJowAY
This commit is contained in:
2026-10-09 15:01:16 +09:00
co-authored by Claude Opus 5.5
parent 15f2e7c4f5
commit 66efaf2834
16 changed files with 466 additions and 94 deletions
@@ -30,14 +30,14 @@ export async function openRefEdit(opt: RefEditOptions): Promise<void> {
let doc: { 담은로직?: LaborRow[] };
let 판: string;
try {
const got = await readTemplate(layer, kind, opt.ref.키, null);
const got = await readTemplate(layer, kind, opt.ref.키, null, opt.ref.주인); // 134-3 — 참조 주인 그대로
doc = got.문서 as typeof doc;
판 = got.판 ?? "";
} catch (error) {
return fail(error, "Load_Failed");
}
const save = (body: unknown): Promise<unknown> =>
saveTemplate(layer, kind, opt.ref.키, null, 판, body).then(() =>
saveTemplate(layer, kind, opt.ref.키, null, 판, body, opt.ref.주인).then(() =>
showToast(tc("Saved"), "success"),
);
const notice = opt.readOnly ? `${tc("Ref_Shared")} · ${tc("Ref_ReadOnly")}` : tc("Ref_Shared");
@@ -68,6 +68,7 @@ export async function openRefEdit(opt: RefEditOptions): Promise<void> {
onChanged: (d) => (dirty = d && !opt.readOnly),
goArea: null,
mode: "precombo",
owner: opt.ref.주인,
});
const cancel = createButton({
label: tc(opt.readOnly ? "In_Close" : "In_Cancel"),