수입의 종류 : 봉급 의 대상 데이터 표출
This commit is contained in:
@@ -474,15 +474,30 @@
|
||||
const field = form.elements.namedItem(key);
|
||||
if (field) {
|
||||
field.value = val;
|
||||
if(key == 'transferCategoryCode' && val == "code.bank.input.self"){
|
||||
if(key === 'transferCategoryCode' && (val === "code.bank.input.self" || val === "code.bank.input.1" || val === "code.bank.input.4")){
|
||||
document.getElementById(val+"_value").value = product["transferCategory"];
|
||||
}
|
||||
if(key == 'unitCode' && val == "code.count.unit.self"){
|
||||
if(key === 'unitCode' && val === "code.count.unit.self"){
|
||||
document.getElementById("unitDiv").style.display = "";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (product.transferCategoryCode === "code.bank.input.self") {
|
||||
const transferCategoryInput = document.getElementById(product.transferCategoryCode + "_value");
|
||||
if (transferCategoryInput) {
|
||||
transferCategoryInput.value = product.transferCategory || "";
|
||||
}
|
||||
}
|
||||
|
||||
// 단위 입력 필드 표시 여부 처리
|
||||
if (product.unitCode === "code.count.unit.self") {
|
||||
const unitDiv = document.getElementById("unitDiv");
|
||||
if (unitDiv) {
|
||||
unitDiv.style.display = "";
|
||||
}
|
||||
}
|
||||
|
||||
ENV.elementRefs.select.cropCodeSelect.setValue(product.cropCode);
|
||||
ENV.elementRefs.select.transferCategoryCodeSelect.setValue(product.transferCategoryCode);
|
||||
ENV.elementRefs.select.unitCodeSelect.setValue(product.unitCode);
|
||||
|
||||
Reference in New Issue
Block a user