fix: 자산번호 저장 누락 오류 수정 및 위치보기 도면 배치 보완

This commit is contained in:
2026-06-19 16:25:28 +09:00
parent 41406f56e8
commit f41f2378d7
3 changed files with 72 additions and 5 deletions

View File

@@ -125,10 +125,13 @@ export function setEditLock(
const inputs = form.querySelectorAll('input, select, textarea');
inputs.forEach(input => {
const el = input as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
// 자산번호 및 ID 필드는 편집 모드에서도 잠금 유지
// 자산번호 및 ID 필드는 편집 모드에서도 잠금 유지 (disabled는 해제하되 readOnly를 적용하여 폼 데이터 수집 가능하게 함)
if (el.name !== 'asset_code' && !el.id.includes('asset-id') && !el.id.includes('id-hidden')) {
el.disabled = false;
if ('readOnly' in el) (el as HTMLInputElement).readOnly = false;
} else {
el.disabled = false;
if ('readOnly' in el) (el as HTMLInputElement).readOnly = true;
}
});