diff --git a/src/components/popup/SurveySaleSubmitPopup.tsx b/src/components/popup/SurveySaleSubmitPopup.tsx index 89df985..5146d75 100644 --- a/src/components/popup/SurveySaleSubmitPopup.tsx +++ b/src/components/popup/SurveySaleSubmitPopup.tsx @@ -9,7 +9,6 @@ import { CommCode } from '@/types/CommCode' import { sendEmail } from '@/libs/mailer' import { useSpinnerStore } from '@/store/spinnerStore' import { CONFIRM_MESSAGE, SUCCESS_MESSAGE, ERROR_MESSAGE, useAlertMsg, WARNING_MESSAGE } from '@/hooks/useAlertMsg' -import { ADMIN_SUBMIT_TARGET_NM } from '@/types/Survey' interface SubmitFormData { saleBase: string | null @@ -66,7 +65,6 @@ export default function SurveySaleSubmitPopup() { setSubmitData((prev) => ({ ...prev, ...baseUpdate, - targetNm: ADMIN_SUBMIT_TARGET_NM, })) /** Builder, Admin_Sub 제출 폼 데이터 삽입 - 2차 판매점, 2차 판매점 시공권한*/ } else if (session?.role === 'Builder' || session?.role === 'Admin_Sub') { @@ -232,7 +230,12 @@ export default function SurveySaleSubmitPopup() { if (selectedOffice) { //@ts-ignore const receiver = selectedOffice.REF_CHR1.split(';') - setSubmitData((prev) => ({ ...prev, receiver: receiver, saleBase: e.target.value })) + setSubmitData((prev) => ({ + ...prev, + receiver: receiver, + saleBase: e.target.value, + targetNm: selectedOffice.codeJp ?? '', + })) } }} > diff --git a/src/types/Survey.ts b/src/types/Survey.ts index 481d994..e45ccd3 100644 --- a/src/types/Survey.ts +++ b/src/types/Survey.ts @@ -324,8 +324,6 @@ export type SurveySearchParams = { builderId?: string | null } -export const ADMIN_SUBMIT_TARGET_NM = 'Hanwha Japan' - type RadioEtcKeys = | 'structureOrder' | 'houseStructure'