feat: [생산지시] 전용 API + 자재투입/공정 개선
- ProductionOrder 전용 엔드포인트 (목록/통계/상세) - 재고생산 보조공정 일반 워크플로우에서 분리 - 자재투입 replace 모드 + bom_group_key 개별 저장 - 공정단계 options 컬럼 추가 (검사 설정/범위) - 셔터박스 prefix isStandard 파라미터 제거 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -230,6 +230,16 @@ public function inspectionReport(int $id)
|
||||
}, __('message.work_order.fetched'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 작업지시 검사 설정 조회 (공정 자동 판별 + 구성품 목록)
|
||||
*/
|
||||
public function inspectionConfig(int $id)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($id) {
|
||||
return $this->service->getInspectionConfig($id);
|
||||
}, __('message.work_order.fetched'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 작업지시의 검사용 문서 템플릿 조회
|
||||
*/
|
||||
@@ -310,7 +320,14 @@ public function materialsForItem(int $id, int $itemId)
|
||||
public function registerMaterialInputForItem(MaterialInputForItemRequest $request, int $id, int $itemId)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($request, $id, $itemId) {
|
||||
return $this->service->registerMaterialInputForItem($id, $itemId, $request->validated()['inputs']);
|
||||
$validated = $request->validated();
|
||||
|
||||
return $this->service->registerMaterialInputForItem(
|
||||
$id,
|
||||
$itemId,
|
||||
$validated['inputs'],
|
||||
(bool) ($validated['replace'] ?? false)
|
||||
);
|
||||
}, __('message.work_order.material_input_registered'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user