fix: [quote] QA 견적 관련 버그 수정

- BOM 탭 순서 통일 (주자재→모터→제어기→절곡품→부자재→검사비→기타)
- 스크린+스틸 혼합 등록 차단 밸리데이션
- 저장/확정 분리 (저장=draft, 견적확정=finalized)
- 수동 품목 추가 시 기타 탭 병합 + 탭 스크롤
- 필터 셀렉트박스 라벨 접두어 추가
- 수식 모달 하단 여백, tabLabel 중복 제거
This commit is contained in:
2026-03-17 13:51:18 +09:00
parent 9b6f4c6684
commit 704ea3c02d
9 changed files with 127 additions and 44 deletions

View File

@@ -22,6 +22,8 @@ interface ItemSearchModalProps {
tabLabel?: string;
/** 품목 유형 필터 (예: 'RM', 'SF', 'FG') */
itemType?: string;
/** BOM 카테고리 필터 (material, motor, controller, steel, parts, inspection) */
bomCategory?: string;
}
// 검색어 유효성: 영문, 한글, 숫자 1자 이상
@@ -40,15 +42,17 @@ export function ItemSearchModal({
onSelectItem,
tabLabel,
itemType,
bomCategory,
}: ItemSearchModalProps) {
const handleFetchData = useCallback(async (query: string) => {
const data = await fetchItems({
search: query || undefined,
itemType: itemType as ItemType | undefined,
bom_category: bomCategory || undefined,
per_page: 50,
});
return data;
}, [itemType]);
}, [itemType, bomCategory]);
const handleSelect = useCallback((item: ItemMaster) => {
onSelectItem({