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