Merge pull request '[1461] 物件情報 敬称 셀렉트 디폴트 적용 + reload 빈값 보강' (#822) from dev into dev-deploy
Reviewed-on: #822
This commit is contained in:
commit
8b425c35f8
@ -510,6 +510,12 @@ export default function StuffDetail() {
|
|||||||
const code4 = findCommonCode(113700) //면조도
|
const code4 = findCommonCode(113700) //면조도
|
||||||
if (code1 != null) {
|
if (code1 != null) {
|
||||||
setHonorificCodeList(code1)
|
setHonorificCodeList(code1)
|
||||||
|
// [HONORIFIC-DEFAULT 2026-05-07] 敬称 필수값 → 폼값이 비어있을 때만 코드리스트 첫 항목을 디폴트로
|
||||||
|
// (편집모드에서 저장값이 line 658 로 먼저 들어온 경우는 스킵, 신규/저장값손실 케이스만 보강)
|
||||||
|
if (code1.length > 0 && !form.getValues('objectNameOmit')) {
|
||||||
|
setSelHonorificCode(code1[0].clCodeNm)
|
||||||
|
form.setValue('objectNameOmit', code1[0].clCodeNm)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (code2 != null) {
|
if (code2 != null) {
|
||||||
setObjectStatusList(code2)
|
setObjectStatusList(code2)
|
||||||
@ -640,8 +646,11 @@ export default function StuffDetail() {
|
|||||||
form.setValue('objectName', managementState.objectName)
|
form.setValue('objectName', managementState.objectName)
|
||||||
|
|
||||||
//경칭코드
|
//경칭코드
|
||||||
setSelHonorificCode(managementState.objectNameOmit)
|
// [HONORIFIC-DEFAULT 2026-05-07] 저장값 비어있으면 commonCode effect 가 세팅한 디폴트 유지 (덮어쓰기 금지)
|
||||||
form.setValue('objectNameOmit', managementState.objectNameOmit)
|
if (managementState.objectNameOmit) {
|
||||||
|
setSelHonorificCode(managementState.objectNameOmit)
|
||||||
|
form.setValue('objectNameOmit', managementState.objectNameOmit)
|
||||||
|
}
|
||||||
|
|
||||||
//물건명 후리가나
|
//물건명 후리가나
|
||||||
form.setValue('objectNameKana', managementState.objectNameKana)
|
form.setValue('objectNameKana', managementState.objectNameKana)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user