fix: 신청서접수시 폐기수량 소숫점 입력 가능하도록 반영

main
Jonguk. Lim 3 months ago
parent 1cc52b6741
commit d30cddcd3e

@ -192,8 +192,10 @@
let value = e.target.value; let value = e.target.value;
if(name === 'dsuseQy') { if(name === 'dsuseQy') {
let parts = value.replace(/[^0-9.]/g, '').split('.'); let parts = value.replace(/[^0-9.]/g, '').split('.').filter(d=> d !== '');
value = parts.shift() + '.' + parts.join(''); debugger
if(parts.length > 1) value = parts.shift() + '.' + parts.join('');
else value = parts[0]
e.target.value = value; e.target.value = value;
} }
$P.productList.setValue(key, name, value); $P.productList.setValue(key, name, value);

Loading…
Cancel
Save