Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
d187fa53
Commit
d187fa53
authored
Dec 17, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c296f7c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
addPassenger.vue
src/components/SalesModule/addPassenger.vue
+2
-1
No files found.
src/components/SalesModule/addPassenger.vue
View file @
d187fa53
...
@@ -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
(
"护照格式不正确"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment