From 90f79a7a691943a496f67f01c1e493256070e4de Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 7 Jul 2025 01:44:45 +0000 Subject: (대표님) 변경사항 20250707 10시 43분 - unstaged 변경사항 추가 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/dashboard.d.ts | 15 +++++++++++++++ types/evaluation.ts | 32 ++++++++++++++++++++++++++++++++ types/table.d.ts | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 types/dashboard.d.ts create mode 100644 types/evaluation.ts (limited to 'types') diff --git a/types/dashboard.d.ts b/types/dashboard.d.ts new file mode 100644 index 00000000..125ddae0 --- /dev/null +++ b/types/dashboard.d.ts @@ -0,0 +1,15 @@ +export type DashboardStatus = 'pending' | 'in_progress' | 'completed'; + +export interface TableConfig { + tableName: string; + displayName: string; + domain: string; + statusField: string; + statusMapping: Record; + userFields: { + creator?: string; + updater?: string; + assignee?: string; + }; + additionalFilters?: Record; +} diff --git a/types/evaluation.ts b/types/evaluation.ts new file mode 100644 index 00000000..9cf1f2c0 --- /dev/null +++ b/types/evaluation.ts @@ -0,0 +1,32 @@ +export const DEPARTMENT_CODE_LABELS = { + ORDER_EVAL: "발주 평가 담당", + PROCUREMENT_EVAL: "조달 평가 담당", + QUALITY_EVAL: "품질 평가 담당", + DESIGN_EVAL: "설계 평가 담당", + CS_EVAL: "CS 평가 담당", + } as const + + + export const vendortypeMap = { + EQUIPMENT: "기자재", + BULK: "벌크", + EQUIPMENT_BULK: "기자재/벌크" + }; + + + export const divisionMap = { + PLANT: "해양", + SHIP: "조선" + }; + + + export const domesticForeignMap = { + DOMESTIC: "D", + FOREIGN: "F" +}; + + export type EvaluationTargetStatus = "PENDING" | "CONFIRMED" | "EXCLUDED"; + export type Division = "PLANT" | "SHIP"; + export type MaterialType = "EQUIPMENT" | "BULK" | "EQUIPMENT_BULK"; + export type DomesticForeign = "DOMESTIC" | "FOREIGN"; + \ No newline at end of file diff --git a/types/table.d.ts b/types/table.d.ts index 2bb6d46a..3ce8bb99 100644 --- a/types/table.d.ts +++ b/types/table.d.ts @@ -54,7 +54,7 @@ export type Filter = Prettify< export interface DataTableRowAction { row: Row - type:"submit" |"general_evaluation"|"esg_evaluation" |"schedule"| "view"| "upload" | "addInfo"| "view-series"|"log"| "tbeResult" | "requestInfo"| "esign-detail"| "responseDetail"|"signature"|"update" | "delete" | "user" | "pemission" | "invite" | "items" | "attachment" |"comments" | "open" | "select" | "files" + type:"download_report"|"submit" |"general_evaluation"| "general_evaluation"|"esg_evaluation" |"schedule"| "view"| "upload" | "addInfo"| "view-series"|"log"| "tbeResult" | "requestInfo"| "esign-detail"| "responseDetail"|"signature"|"update" | "delete" | "user" | "pemission" | "invite" | "items" | "attachment" |"comments" | "open" | "select" | "files" } export interface QueryBuilderOpts { -- cgit v1.2.3