合同基准费用格式调整

This commit is contained in:
hayu 2025-03-03 18:13:00 +08:00
parent 9f55513095
commit c18052de45
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ function checkValue2(that, type) {
}
}
} else if (type === 3) { // 单项基准费用(元/吨*公里
const regex = /^(?:(?:[1-9]\d{0,3}(?:\.\d{1,2})?)|(?:0\.(?:0[1-9]|[1-9]\d?))|10000(?:\.00?)?)$/;
const regex = /^(?:(?:[1-9]\d{0,3}(?:\.\d{1,3})?)|(?:0\.(?:00[1-9]|0[1-9]\d|[1-9]\d{2}))|10000(?:\.0{1,3})?)$/;
if (!regex.test(value) && value) {
$(that).val('');
return layer.msg('单项基准费用(元/吨*公里范围在必须大于0,小于等于10000请重新输入!', { icon: 5 })

View File

@ -125,7 +125,7 @@ function checkValue2(that, type) {
}
}
} else if (type === 3) { // 单项基准费用(元/吨*公里
const regex = /^(?:(?:[1-9]\d{0,3}(?:\.\d{1,2})?)|(?:0\.(?:0[1-9]|[1-9]\d?))|10000(?:\.00?)?)$/;
const regex = /^(?:(?:[1-9]\d{0,3}(?:\.\d{1,3})?)|(?:0\.(?:00[1-9]|0[1-9]\d|[1-9]\d{2}))|10000(?:\.0{1,3})?)$/;
if (!regex.test(value) && value) {
$(that).val('');
return layer.msg('单项基准费用(元/吨*公里范围在必须大于0,小于等于10000请重新输入!', { icon: 5 })