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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
// 기본 계약 관련 컬럼 설정 파일
import { BasicContractTemplate, BasicContractView } from "@/db/schema";
// 컬럼 설정 인터페이스
export interface BasicContractColumnConfig {
/** 테이블에서 접근할 필드 */
id: keyof BasicContractView;
/** 화면에 표시될 컬럼명 */
label: string;
/** (선택) 그룹핑/카테고리 */
group?: string;
/** (선택) Excel 내보내기용 헤더 */
excelHeader?: string;
/** (선택) 데이터 타입(포맷팅 용도) */
type?: 'string' | 'number' | 'date' | 'boolean';
}
// 템플릿 컬럼 설정 인터페이스
export interface BasicContractTemplateColumnConfig {
/** 테이블에서 접근할 필드 */
id: keyof BasicContractTemplate;
/** 화면에 표시될 컬럼명 */
label: string;
/** (선택) 그룹핑/카테고리 */
group?: string;
/** (선택) Excel 내보내기용 헤더 */
excelHeader?: string;
/** (선택) 데이터 타입(포맷팅 용도) */
type?: 'string' | 'number' | 'date' | 'boolean';
}
// 기본 계약 컬럼 설정
export const basicContractColumnsConfig: BasicContractColumnConfig[] = [
{
id: "vendorCode",
label: "Vendor Code",
excelHeader: "Vendor Code",
group: "벤더 정보",
},
{
id: "vendorName",
label: "업체명",
excelHeader: "업체명",
group: "벤더 정보",
},
{
id: "vendorEmail",
label: "업체대표이메일",
excelHeader: "업체대표이메일",
group: "벤더 정보",
},
// 계약 기본 정보 그룹
{
id: "templateName",
label: "템플릿 이름",
excelHeader: "템플릿 이름",
// group: "기본 정보",
},
{
id: "status",
label: "서명 상태",
excelHeader: "서명 상태",
// group: "기본 정보",
},
// 벤더 정보 그룹
// 요청자 정보 그룹
{
id: "userName",
label: "요청자",
excelHeader: "요청자",
// group: "요청자 정보",
},
// 날짜 정보 그룹
{
id: "createdAt",
label: "Request Date",
excelHeader: "Request Date",
group: "날짜 정보",
type: "date",
},
{
id: "updatedAt",
label: "Updated Date",
excelHeader: "Updated Date",
group: "날짜 정보",
type: "date",
},
];
// 기본 계약 템플릿 컬럼 설정
export const basicContractTemplateColumnsConfig: BasicContractTemplateColumnConfig[] = [
// 템플릿 기본 정보 그룹
{
id: "templateName",
label: "Template Name",
excelHeader: "Template Name",
group: "기본 정보",
},
{
id: "validityPeriod",
label: "서명 유효기간(개월)",
excelHeader: "서명 유효기간(개월)",
// group: "기본 정보",
},
{
id: "status",
label: "Status",
excelHeader: "Status",
group: "기본 정보",
},
// 파일 정보 그룹
{
id: "fileName",
label: "File Name",
excelHeader: "File Name",
group: "파일 정보",
},
// 날짜 정보 그룹
{
id: "createdAt",
label: "Created Date",
excelHeader: "Created Date",
group: "날짜 정보",
type: "date",
},
{
id: "updatedAt",
label: "Updated Date",
excelHeader: "Updated Date",
group: "날짜 정보",
type: "date",
},
];
export const basicContractVendorColumnsConfig: BasicContractColumnConfig[] = [
// 계약 기본 정보 그룹
{
id: "templateName",
label: "템플릿 이름",
excelHeader: "템플릿 이름",
// group: "기본 정보",
},
{
id: "validityPeriod",
label: "서명 유효기간(개월)",
excelHeader: "서명 유효기간(개월)",
// group: "기본 정보",
},
{
id: "status",
label: "서명 상태",
excelHeader: "서명 상태",
// group: "기본 정보",
},
// 벤더 정보 그룹
// 요청자 정보 그룹
{
id: "userName",
label: "요청자",
excelHeader: "요청자",
// group: "요청자 정보",
},
// 날짜 정보 그룹
{
id: "createdAt",
label: "Request Date",
excelHeader: "Request Date",
group: "날짜 정보",
type: "date",
},
{
id: "completedAt",
label: "서명완료일",
excelHeader: "서명완료일",
group: "날짜 정보",
type: "date",
},
{
id: "updatedAt",
label: "Updated Date",
excelHeader: "Updated Date",
group: "날짜 정보",
type: "date",
},
];
|