summaryrefslogtreecommitdiff
path: root/lib/rfq-last
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-10-01 09:48:03 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-10-01 09:48:03 +0000
commit33e8452331c301430191b3506825ebaf3edac93a (patch)
tree6d92d754dbd30cafe0f3f920a14d6d6031c624b8 /lib/rfq-last
parent8ac4e8d9faa6e86ca6c7ab475efd7462d76fc9b6 (diff)
(최겸) 구매 PQ 리스트 기능 수정, 견적 첨부파일 리비전 액션 추가, 기타 등
Diffstat (limited to 'lib/rfq-last')
-rw-r--r--lib/rfq-last/attachment/rfq-attachments-table.tsx36
-rw-r--r--lib/rfq-last/vendor/rfq-vendor-table.tsx2
2 files changed, 36 insertions, 2 deletions
diff --git a/lib/rfq-last/attachment/rfq-attachments-table.tsx b/lib/rfq-last/attachment/rfq-attachments-table.tsx
index 09c9fe35..3098f8f5 100644
--- a/lib/rfq-last/attachment/rfq-attachments-table.tsx
+++ b/lib/rfq-last/attachment/rfq-attachments-table.tsx
@@ -412,9 +412,43 @@ export function RfqAttachmentsTable({
id: "actions",
header: "작업",
cell: ({ row }) => {
+ // 구매 탭에서만 작업 버튼 표시
+ if (activeTab !== '구매') {
+ return <span className="text-muted-foreground text-sm">-</span>;
+ }
+
return (
<DropdownMenu>
- {/* ... 기존 드롭다운 메뉴 내용 ... */}
+ <DropdownMenuTrigger asChild>
+ <Button variant="ghost" className="h-8 w-8 p-0">
+ <span className="sr-only">메뉴 열기</span>
+ <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z" fill="currentColor" fillRule="evenodd" clipRule="evenodd"></path>
+ </svg>
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuItem onClick={() => handleAction({ type: "download", row })}>
+ 다운로드
+ </DropdownMenuItem>
+ <DropdownMenuItem onClick={() => handleAction({ type: "preview", row })}>
+ 미리보기
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem onClick={() => handleAction({ type: "history", row })}>
+ 리비전 히스토리
+ </DropdownMenuItem>
+ <DropdownMenuItem onClick={() => handleAction({ type: "update", row })}>
+ 새 버전 업로드
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem
+ onClick={() => handleAction({ type: "delete", row })}
+ className="text-red-600"
+ >
+ 삭제
+ </DropdownMenuItem>
+ </DropdownMenuContent>
</DropdownMenu>
);
},
diff --git a/lib/rfq-last/vendor/rfq-vendor-table.tsx b/lib/rfq-last/vendor/rfq-vendor-table.tsx
index b8a5184f..e5c1f51e 100644
--- a/lib/rfq-last/vendor/rfq-vendor-table.tsx
+++ b/lib/rfq-last/vendor/rfq-vendor-table.tsx
@@ -1581,7 +1581,7 @@ export function RfqVendorTable({
disabled={isLoadingSendData}
>
<Settings2 className="h-4 w-4 mr-2" />
- 정보 일괄 입력 ({selectedRows.length})
+ 협력업체 조건 설정 ({selectedRows.length})
</Button>
{/* RFQ 발송 버튼 */}