取消车牌号校验
This commit is contained in:
parent
55066454b1
commit
d113295c7c
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 "车牌号格式不正确";
|
||||
// }
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 "车牌号格式不正确";
|
||||
// }
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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, '"');
|
||||
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>" +
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue