Commit d187fa53 authored by 吴春's avatar 吴春

1

parent c296f7c3
...@@ -1546,7 +1546,8 @@ ...@@ -1546,7 +1546,8 @@
// 单个字母开头(E或G)后跟8位数字 // 单个字母开头(E或G)后跟8位数字
const pattern1 = /^[EGH][0-9]{8}$/; const pattern1 = /^[EGH][0-9]{8}$/;
// 两个字母开头(E开头,第二个字母不能是I或O)后跟7位数字 // 两个字母开头(E开头,第二个字母不能是I或O)后跟7位数字
const pattern2 = /^E[A-HJ-NP-Z][0-9]{7}$/; // const pattern2 = /^E[A-HJ-NP-Z][0-9]{7}$/;
const pattern2 = /^[EP][A-HJ-NP-Z][0-9]{7}$/;
this.PassportNoSure = pattern1.test(this.addMsg.PassportNo) || pattern2.test(this.addMsg.PassportNo); this.PassportNoSure = pattern1.test(this.addMsg.PassportNo) || pattern2.test(this.addMsg.PassportNo);
if (!this.PassportNoSure) { if (!this.PassportNoSure) {
this.$message.error("护照格式不正确") this.$message.error("护照格式不正确")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment