summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-07-07 01:44:45 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-07-07 01:44:45 +0000
commit90f79a7a691943a496f67f01c1e493256070e4de (patch)
tree37275fde3ae08c2bca384fbbc8eb378de7e39230 /types
parentfbb3b7f05737f9571b04b0a8f4f15c0928de8545 (diff)
(대표님) 변경사항 20250707 10시 43분 - unstaged 변경사항 추가
Diffstat (limited to 'types')
-rw-r--r--types/dashboard.d.ts15
-rw-r--r--types/evaluation.ts32
-rw-r--r--types/table.d.ts2
3 files changed, 48 insertions, 1 deletions
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<string, DashboardStatus>;
+ userFields: {
+ creator?: string;
+ updater?: string;
+ assignee?: string;
+ };
+ additionalFilters?: Record<string, any>;
+}
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<TData> = Prettify<
export interface DataTableRowAction<TData> {
row: Row<TData>
- 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 {