From 66800aaa81fed2a8c6975752742712e8fd38392d Mon Sep 17 00:00:00 2001 From: keyy1315 Date: Fri, 27 Jun 2025 09:48:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8C=8C=ED=8A=B8=EB=84=88=EC=82=AC=20?= =?UTF-8?q?=EC=A0=9C=EC=B6=9C=20=ED=8F=BC=20=EB=9E=9C=EB=8D=94=EB=A7=81=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/popup/SurveySaleSubmitPopup.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/popup/SurveySaleSubmitPopup.tsx b/src/components/popup/SurveySaleSubmitPopup.tsx index 2a0e696..17cd5e0 100644 --- a/src/components/popup/SurveySaleSubmitPopup.tsx +++ b/src/components/popup/SurveySaleSubmitPopup.tsx @@ -57,7 +57,7 @@ export default function SurveySaleSubmitPopup() { sender: session?.email ?? '', title: '[HANASYS現地調査] 調査物件が提出. (' + surveyDetail?.srlNo + ')', } - + /** Admin 제출 폼 데이터 삽입 - 1차 판매점*/ if (session?.role === 'Admin') { getCommCode('SALES_OFFICE_CD').then((codes) => { setCommCodeList(codes) @@ -66,6 +66,7 @@ export default function SurveySaleSubmitPopup() { ...prev, ...baseUpdate, })) + /** Builder, Admin_Sub 제출 폼 데이터 삽입 - 2차 판매점, 2차 판매점 시공권한*/ } else if (session?.role === 'Builder' || session?.role === 'Admin_Sub') { getSubmitTarget({ storeId: surveyDetail?.storeId ?? '', role: session?.role ?? '' }).then((data) => { if (!data) return @@ -86,6 +87,12 @@ export default function SurveySaleSubmitPopup() { })) } }) + /** Partner 제출 폼 데이터 삽입 - (T01은 제출 불가) */ + } else { + setSubmitData((prev) => ({ + ...prev, + ...baseUpdate, + })) } }, [session, surveyDetail])