From 14f61e24947fb92dd71ec0a7196a6e815f8e66da Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 21 Jul 2025 07:54:26 +0000 Subject: (최겸)기술영업 RFQ 담당자 초대, 요구사항 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/techsales-rfq/actions.ts | 62 ++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'lib/techsales-rfq/actions.ts') diff --git a/lib/techsales-rfq/actions.ts b/lib/techsales-rfq/actions.ts index 5d5d5118..80b831e0 100644 --- a/lib/techsales-rfq/actions.ts +++ b/lib/techsales-rfq/actions.ts @@ -1,31 +1,31 @@ -"use server" - -import { revalidatePath } from "next/cache" -import { - acceptTechSalesVendorQuotation -} from "./service" - -/** - * 기술영업 벤더 견적 승인 (벤더 선택) Server Action - */ -export async function acceptTechSalesVendorQuotationAction(quotationId: number) { - try { - const result = await acceptTechSalesVendorQuotation(quotationId) - - if (result.success) { - // 관련 페이지들 재검증 - revalidatePath("/evcp/budgetary-tech-sales-ship") - revalidatePath("/partners/techsales") - - return { success: true, message: "벤더가 성공적으로 선택되었습니다" } - } else { - return { success: false, error: result.error } - } - } catch (error) { - console.error("벤더 선택 액션 오류:", error) - return { - success: false, - error: error instanceof Error ? error.message : "벤더 선택에 실패했습니다" - } - } -} +"use server" + +import { revalidatePath } from "next/cache" +import { + acceptTechSalesVendorQuotation +} from "./service" + +/** + * 기술영업 벤더 견적 승인 (벤더 선택) Server Action + */ +export async function acceptTechSalesVendorQuotationAction(quotationId: number) { + try { + const result = await acceptTechSalesVendorQuotation(quotationId) + + if (result.success) { + // 관련 페이지들 재검증 + revalidatePath("/evcp/budgetary-tech-sales-ship") + revalidatePath("/partners/techsales") + + return { success: true, message: "벤더가 성공적으로 선택되었습니다" } + } else { + return { success: false, error: result.error } + } + } catch (error) { + console.error("벤더 선택 액션 오류:", error) + return { + success: false, + error: error instanceof Error ? error.message : "벤더 선택에 실패했습니다" + } + } +} -- cgit v1.2.3