summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-07-21 07:54:26 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-07-21 07:54:26 +0000
commit14f61e24947fb92dd71ec0a7196a6e815f8e66da (patch)
tree317c501d64662d05914330628f867467fba78132 /config
parent194bd4bd7e6144d5c09c5e3f5476d254234dce72 (diff)
(최겸)기술영업 RFQ 담당자 초대, 요구사항 반영
Diffstat (limited to 'config')
-rw-r--r--config/techVendorColumnsConfig.ts60
-rw-r--r--config/techVendorContactsColumnsConfig.ts88
2 files changed, 103 insertions, 45 deletions
diff --git a/config/techVendorColumnsConfig.ts b/config/techVendorColumnsConfig.ts
index bbb2586a..e6ae2eaa 100644
--- a/config/techVendorColumnsConfig.ts
+++ b/config/techVendorColumnsConfig.ts
@@ -76,6 +76,18 @@ export const techVendorColumnsConfig: VendorColumnConfig[] = [
},
{
+ id: "countryEng",
+ label: "국가(영문)",
+ excelHeader: "국가(영문)",
+ },
+
+ {
+ id: "countryFab",
+ label: "제조국가",
+ excelHeader: "제조국가",
+ },
+
+ {
id: "phone",
label: "전화번호",
excelHeader: "전화번호",
@@ -92,6 +104,52 @@ export const techVendorColumnsConfig: VendorColumnConfig[] = [
label: "웹사이트",
excelHeader: "웹사이트",
// group: "Metadata",
- },
+ },
+
+ // 에이전트 정보
+ {
+ id: "agentName",
+ label: "에이전트명",
+ excelHeader: "에이전트명",
+ group: "에이전트 정보",
+ },
+ {
+ id: "agentEmail",
+ label: "에이전트 이메일",
+ excelHeader: "에이전트 이메일",
+ group: "에이전트 정보",
+ },
+ {
+ id: "agentPhone",
+ label: "에이전트 번호",
+ excelHeader: "에이전트 번호",
+ group: "에이전트 정보",
+ },
+
+ // 대표자 정보
+ {
+ id: "representativeName",
+ label: "대표자명",
+ excelHeader: "대표자명",
+ group: "대표자 정보",
+ },
+ {
+ id: "representativeEmail",
+ label: "대표자 이메일",
+ excelHeader: "대표자 이메일",
+ group: "대표자 정보",
+ },
+ {
+ id: "representativePhone",
+ label: "대표자 전화번호",
+ excelHeader: "대표자 전화번호",
+ group: "대표자 정보",
+ },
+ {
+ id: "representativeBirth",
+ label: "대표자 생년월일",
+ excelHeader: "대표자 생년월일",
+ group: "대표자 정보",
+ },
]; \ No newline at end of file
diff --git a/config/techVendorContactsColumnsConfig.ts b/config/techVendorContactsColumnsConfig.ts
index e1afe200..4de48c81 100644
--- a/config/techVendorContactsColumnsConfig.ts
+++ b/config/techVendorContactsColumnsConfig.ts
@@ -1,70 +1,70 @@
-import { TechVendorContact } from "@/db/schema/techVendors";
+import { TechVendorContact } from "@/db/schema/techVendors"
-/**
- * 테이블/엑셀에 보여줄 컬럼 한 칸을 어떻게 렌더링할지 결정하는 설정
- */
-export interface TechVendorColumnConfig {
- /**
- * TechVendorContact 객체의 어느 필드를 표시할지
- */
- id: keyof TechVendorContact;
-
- /** 화면·엑셀에서 보여줄 컬럼명 */
- label: string;
-
- /** (선택) 그룹핑/카테고리 */
- group?: string;
-
- /** (선택) Excel에서의 헤더 */
- excelHeader?: string;
-
- /** (선택) 데이터 타입(예: date, string, number 등), 포맷 지정용 */
- type?: string;
+export interface TechVendorContactColumnConfig {
+ id: keyof TechVendorContact
+ label: string
+ group?: string
+ excelHeader?: string
+ type?: string
}
-/**
- * Tech Vendor Contacts 테이블에서
- * 어떤 컬럼들을 어떤 순서로 표시할 것인지 정의.
- */
-export const techVendorContactsColumnsConfig: TechVendorColumnConfig[] = [
+export const techVendorContactsColumnsConfig: TechVendorContactColumnConfig[] = [
+ // 기본 정보
{
id: "contactName",
- label: "Contact Name",
- excelHeader: "Contact Name",
+ label: "담당자명",
+ type: "text",
+ group: "기본 정보",
+ excelHeader: "담당자명",
},
{
id: "contactPosition",
- label: "Contact Position",
- excelHeader: "Contact Position",
+ label: "직책",
+ type: "text",
+ group: "기본 정보",
+ excelHeader: "직책",
},
{
id: "contactEmail",
- label: "Contact Email",
- excelHeader: "Contact Email",
+ label: "이메일",
+ type: "email",
+ group: "연락처",
+ excelHeader: "이메일",
},
{
id: "contactPhone",
- label: "Contact Phone",
- excelHeader: "Contact Phone",
+ label: "전화번호",
+ type: "text",
+ group: "연락처",
+ excelHeader: "전화번호",
},
{
- id: "country",
- label: "Country",
- excelHeader: "Country",
+ id: "contactCountry",
+ label: "국가",
+ type: "text",
+ group: "기본 정보",
+ excelHeader: "국가",
},
{
id: "isPrimary",
- label: "isPrimary",
- excelHeader: "isPrimary",
+ label: "주담당자",
+ type: "boolean",
+ group: "기본 정보",
+ excelHeader: "주담당자",
},
+ // 시스템 정보
{
id: "createdAt",
- label: "Created At",
- excelHeader: "Created At",
+ label: "생성일",
+ type: "date",
+ group: "시스템 정보",
+ excelHeader: "생성일",
},
{
id: "updatedAt",
- label: "Updated At",
- excelHeader: "Updated At",
+ label: "수정일",
+ type: "date",
+ group: "시스템 정보",
+ excelHeader: "수정일",
},
-]; \ No newline at end of file
+] \ No newline at end of file