diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-11-03 10:15:45 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-11-03 10:15:45 +0000 |
| commit | f2fafe555b65f9207c2c6e216b7d7b2ff83af866 (patch) | |
| tree | 4a230e4bde10a612150a299922bc04cb15b0930f /lib/vendor-investigation/table/investigation-table-columns.tsx | |
| parent | 1e857a0b1443ad2124caf3d180b7195651fe33e4 (diff) | |
(최겸) 구매 PQ/실사 수정
Diffstat (limited to 'lib/vendor-investigation/table/investigation-table-columns.tsx')
| -rw-r--r-- | lib/vendor-investigation/table/investigation-table-columns.tsx | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/lib/vendor-investigation/table/investigation-table-columns.tsx b/lib/vendor-investigation/table/investigation-table-columns.tsx index 9f4944c3..03e66076 100644 --- a/lib/vendor-investigation/table/investigation-table-columns.tsx +++ b/lib/vendor-investigation/table/investigation-table-columns.tsx @@ -5,7 +5,7 @@ import { ColumnDef } from "@tanstack/react-table" import { Checkbox } from "@/components/ui/checkbox" import { Button } from "@/components/ui/button" import { Badge } from "@/components/ui/badge" -import { Edit, Ellipsis, AlertTriangle, FileEdit, Eye } from "lucide-react" +import { Edit, Ellipsis, AlertTriangle, FileEdit, Eye, FileText } from "lucide-react" import { DropdownMenu, DropdownMenuContent, @@ -145,7 +145,7 @@ export function getColumns({ <DropdownMenuItem onSelect={async () => { - if (isCanceled || row.original.investigationStatus !== "IN_PROGRESS") return + if (isCanceled || (row.original.investigationStatus !== "IN_PROGRESS" && row.original.investigationStatus !== "SUPPLEMENT_REQUIRED")) return // 구매자체평가일 경우 결과입력 비활성화 if (row.original.investigationMethod === "PURCHASE_SELF_EVAL") { return @@ -170,7 +170,7 @@ export function getColumns({ }} disabled={ isCanceled || - row.original.investigationStatus !== "IN_PROGRESS" || + (row.original.investigationStatus !== "IN_PROGRESS" && row.original.investigationStatus !== "SUPPLEMENT_REQUIRED") || row.original.investigationMethod === "PURCHASE_SELF_EVAL" } > @@ -178,6 +178,19 @@ export function getColumns({ 실사 결과 입력 </DropdownMenuItem> + {/* 실사 실시 확정 정보 버튼 - 제품검사평가 또는 방문실사평가인 경우 */} + {(row.original.investigationMethod === "PRODUCT_INSPECTION" || + row.original.investigationMethod === "SITE_VISIT_EVAL") && ( + <DropdownMenuItem + onSelect={() => { + (setRowAction as any)?.({ type: "vendor-info-view", row }) + }} + > + <FileText className="mr-2 h-4 w-4" /> + 실사 실시 확정 정보 + </DropdownMenuItem> + )} + {canRequestSupplement && ( <> <DropdownMenuSeparator /> @@ -331,6 +344,11 @@ export function getColumns({ return value ? `#${value}` : "" } + // Handle pqNumber + if (column.id === "pqNumber") { + return value ? (value as string) : <span className="text-muted-foreground">-</span> + } + // Handle file attachment status if (column.id === "hasAttachments") { return ( |
