feat: 단가관리 페이지 마이그레이션 및 HR 관리 기능 추가

## 단가관리 (Pricing Management)
- 단가 목록 페이지 (IntegratedListTemplateV2 공통 템플릿 적용)
- 단가 등록/수정 폼 (원가/마진 자동 계산)
- 이력 조회, 수정 이력, 최종 확정 다이얼로그
- 판매관리 > 단가관리 네비게이션 메뉴 추가

## HR 관리 (Human Resources)
- 사원관리 (목록, 등록, 수정, 상세, CSV 업로드)
- 부서관리 (트리 구조)
- 근태관리 (기본 구조)

## 품목관리 개선
- Radix UI Select controlled mode 버그 수정 (key prop 적용)
- DynamicItemForm 파일 업로드 지원
- 수정 페이지 데이터 로딩 개선

## 문서화
- 단가관리 마이그레이션 체크리스트
- HR 관리 구현 체크리스트
- Radix UI Select 버그 수정 가이드

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
byeongcheolryu
2025-12-06 11:36:38 +09:00
parent 751e65f59b
commit 48dbba0e5f
59 changed files with 9888 additions and 101 deletions

View File

@@ -80,6 +80,22 @@ export function DropdownField({
// 옵션이 없으면 드롭다운을 disabled로 표시
const hasOptions = options.length > 0;
// 디버깅: 단위 필드 값 추적
if (isUnitField) {
console.log('[DropdownField] 단위 필드 디버깅:', {
fieldKey,
fieldName: field.field_name,
rawValue: value,
stringValue,
isUnitField,
unitOptionsCount: unitOptions?.length || 0,
unitOptions: unitOptions?.slice(0, 3), // 처음 3개만
optionsCount: options.length,
options: options.slice(0, 3), // 처음 3개만
valueInOptions: options.some(o => o.value === stringValue),
});
}
return (
<div>
<Label htmlFor={fieldKey}>
@@ -87,6 +103,7 @@ export function DropdownField({
{field.is_required && <span className="text-red-500"> *</span>}
</Label>
<Select
key={`${fieldKey}-${stringValue}`}
value={stringValue}
onValueChange={onChange}
disabled={disabled || !hasOptions}