fix(WEB): 수주 페이지 필드 매핑 및 제품-부품 트리 구조 개선
- ApiClient 인터페이스: representative → manager_name, contact_person 변경 - transformApiToFrontend: client.representative → client.manager_name 수정 - ApiOrderItem에 floor_code, symbol_code 필드 추가 (제품-부품 매핑) - ApiOrder에 options 타입 정의 추가 - ApiQuote에 calculation_inputs 타입 정의 추가 - 수주 상세 페이지 제품-부품 트리 구조 UI 개선
This commit is contained in:
@@ -66,7 +66,7 @@ public function index(array $params)
|
||||
$query->where('options->result->completed_at', '>=', $workDateFrom);
|
||||
}
|
||||
if ($workDateTo !== null) {
|
||||
$query->where('options->result->completed_at', '<=', $workDateTo . ' 23:59:59');
|
||||
$query->where('options->result->completed_at', '<=', $workDateTo.' 23:59:59');
|
||||
}
|
||||
|
||||
// 검사 완료 필터
|
||||
@@ -129,7 +129,7 @@ public function stats(array $params = []): array
|
||||
$query->where('options->result->completed_at', '>=', $workDateFrom);
|
||||
}
|
||||
if ($workDateTo !== null) {
|
||||
$query->where('options->result->completed_at', '<=', $workDateTo . ' 23:59:59');
|
||||
$query->where('options->result->completed_at', '<=', $workDateTo.' 23:59:59');
|
||||
}
|
||||
|
||||
// JSON에서 집계 (MySQL/MariaDB 기준)
|
||||
@@ -289,4 +289,4 @@ public function togglePackaging(int $id)
|
||||
|
||||
return $item->fresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user