取消车牌号校验

This commit is contained in:
syruan 2026-01-12 14:33:53 +08:00
parent 55066454b1
commit d113295c7c
6 changed files with 19 additions and 17 deletions

View File

@ -17,9 +17,9 @@ function setParams(obj) {
if (value) {
const pass = /^(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-HJ-NP-Z]{1}(?:[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}|[DF]{1}(?:[1-9A-HJ-NP-Z]{1}[0-9]{4}|[0-9]{5}))|[A-Z]{1}[0-9]{5}[使领]{0,1})$/;
let flag = pass.test(value);
if (!flag) {
return "车牌号格式不正确";
}
// if (!flag) {
// return "车牌号格式不正确";
// }
}
},
isTon: function (value, item) {

View File

@ -17,9 +17,9 @@ function setParams(obj) {
if (value) {
const pass = /^(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-HJ-NP-Z]{1}(?:[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}|[DF]{1}(?:[1-9A-HJ-NP-Z]{1}[0-9]{4}|[0-9]{5}))|[A-Z]{1}[0-9]{5}[使领]{0,1})$/;
let flag = pass.test(value);
if (!flag) {
return "车牌号格式不正确";
}
// if (!flag) {
// return "车牌号格式不正确";
// }
}
},
isTon: function (value, item) {

View File

@ -43,9 +43,9 @@ function setParams(obj) {
if (value) {
const pass = /^(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-HJ-NP-Z]{1}(?:[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}|[DF]{1}(?:[1-9A-HJ-NP-Z]{1}[0-9]{4}|[0-9]{5}))|[A-Z]{1}[0-9]{5}[使领]{0,1})$/;
let flag = pass.test(value);
if (!flag) {
return "车牌号格式不正确";
}
// if (!flag) {
// return "车牌号格式不正确";
// }
}
},
});

View File

@ -42,9 +42,9 @@ function setParams(obj) {
if (value) {
const pass = /^(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-HJ-NP-Z]{1}(?:[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}|[DF]{1}(?:[1-9A-HJ-NP-Z]{1}[0-9]{4}|[0-9]{5}))|[A-Z]{1}[0-9]{5}[使领]{0,1})$/;
let flag = pass.test(value);
if (!flag) {
return "车牌号格式不正确";
}
// if (!flag) {
// return "车牌号格式不正确";
// }
}
},
});

View File

@ -42,9 +42,9 @@ function setParams(obj) {
if (value) {
const pass = /^(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-HJ-NP-Z]{1}(?:[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}|[DF]{1}(?:[1-9A-HJ-NP-Z]{1}[0-9]{4}|[0-9]{5}))|[A-Z]{1}[0-9]{5}[使领]{0,1})$/;
let flag = pass.test(value);
if (!flag) {
return "车牌号格式不正确";
}
// if (!flag) {
// return "车牌号格式不正确";
// }
}
},
});
@ -150,7 +150,8 @@ function setPlanTables(list) {
if (list && list.length > 0) {
$.each(list, function (index, item) {
console.log("item", item);
html += "<tr item=" + JSON.stringify(item) + ">" +
let itemJson = JSON.stringify(item).replace(/"/g, '&quot;');
html += "<tr item=\"" + itemJson + "\">" +
"<td><input onclick='sel(this.checked,this," + item.id + ")' name='check' type='checkbox'></td>" +
"<td>" + (index + 1) + "</td>" +
"<td>" + item.type + "</td>" +

View File

@ -111,7 +111,7 @@ function initTable() {
},
{
field: "proName",
width: '10%',
width: '18%',
title: "工程名称",
unresize: true,
align: "center",
@ -212,6 +212,7 @@ function initTable() {
{
title: "操作",
width: '11.5%',
fixed: 'right',
align: "center",
unresize: true,
templet: function (d) {