diff --git a/js/car_basic/child/framework_contract_edit_oper.js b/js/car_basic/child/framework_contract_edit_oper.js
index 82caae9..e7d7d8f 100644
--- a/js/car_basic/child/framework_contract_edit_oper.js
+++ b/js/car_basic/child/framework_contract_edit_oper.js
@@ -53,7 +53,7 @@ function addTableTrData(cjId, item) {
}
}
let html = '';
- let num = $('.transVehiclesTr' + cjId).length;;
+ let num = $('.transVehiclesTr' + cjId).length;
html += "
";
html += '
';
html += "
"
@@ -86,10 +86,10 @@ function checkValue2(that, type) {
let value = $(that).val();
if (type === 1) { // 公里数1
const regex = /^\s*\d+\s*$/;
- if (!regex.test(value) && value) {
- $(that).val('');
- return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
- }
+ // if (!regex.test(value) && value) {
+ // $(that).val('');
+ // return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
+ // }
let index = $(that).parents('td').prev().html();
if (index === '1' && value !== '0') { // 第一行数据必须从0开始
$(that).val('0');
@@ -108,10 +108,10 @@ function checkValue2(that, type) {
}
} else if (type === 2) { // 公里数2
const regex = /^\s*\d+\s*$/;
- if (!regex.test(value) && value) {
- $(that).val('');
- return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
- }
+ // if (!regex.test(value) && value) {
+ // $(that).val('');
+ // return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
+ // }
let index = $(that).parents('td').prev().html();
let num = $(that).prev().prev().val();
if (!num) {
diff --git a/js/car_basic/child/framework_contract_oper.js b/js/car_basic/child/framework_contract_oper.js
index 1f0840e..e3dccac 100644
--- a/js/car_basic/child/framework_contract_oper.js
+++ b/js/car_basic/child/framework_contract_oper.js
@@ -81,10 +81,10 @@ function checkValue2(that, type) {
let value = $(that).val();
if (type === 1) { // 公里数1
const regex = /^\s*\d+\s*$/;
- if (!regex.test(value) && value) {
- $(that).val('');
- return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
- }
+ // if (!regex.test(value) && value) {
+ // $(that).val('');
+ // return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
+ // }
let index = $(that).parents('td').prev().html();
if (index === '1' && value !== '0') { // 第一行数据必须从0开始
$(that).val('0');
@@ -103,10 +103,10 @@ function checkValue2(that, type) {
}
} else if (type === 2) { // 公里数2
const regex = /^\s*\d+\s*$/;
- if (!regex.test(value) && value) {
- $(that).val('');
- return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
- }
+ // if (!regex.test(value) && value) {
+ // $(that).val('');
+ // return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
+ // }
let index = $(that).parents('td').prev().html();
let num = $(that).prev().prev().val();
if (!num) {
diff --git a/js/car_basic/child/set_cost_form.js b/js/car_basic/child/set_cost_form.js
index c88bb4f..a5fcb7d 100644
--- a/js/car_basic/child/set_cost_form.js
+++ b/js/car_basic/child/set_cost_form.js
@@ -85,10 +85,10 @@ function checkValue(that, type, isFirst) {
}
if (type === 1) { // 公里数1
const regex = /^\s*\d+\s*$/;
- if (!regex.test(value) && value) {
- $(that).val('');
- return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
- }
+ // if (!regex.test(value) && value) {
+ // $(that).val('');
+ // return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
+ // }
if (isFirst === 1 && value !== '0') { // 第一行数据必须从0开始
$(that).val('0');
return layer.msg('第一行前置公里数只能从0开始!', { icon: 5 })
@@ -106,10 +106,10 @@ function checkValue(that, type, isFirst) {
}
} else if (type === 2) { // 公里数2
const regex = /^\s*\d+\s*$/;
- if (!regex.test(value) && value) {
- $(that).val('');
- return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
- }
+ // if (!regex.test(value) && value) {
+ // $(that).val('');
+ // return layer.msg('公里数只能输入正整数,请重新输入!', { icon: 5 })
+ // }
let num = $(that).prev().prev().val();
if (!num) {
$(that).val('');