직접입력값 안나오는거 수정
This commit is contained in:
@@ -478,7 +478,7 @@
|
||||
const field = form.elements.namedItem(key);
|
||||
if (field) {
|
||||
field.value = val;
|
||||
if(key === 'transferCategoryCode' && (val === "code.bank.input.self" || val === "code.bank.input.1" || val === "code.bank.input.4")){
|
||||
if(key === 'transferCategoryCode' && (val !== "code.bank.input.10" && val !== "code.bank.input.12" && val !== "code.bank.input.13")){
|
||||
document.getElementById(val+"_value").value = product["transferCategory"];
|
||||
}
|
||||
if(key === 'unitCode' && val === "code.count.unit.self"){
|
||||
|
||||
@@ -472,7 +472,7 @@
|
||||
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.output.self") {
|
||||
document.getElementById(val + "_value").value = product["transferCategory"];
|
||||
}
|
||||
if (key === 'unitCode' && val === "code.count.unit.self") {
|
||||
@@ -481,6 +481,22 @@
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
if (product.transferCategoryCode === "code.bank.output.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.transferCategoryCodeSelect.setValue(product.transferCategoryCode);
|
||||
ENV.elementRefs.select.unitCodeSelect.setValue(product.unitCode);
|
||||
document.getElementById("unit").value = product.unit;
|
||||
|
||||
Reference in New Issue
Block a user