This commit is contained in:
cwchen 2024-11-16 17:06:52 +08:00
parent 63e25dff30
commit f02f35db75
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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