From ed36d288c55c6a481f4f9bf1de16a2c8560d3682 Mon Sep 17 00:00:00 2001 From: keyy1315 Date: Wed, 2 Jul 2025 10:41:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Admin(1=EC=B0=A8=20=ED=8C=90=EB=A7=A4?= =?UTF-8?q?=EC=A0=90)=20=EC=A0=9C=EC=B6=9C=20=EB=8C=80=EC=83=81=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/popup/SurveySaleSubmitPopup.tsx | 9 ++++++--- src/types/Survey.ts | 2 -- 2 files changed, 6 insertions(+), 5 deletions(-) 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'