feat(563-2): D04 표 = 조각 줄(연도 · 선) · 조각마다 업체 · B03 가져오기 · B01 받은 예정노선 = 조각 이름

- D04 업체 추가 · 저장에 조각 id · 옛 연도 지정 업체 = 그 연도 첫 줄
- B03 [예정노선에서 가져오기] 줄 · B01 받은 예정노선 연도 칸 · [연결] 제목에 「본선 0+0~12+10」

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 20:39:12 +09:00
co-authored by Claude Opus 5.5
parent 7c94294f85
commit f558f5d2ba
4 changed files with 55 additions and 19 deletions
+7 -2
View File
@@ -1,7 +1,7 @@
/* =============================================================================
* B03_FileInput_UI_PlanImport.ts
* 예정노선에서 가져오기(요구서 345 3-5 · PLAN 531-3) — 본보기 `B03_FileInput_UI_TempPicker.ts`.
* 노선 칸 옆 [예정노선에서 가져오기] = 우리 회사에 지정된 확정 연도 고르기 →
* 노선 칸 옆 [예정노선에서 가져오기] = 우리 회사에 지정된 확정 조각(옛 = 연도) 고르기 →
* POST /api/dashboard/plan-routes/{assignee}/link {mode: existing, project_id: 이 프로젝트}.
* 머리 띠 = 이어 받은 예정노선이 바뀌면 「예정노선이 바뀜 — [다시 가져오기]」(같은 길 · 자동 반영 없음).
* 옛 결과가 지워지면 서버가 409 confirm 으로 묻고 → 확인 창 → confirm_replace 로 다시.
@@ -25,6 +25,8 @@ interface AssignedRoute {
assignee_id: number;
project_name: string;
year: number;
/** 조각 이름 「본선 0+0~12+10」 — 옛 연도 지정 = null */
piece_label: string | null;
linked_project_id: string | null;
linked_project_name: string | null;
update_available: boolean;
@@ -157,7 +159,10 @@ export function mountPlanImport(
: "";
body.append(
createListRow({
label: `${route.project_name} · ${route.year}${linked}`,
label: [route.project_name, route.year, route.piece_label]
.filter(Boolean)
.join(" · ")
.concat(linked),
trailing: createButton({
label: t("D04_Import_Btn"),
variant: "filled",