summaryrefslogtreecommitdiff
path: root/lib/vendor-pool/types.ts
blob: 8a6e9881f40456a20df58ee7ecf139c443088e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/**
 * Vendor Pool 데이터 타입 정의
 */

export interface VendorPool {
  id: number
  // 선택 체크박스
  selected?: boolean

  // 기본 정보
  constructionSector: string // 공사부문: 조선 또는 해양
  htDivision: string // H/T구분: H 또는 T

  // 설계 정보
  designCategoryCode: string // 설계기능(공종) 코드: 2자리 영문대문자
  designCategory: string // 설계기능(공종): 전장 등
  equipBulkDivision: string // Equip/Bulk 구분: E 또는 B

  // 패키지 정보
  packageCode: string
  packageName: string

  // 자재그룹 정보
  materialGroupCode: string
  materialGroupName: string

  // 자재 관련 정보
  smCode: string
  similarMaterialNamePurchase: string // 유사자재명 (구매)
  similarMaterialNameOther: string // 유사자재명 (구매 외)

  // 협력업체 정보
  vendorCode: string
  vendorName: string

  // 사업 및 인증 정보
  faTarget: boolean // FA대상
  faStatus: string // FA현황
  faRemark: string // FA상세
  tier: string // 등급
  isAgent: boolean // Agent 여부

  // 계약 정보
  contractSignerCode: string
  contractSignerName: string

  // 위치 정보
  headquarterLocation: string // 본사 위치 (국가)
  manufacturingLocation: string // 제작/선적지 (국가)

  // AVL 관련 정보
  avlVendorName: string // AVL 등재업체명
  similarVendorName: string // 유사업체명(기술영업)
  hasAvl: boolean // AVL 존재여부

  // 상태 정보
  isBlacklist: boolean // Blacklist
  isBcc: boolean // BCC
  purchaseOpinion: string // 구매의견

  // AVL 적용 선종(조선)
  shipTypeCommon: boolean // 공통
  shipTypeAmax: boolean // A-max
  shipTypeSmax: boolean // S-max
  shipTypeVlcc: boolean // VLCC
  shipTypeLngc: boolean // LNGC
  shipTypeCont: boolean // CONT

  // AVL 적용 선종(해양)
  offshoreTypeCommon: boolean // 공통
  offshoreTypeFpso: boolean // FPSO
  offshoreTypeFlng: boolean // FLNG
  offshoreTypeFpu: boolean // FPU
  offshoreTypePlatform: boolean // Platform
  offshoreTypeWtiv: boolean // WTIV
  offshoreTypeGom: boolean // GOM

  // eVCP 미등록 정보
  picName: string // PIC(담당자)
  picEmail: string // PIC(E-mail)
  picPhone: string // PIC(Phone)
  agentName: string // Agent(담당자)
  agentEmail: string // Agent(E-mail)
  agentPhone: string // Agent(Phone)

  // 업체 실적 현황
  recentQuoteDate: string // 최근견적일
  recentQuoteNumber: string // 최근견적번호
  recentOrderDate: string // 최근발주일
  recentOrderNumber: string // 최근발주번호

  // 업데이트 히스토리
  registrationDate: string // 등재일
  registrant: string // 등재자
  lastModifiedDate: string // 최종변경일
  lastModifier: string // 최종변경자
}

// Vendor Pool 액션 타입들
export type VendorPoolActionType =
  | "new-registration"    // 신규등록
  | "bulk-import"         // 일괄입력
  | "fa-detail"          // FA상세
  | "save"               // 저장
  | "fixed-values"       // 고정값 설정
  | "edit"               // 수정
  | "delete"             // 삭제
  | "view-detail"        // 상세보기