[FO] 수정사항 : 은행자동이체내역 수입,지출 수량 단위를 개,직접입력 으로 구성

This commit is contained in:
kangsunlee
2025-06-30 11:04:49 +09:00
parent dcc42dacea
commit 22b2fbbb32
7 changed files with 22 additions and 22 deletions

View File

@@ -113,7 +113,7 @@
data: {
transferCategoryCodeList: /*[[${transferCategoryList}]]*/ [],
codeRecordCropList: /*[[${codeRecordCropList}]]*/ [],
unitList: /*[[${unitList}]]*/ [],
countList: /*[[${countList}]]*/ [],
bankList : /*[[${bankList.content}]]*/ [],
pastBankList : /*[[${pastBankList.content}]]*/ [],
id: /*[[${currentMonthlyInfo.id}]]*/'',
@@ -288,7 +288,7 @@
ENV.elementRefs.select.unitCodeSelect.core.init($select3,{
selectItemCallback({selectValue, dataValue}){
document.querySelector('#unitCode').value=dataValue;
if(dataValue === "code.record.unit.self") {
if(dataValue === "code.count.unit.self") {
document.querySelector('#unit').value="";
document.querySelector('#unitDiv').style.display ='block';
} else {
@@ -381,7 +381,7 @@
field: 'unitCode',
message: '단위를 선택해주세요.'
});
} else if (form.unitCode.value && form.unitCode.value =="code.record.unit.self" && !form.unit.value){
} else if (form.unitCode.value && form.unitCode.value =="code.count.unit.self" && !form.unit.value){
errors.push({
field: 'unit',
@@ -417,7 +417,7 @@
},
// 단위 코드
getUnitLabel(code) {
const found = ENV.data.unitList.find(i => i.id === code);
const found = ENV.data.countList.find(i => i.id === code);
return found ? found.codeText : '-';
},
// 재배형태
@@ -441,7 +441,7 @@
if(key == 'transferCategoryCode' && val == "code.bank.input.self"){
document.getElementById(val+"_value").value = product["transferCategory"];
}
if(key == 'unitCode' && val == "code.record.unit.self"){
if(key == 'unitCode' && val == "code.count.unit.self"){
document.getElementById("unitDiv").style.display = "";
}
}
@@ -535,7 +535,7 @@
let tagCount = '';
if (product.count > 0) {
const unitText = product.unitCode !== 'code.record.unit.self'
const unitText = product.unitCode !== 'code.count.unit.self'
? getUnit(product.unitCode)
: product.unit;

View File

@@ -152,7 +152,7 @@
</div>
<div class="select-scroll">
<ul class="">
<th:block th:each="item : ${unitList}">
<th:block th:each="item : ${countList}">
<li class="option" th:data-value="${item.id}"
th:text="${item.codeText}">option1
</li>

View File

@@ -113,7 +113,7 @@
data: {
transferCategoryCodeList: /*[[${transferCategoryList}]]*/ [],
codeRecordCropList: /*[[${codeRecordCropList}]]*/ [],
unitList: /*[[${unitList}]]*/ [],
countList: /*[[${countList}]]*/ [],
bankList : /*[[${bankList.content}]]*/ [],
pastBankList : /*[[${pastBankList.content}]]*/ [],
id: /*[[${currentMonthlyInfo.id}]]*/'',
@@ -279,7 +279,7 @@
ENV.elementRefs.select.unitCodeSelect.core.init($select3,{
selectItemCallback({selectValue, dataValue}){
document.querySelector('#unitCode').value=dataValue;
if(dataValue === "code.record.unit.self") {
if(dataValue === "code.count.unit.self") {
document.querySelector('#unit').value="";
document.querySelector('#unitDiv').style.display ='block';
} else {
@@ -372,7 +372,7 @@
field: 'unitCode',
message: '단위를 선택해주세요.'
});
} else if (form.unitCode.value && form.unitCode.value =="code.record.unit.self" && !form.unit.value){
} else if (form.unitCode.value && form.unitCode.value =="code.count.unit.self" && !form.unit.value){
errors.push({
field: 'unit',
@@ -411,7 +411,7 @@
},
// 단위 코드
getUnitLabel(code) {
const found = ENV.data.unitList.find(i => i.id === code);
const found = ENV.data.countList.find(i => i.id === code);
return found ? found.codeText : '-';
},
// 재배형태
@@ -435,7 +435,7 @@
if (key === 'transferCategoryCode' && val === "code.bank.input.self") {
document.getElementById(val + "_value").value = product["transferCategory"];
}
if (key === 'unitCode' && val === "code.record.unit.self") {
if (key === 'unitCode' && val === "code.count.unit.self") {
document.getElementById("unitDiv").style.display = "";
}
}
@@ -528,7 +528,7 @@
let tagCount = '';
if (product.count > 0) {
const unitText = product.unitCode !== 'code.record.unit.self'
const unitText = product.unitCode !== 'code.count.unit.self'
? getUnit(product.unitCode)
: product.unit;

View File

@@ -111,7 +111,7 @@
</div>
<div class="select-scroll">
<ul class="">
<th:block th:each="item : ${unitList}">
<th:block th:each="item : ${countList}">
<li class="option" th:data-value="${item.id}"
th:text="${item.codeText}">option1
</li>