feat: POP 작업상세 체크리스트 UI를 judgment_criteria 기반으로 매핑

- 백엔드: /api/pop/production/checklist-items/:processId 신규 추가
  process_work_result ⟕ inspection_standard(judgment_criteria) LEFT JOIN으로
  한 번에 반환 (inspection_code 미설정 시 null로 안전)

- 프론트: resolveInputType + normalizeByJudgmentCriteria + normalizeByDetailType
  1순위: judgment_criteria (CAT_JC_01~04) → inspect/numeric_range/ox/select/text
  2순위: detail_type 폴백
    - checklist/equip_inspection → check(토글)
    - inspection/equip_condition/production_result → inspect(숫자 키패드)
    - lookup → input(텍스트)
    - material_input → material(BOM 자재)
  기존 canonical 값은 건드리지 않아 회귀 없음

- fetchData는 전용 API 사용 + 실패 시 기존 dataApi.getTableData로 폴백
This commit is contained in:
SeongHyun Kim
2026-04-07 12:06:01 +09:00
parent 9361b2484a
commit 450247026c
3 changed files with 238 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ import {
getBomMaterials,
saveMaterialInput,
getMaterialInputs,
getChecklistItems,
} from "../controllers/popProductionController";
const router = Router();
@@ -49,5 +50,6 @@ router.get("/rework-history/:woId", getReworkHistory);
router.get("/bom-materials/:processId", getBomMaterials);
router.post("/material-input", saveMaterialInput);
router.get("/material-inputs/:processId", getMaterialInputs);
router.get("/checklist-items/:processId", getChecklistItems);
export default router;