diff options
Diffstat (limited to 'lib/vendor-investigation/table/investigation-table-columns.tsx')
| -rw-r--r-- | lib/vendor-investigation/table/investigation-table-columns.tsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/vendor-investigation/table/investigation-table-columns.tsx b/lib/vendor-investigation/table/investigation-table-columns.tsx index 3d765179..521befa9 100644 --- a/lib/vendor-investigation/table/investigation-table-columns.tsx +++ b/lib/vendor-investigation/table/investigation-table-columns.tsx @@ -179,6 +179,23 @@ export function getColumns({ ) } + // Handle pqItems + if (column.id === "pqItems") { + if (!value) return <span className="text-muted-foreground">-</span> + const items = typeof value === 'string' ? JSON.parse(value as string) : value; + if (Array.isArray(items) && items.length > 0) { + const firstItem = items[0]; + return ( + <div className="flex items-center gap-2"> + <span className="text-sm">{firstItem.itemCode} - {firstItem.itemName}</span> + {items.length > 1 && ( + <span className="text-xs text-muted-foreground">외 {items.length - 1}건</span> + )} + </div> + ); + } + } + // Handle IDs for pqSubmissionId (keeping for reference) if (column.id === "pqSubmissionId") { return value ? `#${value}` : "" |
