|
|
|
@ -187,12 +187,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const fnPrdChange = (e) => {
|
|
|
|
|
let key = e.target.closest('tr').dataset.key;
|
|
|
|
|
const key = e.target.closest('tr').dataset.key;
|
|
|
|
|
const name = e.target.name;
|
|
|
|
|
let value = e.target.value;
|
|
|
|
|
let name = e.target.name;
|
|
|
|
|
//alert(JSON.stringify($P.productList.getData(key)));
|
|
|
|
|
|
|
|
|
|
if(name === 'dsuseQy') {
|
|
|
|
|
let parts = value.replace(/[^0-9.]/g, '').split('.');
|
|
|
|
|
value = parts.shift() + '.' + parts.join('');
|
|
|
|
|
e.target.value = value;
|
|
|
|
|
}
|
|
|
|
|
$P.productList.setValue(key, name, value);
|
|
|
|
|
//alert(JSON.stringify($P.productList.getData(key)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const fnBarcodeSearch = (barcode) => {
|
|
|
|
@ -273,6 +277,9 @@
|
|
|
|
|
dialog.alert(obj.message);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// obj.data.forEach(item => {
|
|
|
|
|
// item.data.dsuseQy = parseFloat(item.data.dsuseQy.toFixed(2)).toString()
|
|
|
|
|
// });
|
|
|
|
|
return obj.data;
|
|
|
|
|
}
|
|
|
|
|
, infoSize: "xl"
|
|
|
|
@ -680,7 +687,10 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 숫자만 입력받도록 input 요소에 이벤트 리스너 추가
|
|
|
|
|
$("input[name='dsuseQy']").on('change', function() {
|
|
|
|
|
this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');
|
|
|
|
|
});
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|