feat(API):자재 투입 LOT 조회 API 및 중간검사 데이터 정규화

- materialInputLots: stock_transactions 기반 투입 LOT 조회 엔드포인트 추가
- createInspectionDocument: 정규화 형식(section_id/column_id/field_key) 지원
- 레거시 형식(section_X_item_Y) 자동 변환 로직 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 00:01:25 +09:00
parent 818f764aa5
commit 376348a491
3 changed files with 227 additions and 25 deletions

View File

@@ -189,6 +189,16 @@ public function materialInputHistory(int $id)
}, __('message.work_order.fetched'));
}
/**
* 자재 투입 LOT 번호 조회 (stock_transactions 기반)
*/
public function materialInputLots(int $id)
{
return ApiResponse::handle(function () use ($id) {
return $this->service->getMaterialInputLots($id);
}, __('message.work_order.fetched'));
}
/**
* 품목별 중간검사 데이터 저장
*/