summaryrefslogtreecommitdiff
path: root/lib/tbe-tech/table/tbe-table.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-05-29 05:17:13 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-05-29 05:17:13 +0000
commit37f55540833c2d5894513eca9fc8f7c6233fc2d2 (patch)
tree6807978e7150358b3444c33b825c83e2c9cda8e8 /lib/tbe-tech/table/tbe-table.tsx
parent4b9bdb29e637f67761beb2db7f75dab0432d6712 (diff)
(대표님) 0529 14시 16분 변경사항 저장 (Vendor Data, Docu)
Diffstat (limited to 'lib/tbe-tech/table/tbe-table.tsx')
-rw-r--r--lib/tbe-tech/table/tbe-table.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tbe-tech/table/tbe-table.tsx b/lib/tbe-tech/table/tbe-table.tsx
index 3d981450..3537f16a 100644
--- a/lib/tbe-tech/table/tbe-table.tsx
+++ b/lib/tbe-tech/table/tbe-table.tsx
@@ -61,7 +61,7 @@ export function AllTbeTable({ promises }: VendorsTableProps) {
// 새로운 벤더 데이터 추가
vendorMap.set(vendorId, {
...item,
- vendorResponseId: item.id,
+ // vendorResponseId: item.id,
technicalResponseId: item.id,
rfqId: item.rfqId
})
@@ -106,6 +106,7 @@ export function AllTbeTable({ promises }: VendorsTableProps) {
openCommentSheet(
rowAction.row.original.vendorId ?? 0,
rowAction.row.original.rfqId ?? 0,
+ rowAction.row.original.tbeId ?? 0,
)
} else if (rowAction.type === "files") {
openFilesDialog(
@@ -144,10 +145,10 @@ export function AllTbeTable({ promises }: VendorsTableProps) {
// -----------------------------------------------------------
// 댓글 시트 열기
// -----------------------------------------------------------
- async function openCommentSheet(vendorId: number, rfqId: number) {
+ async function openCommentSheet(vendorId: number, rfqId: number, tbeId: number) {
setInitialComments([])
setIsLoadingComments(true)
- const comments = rowAction?.row.original.comments
+ const comments = rowAction?.row.original.comments?.filter(c => c.evaluationId === tbeId)
try {
if (comments && comments.length > 0) {
const commentWithAttachments: TbeComment[] = await Promise.all(