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
f895e5c3
Commit
f895e5c3
authored
Aug 25, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1c65620a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
addPassenger.vue
src/components/SalesModule/addPassenger.vue
+3
-3
No files found.
src/components/SalesModule/addPassenger.vue
View file @
f895e5c3
...
@@ -1513,15 +1513,15 @@
...
@@ -1513,15 +1513,15 @@
// 中国护照验证逻辑
// 中国护照验证逻辑
isValidPassport
:
function
()
{
isValidPassport
:
function
()
{
var
isCheck
=
true
;
var
isCheck
=
true
;
if
(
this
.
addMsg
.
Nationality
===
this
.
NationalityId
){
if
(
this
.
addMsg
.
PassportNo
.
length
!==
9
)
{
if
(
this
.
addMsg
.
PassportNo
.
length
!==
9
)
{
this
.
$message
.
error
(
"请输入9位护照号"
)
this
.
$message
.
error
(
"请输入9位护照号"
)
isCheck
=
false
;
isCheck
=
false
;
return
;
return
;
}
}
if
(
this
.
addMsg
.
Nationality
===
this
.
NationalityId
){
// 单个字母开头(E或G)后跟8位数字
// 单个字母开头(E或G)后跟8位数字
const
pattern1
=
/^
[
EGH
][
0-9
]{8}
$/
;
const
pattern1
=
/^
[
EGH
A
][
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}
$/
;
this
.
PassportNoSure
=
pattern1
.
test
(
this
.
addMsg
.
PassportNo
)
||
pattern2
.
test
(
this
.
addMsg
.
PassportNo
);
this
.
PassportNoSure
=
pattern1
.
test
(
this
.
addMsg
.
PassportNo
)
||
pattern2
.
test
(
this
.
addMsg
.
PassportNo
);
...
...
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