summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/equipClassColumnsConfig.ts16
-rw-r--r--config/euserColumnsConfig.ts10
-rw-r--r--config/formListsColumnsConfig.ts15
-rw-r--r--config/menuConfig.ts62
-rw-r--r--config/projectsColumnsConfig.ts42
-rw-r--r--config/tagNumberingColumnsConfig.ts12
-rw-r--r--config/vendorTbeColumnsConfig.ts5
7 files changed, 134 insertions, 28 deletions
diff --git a/config/equipClassColumnsConfig.ts b/config/equipClassColumnsConfig.ts
index 76b85744..cea828b9 100644
--- a/config/equipClassColumnsConfig.ts
+++ b/config/equipClassColumnsConfig.ts
@@ -1,7 +1,7 @@
-import { TagClasses } from "@/db/schema/vendorData"
+import { ExtendedTagClasses } from "@/lib/equip-class/validation"
export interface EquipClassColumnConfig {
- id: keyof TagClasses
+ id: keyof ExtendedTagClasses
label: string
group?: string
excelHeader?: string
@@ -10,6 +10,18 @@ export interface EquipClassColumnConfig {
export const equipclassColumnsConfig: EquipClassColumnConfig[] = [
{
+ id: "projectCode",
+ label: "Project Code",
+ excelHeader: "Project Code",
+ // group: "Basic Info",
+ },
+ {
+ id: "projectName",
+ label: "Project Name",
+ excelHeader: "Project Name",
+ // group: "Basic Info",
+ },
+ {
id: "code",
label: "Code",
excelHeader: "Code",
diff --git a/config/euserColumnsConfig.ts b/config/euserColumnsConfig.ts
index 4f2da5b8..faa49024 100644
--- a/config/euserColumnsConfig.ts
+++ b/config/euserColumnsConfig.ts
@@ -37,11 +37,11 @@ export const euserColumnsConfig: UserColumnConfig[] = [
label: "Email",
excelHeader: "Email",
},
- {
- id: "company_name",
- label: "Company Name",
- excelHeader: "Company Name",
- },
+ // {
+ // id: "company_name",
+ // label: "Company Name",
+ // excelHeader: "Company Name",
+ // },
{
id: "roles",
label: "Roles",
diff --git a/config/formListsColumnsConfig.ts b/config/formListsColumnsConfig.ts
index 1db4e650..fc6aa28c 100644
--- a/config/formListsColumnsConfig.ts
+++ b/config/formListsColumnsConfig.ts
@@ -1,7 +1,8 @@
import { TagTypeClassFormMappings } from "@/db/schema/vendorData"
+import { ExtendedFormMappings } from "@/lib/form-list/validation"
export interface FormListsColumnConfig {
- id: keyof TagTypeClassFormMappings
+ id: keyof ExtendedFormMappings
label: string
group?: string
excelHeader?: string
@@ -10,6 +11,18 @@ export interface FormListsColumnConfig {
export const formListsColumnsConfig: FormListsColumnConfig[] = [
{
+ id: "projectCode",
+ label: "Project Code",
+ excelHeader: "Project Code",
+ // group: "Basic Info",
+ },
+ {
+ id: "projectName",
+ label: "Project Name",
+ excelHeader: "Project Name",
+ // group: "Basic Info",
+ },
+ {
id: "formCode",
label: "Form Code",
excelHeader: "Form Code",
diff --git a/config/menuConfig.ts b/config/menuConfig.ts
index 9e054433..17ca0e13 100644
--- a/config/menuConfig.ts
+++ b/config/menuConfig.ts
@@ -4,51 +4,63 @@ export interface MenuItem {
description?: string;
label?: string;
disabled?: boolean;
+ icon?: string; // 아이콘 이름 (Lucide 아이콘)
+ group?: string; // 소속 그룹
}
export interface MenuSection {
title: string;
items: MenuItem[];
+ useGrouping?: boolean; // 그룹핑 사용 여부
}
export const mainNav: MenuSection[] = [
-
{
title: "기준 정보 관리",
+ useGrouping: true, // 그룹핑 적용
items: [
{
+ title: "프로젝트 리스트",
+ href: "/evcp/projects",
+ description: "MDG에서 받은 프로젝트 리스트",
+ // icon: "Briefcase",
+ group: "기본 정보"
+ },
+ {
title: "아이템 리스트",
href: "/evcp/items",
description: "견적, 입찰, 계약에서 사용되는 아이템 리스트",
- },
- {
- title: "견적번호 관리",
- href: "/evcp/estimatenumber",
- description: "견적(RFQ) 생성 시 부여하는 일련번호 체계를 관리",
+ // icon: "ListTodo",
+ group: "기본 정보"
},
{
title: "PQ(Pre-Qualification) 정보",
href: "/evcp/pq-criteria",
description: "PQ 항목 등을 관리",
+ // icon: "ClipboardCheck",
+ group: "기본 정보"
},
{
title: "Object Class",
href: "/evcp/equip-class",
description: "Equipment Class 리스트",
+ // icon: "Database",
+ group: "기술 정보"
},
{
title: "Tag Numbering",
href: "/evcp/tag-numbering",
description: "Tag Numbering을 위한 기준 정보",
+ // icon: "Tag",
+ group: "기술 정보"
},
{
title: "Form 리스트",
href: "/evcp/form-list",
description: "벤더 데이터 입력을 위한 Form 리스트 확인",
+ // icon: "FileCheck",
+ group: "기술 정보"
},
-
-
-
],
},
{
@@ -84,16 +96,10 @@ export const mainNav: MenuSection[] = [
href: "/evcp/pq",
description: "벤더의 제출 PQ를 확인하고 통과 여부를 결정",
},
- // {
- // title: "벤더 계약 정보",
- // href: "/evcp/vendorcontract",
- // description: "업체별 계약 정보를 출력",
- // },
],
},
-
{
- title: "기술 영업",
+ title: "기술 영업",
items: [
{
title: "Budgetary Quote",
@@ -110,47 +116,63 @@ export const mainNav: MenuSection[] = [
href: "/evcp/bqcbe",
description: "가격(네고), 납기, 계약조건(Incoterms 등) 종합 검토/CBE Report 작성",
},
-
]
},
{
title: "구매 관리",
+ useGrouping: true, // 그룹핑 적용
items: [
-
+ {
+ title: "Budgetary RFQ",
+ href: "/evcp/budgetary-rfq",
+ description: "예산이나 내정가를 산정하기 위해 견적을 요청하고 관리",
+ // icon: "FileText",
+ group: "견적/입찰 관리"
+ },
{
title: "RFQ",
href: "/evcp/rfq",
description: "생성된 견적을 발행하고 관리",
+ // icon: "FileText",
+ group: "견적/입찰 관리"
},
{
title: "입찰 관리",
href: "/evcp/bid",
description: "생성된 입찰을 발행하고 관리",
+ // icon: "GanttChart",
+ group: "견적/입찰 관리"
},
{
title: "기술(품질) 평가 (TBE)",
href: "/evcp/tbe",
description: "S-EDP로부터 생성된 TBE와 업체의 응답에 대한 이력 관리",
+ // icon: "ClipboardCheck",
+ group: "평가 관리"
},
{
title: "상업(가격) 평가 (CBE)",
href: "/evcp/cbe",
description: "가격(네고), 납기, 계약조건(Incoterms 등) 종합 검토/CBE Report 작성",
+ // icon: "DollarSign",
+ group: "평가 관리"
},
{
title: "PO 발행",
href: "/evcp/po",
description: "PO(구매 발주서) 확인/서명 요청/계약 내역 저장",
+ // icon: "FileSignature",
+ group: "발주 관리"
},
{
title: "변경 PO 발행",
href: "/evcp/poa",
description: "변경 PO(구매 발주서) 생성/서명 요청/계약 내역 저장",
+ // icon: "FileEdit",
+ group: "발주 관리"
},
-
],
},
-
{
title: "KPI 및 Report",
items: [
diff --git a/config/projectsColumnsConfig.ts b/config/projectsColumnsConfig.ts
new file mode 100644
index 00000000..d5fd2f99
--- /dev/null
+++ b/config/projectsColumnsConfig.ts
@@ -0,0 +1,42 @@
+import { Project } from "@/db/schema"
+
+export interface ProjectColumnConfig {
+ id: keyof Project
+ label: string
+ group?: string
+ excelHeader?: string
+ type?: string
+}
+
+export const projectsColumnsConfig: ProjectColumnConfig[] = [
+ {
+ id: "code",
+ label: "Project Code",
+ excelHeader: "Project Code",
+ // group: "Basic Info",
+ },
+ {
+ id: "name",
+ label: "Project Name",
+ excelHeader: "Project Name",
+ // group: "Basic Info",
+ },
+ {
+ id: "type",
+ label: "Project Type",
+ excelHeader: "Project Type",
+ // group: "Basic Info",
+ },
+ {
+ id: "createdAt",
+ label: "Created At",
+ excelHeader: "Created At",
+ // group: "Metadata",a
+ },
+ {
+ id: "updatedAt",
+ label: "Updated At",
+ excelHeader: "Updated At",
+ // group: "Metadata",
+ },
+] \ No newline at end of file
diff --git a/config/tagNumberingColumnsConfig.ts b/config/tagNumberingColumnsConfig.ts
index 14d3fad1..3a8f7951 100644
--- a/config/tagNumberingColumnsConfig.ts
+++ b/config/tagNumberingColumnsConfig.ts
@@ -10,6 +10,18 @@ export interface TagNumberingColumnConfig {
export const tagNumberingColumnsConfig: TagNumberingColumnConfig[] = [
{
+ id: "projectCode",
+ label: "Project Code",
+ excelHeader: "Project Code",
+ // group: "Basic Info",
+ },
+ {
+ id: "projectName",
+ label: "Project Name",
+ excelHeader: "Project Name",
+ // group: "Basic Info",
+ },
+ {
id: "tagTypeCode",
label: "Tag Type Code",
excelHeader: "Tag Type Code"
diff --git a/config/vendorTbeColumnsConfig.ts b/config/vendorTbeColumnsConfig.ts
index 1299cebe..b9094786 100644
--- a/config/vendorTbeColumnsConfig.ts
+++ b/config/vendorTbeColumnsConfig.ts
@@ -131,6 +131,11 @@ export interface VendorTbeColumnConfig {
* 어떤 컬럼들을 어떤 순서로 표시할 것인지 정의.
*/
export const vendorTbeColumnsConfig: VendorTbeColumnConfig[] = [
+ {
+ id: "rfqCode",
+ label: "RFQ Code",
+ excelHeader:"RFQ Code",
+ },
{
id: "vendorName",
label: "Vendor Name",