summaryrefslogtreecommitdiff
path: root/lib/rfq-last/vendor
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-10-15 12:52:11 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-10-15 12:52:11 +0000
commitb54f6f03150dd78d86db62201b6386bf14b72394 (patch)
treeb3092bb34805fdc65eee5282e86a9fb90ba20d6e /lib/rfq-last/vendor
parentc1bd1a2f499ee2f0742170021b37dab410983ab7 (diff)
(대표님) 커버, 데이터룸, 파일매니저, 담당자할당 등
Diffstat (limited to 'lib/rfq-last/vendor')
-rw-r--r--lib/rfq-last/vendor/rfq-vendor-table.tsx32
1 files changed, 27 insertions, 5 deletions
diff --git a/lib/rfq-last/vendor/rfq-vendor-table.tsx b/lib/rfq-last/vendor/rfq-vendor-table.tsx
index dc5564e2..428160d5 100644
--- a/lib/rfq-last/vendor/rfq-vendor-table.tsx
+++ b/lib/rfq-last/vendor/rfq-vendor-table.tsx
@@ -753,8 +753,10 @@ export function RfqVendorTable({
filterFn: createFilterFn("text"),
cell: ({ row }) => {
- const status = row.original.tbeStatus;
+ const status = row.original.tbeStatus?.trim();
+ const rfqCode = row.original.rfqCode?.trim();
+ // 생성중/준비중은 대기 표시(비클릭)
if (!status || status === "준비중") {
return (
<Badge variant="outline" className="text-gray-500">
@@ -772,8 +774,28 @@ export function RfqVendorTable({
"취소": { variant: "destructive", icon: <XCircle className="h-3 w-3 mr-1" /> },
}[status] || { variant: "outline", icon: null, color: "text-gray-600" };
+ const isClickable = !!rfqCode;
+
return (
- <Badge variant={statusConfig.variant as any} className={statusConfig.color}>
+ <Badge
+ role={isClickable ? "button" : undefined}
+ tabIndex={isClickable ? 0 : -1}
+ variant={statusConfig.variant as any}
+ className={cn(statusConfig.color, isClickable && "cursor-pointer hover:underline")}
+ onClick={(e) => {
+ if (!isClickable) return;
+ e.stopPropagation();
+ e.preventDefault();
+ router.push(`/evcp/tbe-last?search=${encodeURIComponent(rfqCode!)}`);
+ // window.open(
+ // `/evcp/tbe-last?search=${encodeURIComponent(rfqCode!)}`,
+ // "_blank",
+ // "noopener,noreferrer"
+ // );
+ // 새 창으로 이동
+ }}
+ title={isClickable ? `TBE로 이동: ${rfqCode}` : undefined}
+ >
{statusConfig.icon}
{status}
</Badge>
@@ -802,19 +824,19 @@ export function RfqVendorTable({
"Acceptable": {
variant: "success",
icon: <CheckCircle className="h-3 w-3" />,
- text: "적합",
+ text: "Acceptable",
color: "bg-green-50 text-green-700 border-green-200"
},
"Acceptable with Comment": {
variant: "warning",
icon: <AlertCircle className="h-3 w-3" />,
- text: "조건부 적합",
+ text: "Acceptable with Comment",
color: "bg-yellow-50 text-yellow-700 border-yellow-200"
},
"Not Acceptable": {
variant: "destructive",
icon: <XCircle className="h-3 w-3" />,
- text: "부적합",
+ text: "Not Acceptable",
color: "bg-red-50 text-red-700 border-red-200"
},
}[result];