From ba35e67845f935c8ce0151c9ef1fefa0b0510faf Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 22 Sep 2025 18:59:13 +0900 Subject: (김준회) AVL 피드백 반영 (이진용 프로 건) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/avl/table/project-avl-table.tsx | 65 +++++++++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 14 deletions(-) (limited to 'lib/avl/table/project-avl-table.tsx') diff --git a/lib/avl/table/project-avl-table.tsx b/lib/avl/table/project-avl-table.tsx index fc8f0f5e..7a0fda2e 100644 --- a/lib/avl/table/project-avl-table.tsx +++ b/lib/avl/table/project-avl-table.tsx @@ -4,6 +4,14 @@ import * as React from "react" import { forwardRef, useImperativeHandle, useLayoutEffect, useMemo } from "react" import { DataTable } from "@/components/data-table/data-table" import { Button } from "@/components/ui/button" +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from "@/components/ui/dialog" import { AvlVendorAddAndModifyDialog } from "./avl-vendor-add-and-modify-dialog" import { getProjectAvlVendorInfo, createAvlVendorInfo, updateAvlVendorInfo, deleteAvlVendorInfo, finalizeProjectAvl } from "../service" import { useReactTable, getCoreRowModel, getPaginationRowModel, getSortedRowModel, getFilteredRowModel } from "@tanstack/react-table" @@ -384,6 +392,9 @@ export const ProjectAvlTable = forwardRef { // 1. 필수 조건 검증 @@ -402,27 +413,20 @@ export const ProjectAvlTable = forwardRef { try { - // 3. 현재 데이터의 모든 ID 수집 + // 3. 현재 데이터의 모든 ID 수집 (전체 레코드 기준) const avlVendorInfoIds = data.map(item => item.id) // 4. 최종 확정 실행 const result = await finalizeProjectAvl( localProjectCode, - projectInfo, + projectInfo!, avlVendorInfoIds, sessionData?.user?.name || "" ) @@ -441,6 +445,8 @@ export const ProjectAvlTable = forwardRef + + {/* 최종 확정 확인 다이얼로그 */} + + + + 프로젝트 AVL 최종 확정 + + 현재 프로젝트의 AVL을 최종 확정하시겠습니까? + + +
+
• 프로젝트 코드: {localProjectCode}
+
• 프로젝트명: {projectInfo?.projectName || ""}
+
• 공사부문: {projectInfo?.constructionSector || ""}
+
• 선종: {projectInfo?.shipType || ""}
+
• H/T 구분: {projectInfo?.htDivision || ""}
+
• 벤더 정보: {data.length}개 (전체 레코드)
+ {/*
+ ⚠️ 확정 후 내용 수정을 필요로 하는 경우 동일 건을 다시 최종확정해 revision 처리로 수정해야 합니다. +
*/} +
+ + + + +
+
) }) -- cgit v1.2.3