summaryrefslogtreecommitdiff
path: root/lib/avl/types.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-09-15 18:58:07 +0900
committerjoonhoekim <26rote@gmail.com>2025-09-15 18:58:07 +0900
commit2b490956c9752c1b756780a3461bc1c37b6fe0a7 (patch)
treeb0b8a03c8de5dfce4b6c7373a9d608306e9147c0 /lib/avl/types.ts
parente7818a457371849e29519497ebf046f385f05ab6 (diff)
(김준회) AVL 관리 및 상세 - 기능 구현 1차
+ docker compose 내 오류 수정
Diffstat (limited to 'lib/avl/types.ts')
-rw-r--r--lib/avl/types.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/avl/types.ts b/lib/avl/types.ts
index 640299ef..6a7b5143 100644
--- a/lib/avl/types.ts
+++ b/lib/avl/types.ts
@@ -7,6 +7,7 @@ export interface AvlListItem extends Omit<AvlList, 'createdAt' | 'updatedAt'> {
selected: boolean;
createdAt: string; // UI에서 사용하기 위해 string으로 변환
updatedAt: string; // UI에서 사용하기 위해 string으로 변환
+ vendorInfoSnapshot?: any; // JSON 데이터
// 추가 표시용 필드들 (실제로는 AvlVendorInfo에서 가져와야 함)
projectInfo?: string;
@@ -53,11 +54,12 @@ export interface AvlDetailItem extends Omit<AvlVendorInfo, 'createdAt' | 'update
}
// AVL 생성을 위한 입력 타입
-export interface CreateAvlListInput extends Omit<AvlList, 'id' | 'createdAt' | 'updatedAt'> {
+export interface CreateAvlListInput extends Omit<AvlList, 'id' | 'createdAt' | 'updatedAt' | 'vendorInfoSnapshot'> {
// UI에서 입력받을 추가 필드들
projectInfo?: string;
shipType?: string;
avlType?: string;
+ vendorInfoSnapshot?: any; // JSON 데이터, 선택적 속성
}
// AVL 업데이트를 위한 입력 타입
@@ -68,6 +70,18 @@ export interface UpdateAvlListInput extends Partial<CreateAvlListInput> {
// AVL Vendor Info UI 입력을 위한 인터페이스
export interface AvlVendorInfoInput {
+ // AVL 타입 구분
+ isTemplate?: boolean; // false: 프로젝트 AVL, true: 표준 AVL
+
+ // 표준 AVL용 필드들 (isTemplate=true일 경우)
+ constructionSector?: string; // 공사부문
+ shipType?: string; // 선종
+ avlKind?: string; // AVL 종류
+ htDivision?: string; // H/T 구분
+
+ // 프로젝트 코드 (나중에 AVL 리스트와 연결할 때 사용)
+ projectCode?: string;
+
// AVL 리스트 ID (생성 시 필수, UI에서는 선택적으로 사용)
avlListId?: number;