[FO] 수정사항 : 은행자동이체내역 수입,지출 수량 단위를 개,직접입력 으로 구성
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user