diff options
Diffstat (limited to 'types')
| -rw-r--r-- | types/dashboard.d.ts | 15 | ||||
| -rw-r--r-- | types/evaluation.ts | 32 | ||||
| -rw-r--r-- | types/table.d.ts | 2 |
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 { |
