feat(M01): 준용 고르면 값 따라옴 · 인력 상태 거름 · 유가전력 구분·상세구분 거름

- 인력 준용 고르기 — 값 칸이 고른 직종 값으로 바뀌어 노랑 · 비우면 원래 값
- 저장 때 서버가 준용 직종 값을 다시 읽어 값 칸에 채움(화면 값 불신)
- 인력 왼쪽 패널 「상태」 드롭다운(목록은 서버) · 재료 유가전력 2단 거름
- 시험 2개 더함

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WRFJmmhPi4exAzHgPZHMT
This commit is contained in:
2026-09-20 20:03:59 +09:00
co-authored by Claude Sonnet 5
parent 572fb8e5ee
commit 4b1eeec524
8 changed files with 171 additions and 40 deletions
+9 -3
View File
@@ -112,13 +112,19 @@ export const fetchRows = (
unlinked = false,
sub = "",
detail = "",
state = "",
): Promise<RowsPage> =>
get<RowsPage>("/rows", { file, page, size, q, unlinked: unlinked ? 1 : 0, sub, detail });
get<RowsPage>("/rows", { file, page, size, q, unlinked: unlinked ? 1 : 0, sub, detail, state });
/** 한 테이블 파일은 `file` · 장 그룹(소요량 · 계수 · 로직)은 `group` 으로 부름. */
export const fetchSubsAll = (where: {
file?: string;
group?: string;
}): Promise<{ subs: SubInfo[]; states?: string[] }> =>
get("/subs", { file: where.file ?? "", group: where.group ?? "" });
export const fetchSubs = async (where: { file?: string; group?: string }): Promise<SubInfo[]> =>
(await get<{ subs: SubInfo[] }>("/subs", { file: where.file ?? "", group: where.group ?? "" }))
.subs;
(await fetchSubsAll(where)).subs;
export const fetchTables = (
group: string,