From ee6e8d65e0c827b98d42d89c6378d0289b27c6cb Mon Sep 17 00:00:00 2001
From: syruan <321359594@qq.com>
Date: Tue, 11 Mar 2025 16:50:15 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=85=AC=E9=87=8C=E6=95=B0?=
=?UTF-8?q?=E6=AD=A3=E6=95=B0=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../child/framework_contract_edit_oper.js | 18 +++++++++---------
js/car_basic/child/framework_contract_oper.js | 16 ++++++++--------
js/car_basic/child/set_cost_form.js | 16 ++++++++--------
3 files changed, 25 insertions(+), 25 deletions(-)
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('');
|