summaryrefslogtreecommitdiff
path: root/lib/pq/pq-review-table-new/vendors-table.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-10-24 09:52:35 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-10-24 09:52:35 +0000
commit0174ad394032a8dad81107341f477d6d23a3c04c (patch)
tree6be84f638a852e6d0cea057b67e462e78fc65d41 /lib/pq/pq-review-table-new/vendors-table.tsx
parent912e2bc761d7d57bd33d68cb5050da43dea59636 (diff)
(최겸) 구매 피드백 수정(PQ, 실사 등)-1024
Diffstat (limited to 'lib/pq/pq-review-table-new/vendors-table.tsx')
-rw-r--r--lib/pq/pq-review-table-new/vendors-table.tsx17
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/pq/pq-review-table-new/vendors-table.tsx b/lib/pq/pq-review-table-new/vendors-table.tsx
index 191c8bfa..f8f9928e 100644
--- a/lib/pq/pq-review-table-new/vendors-table.tsx
+++ b/lib/pq/pq-review-table-new/vendors-table.tsx
@@ -265,8 +265,9 @@ export function PQSubmissionsTable({ promises, className }: PQSubmissionsTablePr
{ label: "승인됨", value: "APPROVED" },
{ label: "거부됨", value: "REJECTED" },
]},
+ { id: "pqItems", label: "실사품목", type: "text" },
- { id: "createdAt", label: "생성일", type: "date" },
+ { id: "createdAt", label: "PQ 전송일", type: "date" },
{ id: "submittedAt", label: "제출일", type: "date" },
{ id: "approvedAt", label: "승인일", type: "date" },
{ id: "rejectedAt", label: "거부일", type: "date" },
@@ -286,8 +287,18 @@ export function PQSubmissionsTable({ promises, className }: PQSubmissionsTablePr
}),
columnVisibility: currentSettings.columnVisibility,
columnPinning: currentSettings.pinnedColumns,
+ // DateRangePicker의 from/to 파라미터를 위한 상태
+ columnFilters: initialSettings.from || initialSettings.to ? [
+ {
+ id: "createdAt",
+ value: {
+ from: initialSettings.from ? new Date(initialSettings.from) : undefined,
+ to: initialSettings.to ? new Date(initialSettings.to) : undefined,
+ }
+ }
+ ] : [],
}
- }, [currentSettings, initialSettings.sort, columns])
+ }, [currentSettings, initialSettings.sort, initialSettings.from, initialSettings.to, columns])
const { table } = useDataTable({
data: tableData.data,
@@ -297,6 +308,8 @@ export function PQSubmissionsTable({ promises, className }: PQSubmissionsTablePr
filterFields, // RFQ와 달리 빈 배열이 아닌 실제 필터 필드 사용
enablePinning: true,
enableAdvancedFilter: true,
+ enableRowSelection: true,
+ maxSelections: 1,
initialState,
getRowId: (originalRow) => String(originalRow.id),
shallow: false,