fix: Admin(1차 판매점) 제출 대상 이름 변경
This commit is contained in:
parent
a549643e69
commit
ed36d288c5
@ -9,7 +9,6 @@ import { CommCode } from '@/types/CommCode'
|
|||||||
import { sendEmail } from '@/libs/mailer'
|
import { sendEmail } from '@/libs/mailer'
|
||||||
import { useSpinnerStore } from '@/store/spinnerStore'
|
import { useSpinnerStore } from '@/store/spinnerStore'
|
||||||
import { CONFIRM_MESSAGE, SUCCESS_MESSAGE, ERROR_MESSAGE, useAlertMsg, WARNING_MESSAGE } from '@/hooks/useAlertMsg'
|
import { CONFIRM_MESSAGE, SUCCESS_MESSAGE, ERROR_MESSAGE, useAlertMsg, WARNING_MESSAGE } from '@/hooks/useAlertMsg'
|
||||||
import { ADMIN_SUBMIT_TARGET_NM } from '@/types/Survey'
|
|
||||||
|
|
||||||
interface SubmitFormData {
|
interface SubmitFormData {
|
||||||
saleBase: string | null
|
saleBase: string | null
|
||||||
@ -66,7 +65,6 @@ export default function SurveySaleSubmitPopup() {
|
|||||||
setSubmitData((prev) => ({
|
setSubmitData((prev) => ({
|
||||||
...prev,
|
...prev,
|
||||||
...baseUpdate,
|
...baseUpdate,
|
||||||
targetNm: ADMIN_SUBMIT_TARGET_NM,
|
|
||||||
}))
|
}))
|
||||||
/** Builder, Admin_Sub 제출 폼 데이터 삽입 - 2차 판매점, 2차 판매점 시공권한*/
|
/** Builder, Admin_Sub 제출 폼 데이터 삽입 - 2차 판매점, 2차 판매점 시공권한*/
|
||||||
} else if (session?.role === 'Builder' || session?.role === 'Admin_Sub') {
|
} else if (session?.role === 'Builder' || session?.role === 'Admin_Sub') {
|
||||||
@ -232,7 +230,12 @@ export default function SurveySaleSubmitPopup() {
|
|||||||
if (selectedOffice) {
|
if (selectedOffice) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
const receiver = selectedOffice.REF_CHR1.split(';')
|
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 ?? '',
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -324,8 +324,6 @@ export type SurveySearchParams = {
|
|||||||
builderId?: string | null
|
builderId?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ADMIN_SUBMIT_TARGET_NM = 'Hanwha Japan'
|
|
||||||
|
|
||||||
type RadioEtcKeys =
|
type RadioEtcKeys =
|
||||||
| 'structureOrder'
|
| 'structureOrder'
|
||||||
| 'houseStructure'
|
| 'houseStructure'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user