[BO] 임산물현황 작업 중

This commit is contained in:
kangsunlee
2025-06-25 15:06:37 +09:00
parent a57a3e1f3e
commit 0fabd4b920
3 changed files with 139 additions and 92 deletions

View File

@@ -308,6 +308,22 @@
$(target).append(`<tr><td colspan="${length}" style="text-align: center;">${noDataText}</td></tr>`);
}
// 단위 선택 (직접입력 선택시 input 활성화)
const selectedUnit = (el) => {
const tr = el.closest('tr');
const unitArea = tr.querySelector('.unit-self-input');
const unitInput = tr.querySelector('.unit-self-input input');
if (el.value === 'code.record.unit.self') {
unitInput.disabled = false;
unitArea.classList.remove('input-disabled');
} else {
unitInput.disabled = true;
unitInput.value = '';
unitArea.classList.add('input-disabled');
}
}
</script>
</section>