Merge branch 'susu' into dev

This commit is contained in:
주수현
2025-07-25 19:05:53 +09:00
4 changed files with 44 additions and 4 deletions

View File

@@ -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"){

View File

@@ -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;

View File

@@ -239,12 +239,14 @@
const header = document.getElementById('listHeader');
const count = document.getElementById('listCount');
const total = ENV.data.productList.length;
const totalItems = document.getElementById('totalItems');
header.style.display = total > 0 ? '' : 'none';
status.style.display = total > 0 ? 'none' : '';
callPastInfoBtn.style.display = total > 0 ? 'none' : '';
count.textContent = total;
totalItems.textContent = total;
btn.disabled = isChecked;