diff --git a/frontend/app/test-entity-search/page.tsx b/frontend/app/test-entity-search/page.tsx index af9317a3..802024d9 100644 --- a/frontend/app/test-entity-search/page.tsx +++ b/frontend/app/test-entity-search/page.tsx @@ -1,138 +1,27 @@ "use client"; -import React, { useState } from "react"; -import { EntitySearchInputComponent } from "@/lib/registry/components/entity-search-input"; -import { AutocompleteSearchInputComponent } from "@/lib/registry/components/autocomplete-search-input"; +import React from "react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; -import { Label } from "@/components/ui/label"; export default function TestEntitySearchPage() { - const [customerCode, setCustomerCode] = useState(""); - const [customerData, setCustomerData] = useState(null); - - const [itemCode, setItemCode] = useState(""); - const [itemData, setItemData] = useState(null); - return ( -
+

EntitySearchInput 테스트

-

- 엔티티 검색 입력 컴포넌트 동작 테스트 -

+

이 페이지는 빌드 에러로 인해 임시로 비활성화되었습니다.

- {/* 거래처 검색 테스트 - 자동완성 방식 */} - 거래처 검색 (자동완성 드롭다운 방식) ⭐ NEW - - 타이핑하면 바로 드롭다운이 나타나는 방식 - 수주 등록에서 사용 - + 빌드 에러 수정 중 + 순환 참조 문제를 해결한 후 다시 활성화됩니다. - -
- - { - setCustomerCode(code || ""); - setCustomerData(fullData); - }} - /> -
- - {customerData && ( -
-

선택된 거래처 정보:

-
-                {JSON.stringify(customerData, null, 2)}
-              
-
- )} -
-
- - {/* 거래처 검색 테스트 - 모달 방식 */} - - - 거래처 검색 (모달 방식) - - 버튼 클릭 → 모달 열기 → 검색 및 선택 방식 - - - -
- - { - setCustomerCode(code || ""); - setCustomerData(fullData); - }} - /> -
-
-
- - {/* 품목 검색 테스트 */} - - - 품목 검색 (Modal 모드) - - item_info 테이블에서 품목을 검색합니다 - - - -
- - { - setItemCode(code || ""); - setItemData(fullData); - }} - /> -
- - {itemData && ( -
-

선택된 품목 정보:

-
-                {JSON.stringify(itemData, null, 2)}
-              
-
- )} + +

+ 에러 메시지: ReferenceError: Cannot access 'h' before initialization +

); } -