diff options
Diffstat (limited to 'lib/vendor-investigation/table/investigation-table-columns.tsx')
| -rw-r--r-- | lib/vendor-investigation/table/investigation-table-columns.tsx | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/lib/vendor-investigation/table/investigation-table-columns.tsx b/lib/vendor-investigation/table/investigation-table-columns.tsx index 03e66076..a1f09870 100644 --- a/lib/vendor-investigation/table/investigation-table-columns.tsx +++ b/lib/vendor-investigation/table/investigation-table-columns.tsx @@ -339,6 +339,28 @@ export function getColumns({ } } + if (column.id === "pqType") { + if (!value) return <span className="text-muted-foreground">-</span> + const type = value as string + const label = + type === "PROJECT" + ? "프로젝트" + : type === "NON_INSPECTION" + ? "미실사" + : "일반" + const variant = + type === "PROJECT" + ? "default" + : type === "NON_INSPECTION" + ? "secondary" + : "outline" + return ( + <Badge variant={variant}> + {label} + </Badge> + ) + } + // Handle IDs for pqSubmissionId (keeping for reference) if (column.id === "pqSubmissionId") { return value ? `#${value}` : "" @@ -371,7 +393,7 @@ export function getColumns({ return ( <div className="flex flex-col"> - <span>{value || "미배정"}</span> + <span>{(value as string) || "미배정"}</span> {row.original.requesterEmail ? ( <span className="text-xs text-muted-foreground">{row.original.requesterEmail}</span> ) : null} @@ -386,7 +408,7 @@ export function getColumns({ return ( <div className="flex flex-col"> - <span>{value || "미배정"}</span> + <span>{(value as string) || "미배정"}</span> {row.original.qmManagerEmail ? ( <span className="text-xs text-muted-foreground">{row.original.qmManagerEmail}</span> ) : null} |
