This commit is contained in:
parent
63e25dff30
commit
f02f35db75
|
|
@ -424,7 +424,7 @@ function checkValue(that, type) {
|
|||
const regex = /^(?:1(?:\d{0,8}|[0-9]*\.\d{1,2})|(?:[1-9]\d{0,7}|[1-9]\d{0,6}\.\d{1,2}|[1-9]\d{1,7}\.\d{2}|100000000(?:\.00)?))$/;
|
||||
if (!regex.test(value) && value) {
|
||||
$(that).val(0);
|
||||
return layer.msg('单价输入不合法,请重新输入!', { icon: 5 })
|
||||
return layer.msg('单价格式不正确(提示:最多保留两位小数)!', { icon: 5 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ function initTable() {
|
|||
const regex = /^(?:1(?:\d{0,8}|[0-9]*\.\d{1,2})|(?:[1-9]\d{0,7}|[1-9]\d{0,6}\.\d{1,2}|[1-9]\d{1,7}\.\d{2}|100000000(?:\.00)?))$/;
|
||||
if (!regex.test(value)) {
|
||||
obj.reedit();
|
||||
return layer.msg('单价格式不正确!', { icon: 7 })
|
||||
return layer.msg('单价格式不正确(提示:最多保留两位小数)!', { icon: 7 })
|
||||
}
|
||||
} else if (field === 'remarks') { // 备注
|
||||
if (value) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ function getStatistics() {
|
|||
function setNum(obj) {
|
||||
$('#warn').html(parseInt(obj.warn));
|
||||
$('#money').html(obj.money);
|
||||
$('#type').html(parseInt(obj.type));
|
||||
$('#type2').html(parseInt(obj.type));
|
||||
$('#kcNum').html(parseInt(obj.kcNum));
|
||||
}
|
||||
}
|
||||
|
|
@ -179,5 +179,5 @@ function exportExcel() {
|
|||
'isWarn': $('#isWarn').val()
|
||||
}
|
||||
let url = dataUrl + "backstage/statistic/exportPaTypeList";
|
||||
exportExcelUtil(url, '机具公司发货数据', JSON.stringify(params));
|
||||
exportExcelUtil(url, '库存统计', JSON.stringify(params));
|
||||
}
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
<div class="layout num-title">
|
||||
<p>配件类型</p>
|
||||
<div class="layout">
|
||||
<p class="num-style" id="type">0</p>
|
||||
<p class="num-style" id="type2">0</p>
|
||||
<p class="unit-class">类</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue