feat(M01): B01 마스터 데이터 단추 하나로 · 시중물가 「조달 찾기」 모달 · 찾기 API

- B01 옛 「마스터 데이터」(Z01) 단추 제거 · 「마스터 요소」 이름을 「마스터 데이터」 로
- 재료 › 시중물가 줄마다 「조달 찾기」 — 나라장터자재 + 시중물가 조달 줄을 이름·규격으로 찾아 「나라장터:<열쇠>」 연결 · 노랑 표시 · 연결 끊기
- GET /api/m01/procurement 추가 · 값 묶음(조달{…}) 확정 전이라 연결은 조달›연결 칸에 임시로 담음

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WRFJmmhPi4exAzHgPZHMT
This commit is contained in:
2026-09-19 23:29:17 +09:00
co-authored by Claude Sonnet 5
parent dd120ce44b
commit f80046e4ae
9 changed files with 203 additions and 8 deletions
@@ -107,3 +107,14 @@ export async function saveFiles(files: FileChanges[]): Promise<SaveResult> {
if (status === 422 && typeof detail === "object") return { status, errors: detail.errors ?? [] };
return { status, detail: typeof detail === "string" ? detail : JSON.stringify(detail) };
}
export interface ProcureItem {
ref: string;
이름: string;
규격: string;
단위: string;
값: unknown;
}
export const fetchProcurement = (q: string): Promise<{ total: number; items: ProcureItem[] }> =>
get("/procurement", { q, limit: 50 });