fix: MES 모델 및 서비스 개선

- WorkOrderItem 모델 관계 정의 추가
- InspectionService, WorkResultService 로직 개선
- ItemReceipt, Inspection 모델 수정
- work_order_items 테이블에 options 컬럼 추가 마이그레이션

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-15 08:52:53 +09:00
parent 12ca2cf4d3
commit 566f34a4c9
8 changed files with 312 additions and 144 deletions

View File

@@ -69,7 +69,7 @@ public function index(array $params)
$transformedData = $paginated->getCollection()->map(fn ($item) => $this->transformToFrontend($item));
return [
'data' => $transformedData,
'items' => $transformedData,
'current_page' => $paginated->currentPage(),
'last_page' => $paginated->lastPage(),
'per_page' => $paginated->perPage(),