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

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

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

Loading…
Cancel
Save