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])