summaryrefslogtreecommitdiff
path: root/lib/vendor-investigation/table/investigation-table-columns.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-12-08 19:48:13 +0900
committerjoonhoekim <26rote@gmail.com>2025-12-08 19:48:13 +0900
commitaa89ba2ab47e3ad1ce3277fd11bc61546d20bbac (patch)
tree2f72e6e8efcdc8b79aa730c64a41d0c40fa3700a /lib/vendor-investigation/table/investigation-table-columns.tsx
parent3ef36fc20e10391619be0a57de1b2184dece606a (diff)
parentb5ef49dce92c8994530f6ff670c81693c8716daf (diff)
Merge branch 'dujinkim' of https://github.com/DTS-Development/SHI_EVCP into dujinkimHEADdujinkim
Diffstat (limited to 'lib/vendor-investigation/table/investigation-table-columns.tsx')
-rw-r--r--lib/vendor-investigation/table/investigation-table-columns.tsx26
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}