fix: Admin(1차 판매점) 제출 대상 이름 변경

This commit is contained in:
Dayoung 2025-07-02 10:41:21 +09:00
parent a549643e69
commit ed36d288c5
2 changed files with 6 additions and 5 deletions

View File

@ -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 ?? '',
}))
}
}}
>

View File

@ -324,8 +324,6 @@ export type SurveySearchParams = {
builderId?: string | null
}
export const ADMIN_SUBMIT_TARGET_NM = 'Hanwha Japan'
type RadioEtcKeys =
| 'structureOrder'
| 'houseStructure'