diff options
Diffstat (limited to 'lib/vendors/table/vendors-table-toolbar-actions.tsx')
| -rw-r--r-- | lib/vendors/table/vendors-table-toolbar-actions.tsx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/vendors/table/vendors-table-toolbar-actions.tsx b/lib/vendors/table/vendors-table-toolbar-actions.tsx index 12f1dfcd..6d5f7425 100644 --- a/lib/vendors/table/vendors-table-toolbar-actions.tsx +++ b/lib/vendors/table/vendors-table-toolbar-actions.tsx @@ -17,6 +17,7 @@ import { import { VendorWithType } from "@/db/schema/vendors" import { ApproveVendorsDialog } from "./approve-vendor-dialog" import { RequestPQVendorsDialog } from "./request-vendor-pg-dialog" +import { RequestPQDialog } from "./request-pq-dialog" import { RequestProjectPQDialog } from "./request-project-pq-dialog" import { SendVendorsDialog } from "./send-vendor-dialog" import { RequestVendorsInvestigateDialog } from "./request-vendor-investigate-dialog" @@ -75,8 +76,8 @@ export function VendorsTableToolbarActions({ table }: VendorsTableToolbarActions .filter(vendor => vendor.status === "PQ_APPROVED"); }, [table.getFilteredSelectedRowModel().rows]); - // 프로젝트 PQ를 보낼 수 있는 협력업체 상태 필터링 - const projectPQEligibleVendors = React.useMemo(() => { + // 통합 PQ를 보낼 수 있는 협력업체 상태 필터링 + const pqEligibleVendors = React.useMemo(() => { return table .getFilteredSelectedRowModel() .rows @@ -153,17 +154,17 @@ export function VendorsTableToolbarActions({ table }: VendorsTableToolbarActions )} {/* 일반 PQ 요청: IN_REVIEW 상태인 협력업체가 있을 때만 표시 */} - {inReviewVendors.length > 0 && ( + {/* {inReviewVendors.length > 0 && ( <RequestPQVendorsDialog vendors={inReviewVendors} onSuccess={() => table.toggleAllRowsSelected(false)} /> - )} + )} */} - {/* 프로젝트 PQ 요청: 적격 상태의 협력업체가 있을 때만 표시 */} - {projectPQEligibleVendors.length > 0 && ( - <RequestProjectPQDialog - vendors={projectPQEligibleVendors} + {/* 통합 PQ 요청: 적격 상태의 협력업체가 있을 때만 표시 */} + {pqEligibleVendors.length > 0 && ( + <RequestPQDialog + vendors={pqEligibleVendors} onSuccess={() => table.toggleAllRowsSelected(false)} /> )} |
