Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
省
省二结算
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
任鸿志
省二结算
Commits
a9f76729
Commit
a9f76729
authored
Jul 04, 2025
by
任鸿志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(Readcards): 优化实体卡号输入逻辑
- 增加对 11 位和 21 位卡号的处理 - 修改 18 位卡号的处理逻辑,明确为身份证 - 调整 64 位以上卡号的处理条件
parent
1086f385
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
index.vue
src/components/Readcards/index.vue
+13
-2
No files found.
src/components/Readcards/index.vue
View file @
a9f76729
...
@@ -108,7 +108,18 @@ export default {
...
@@ -108,7 +108,18 @@ export default {
},
},
// 输入框回车事件
// 输入框回车事件
handleEnterModal
()
{
handleEnterModal
()
{
if
(
this
.
form
.
physicalCard
.
toString
().
length
===
11
){
this
.
form
.
physicalCard
=
this
.
form
.
physicalCard
.
substring
(
3
)
this
.
form
.
physicalCardType
=
'
PATIENT_ID
'
this
.
$emit
(
'
getyibaoinfo
'
,
this
.
form
)
}
if
(
this
.
form
.
physicalCard
.
toString
().
length
===
21
){
this
.
form
.
physicalCard
=
this
.
form
.
physicalCard
.
substring
(
3
)
this
.
form
.
physicalCardType
=
'
ID_CARD
'
this
.
$emit
(
'
getyibaoinfo
'
,
this
.
form
)
}
if
(
this
.
form
.
physicalCard
.
toString
().
length
===
28
)
{
if
(
this
.
form
.
physicalCard
.
toString
().
length
===
28
)
{
this
.
loadingapplyList
=
true
this
.
loadingapplyList
=
true
// 电子医保码
// 电子医保码
...
@@ -127,13 +138,13 @@ export default {
...
@@ -127,13 +138,13 @@ export default {
// 输入患者id
// 输入患者id
this
.
form
.
physicalCardType
=
'
PATIENT_ID
'
this
.
form
.
physicalCardType
=
'
PATIENT_ID
'
this
.
$emit
(
'
getyibaoinfo
'
,
this
.
form
)
this
.
$emit
(
'
getyibaoinfo
'
,
this
.
form
)
}
else
if
(
this
.
form
.
physicalCard
.
toString
().
length
>
64
)
{
}
else
if
(
this
.
form
.
physicalCard
.
toString
().
length
>
=
64
)
{
// 截取前64位获取电子健康卡编码
// 截取前64位获取电子健康卡编码
this
.
form
.
physicalCard
=
this
.
form
.
physicalCard
.
toString
().
substring
(
0
,
64
)
this
.
form
.
physicalCard
=
this
.
form
.
physicalCard
.
toString
().
substring
(
0
,
64
)
this
.
form
.
physicalCardType
=
'
ELECTRONIC_HEALTH_CARD
'
this
.
form
.
physicalCardType
=
'
ELECTRONIC_HEALTH_CARD
'
this
.
$emit
(
'
getyibaoinfo
'
,
this
.
form
)
this
.
$emit
(
'
getyibaoinfo
'
,
this
.
form
)
}
else
if
(
this
.
form
.
physicalCard
.
toString
().
length
===
18
)
{
}
else
if
(
this
.
form
.
physicalCard
.
toString
().
length
===
18
)
{
//
就诊卡
//
身份证
this
.
form
.
physicalCardType
=
'
ID_CARD
'
this
.
form
.
physicalCardType
=
'
ID_CARD
'
this
.
$emit
(
'
getyibaoinfo
'
,
this
.
form
)
this
.
$emit
(
'
getyibaoinfo
'
,
this
.
form
)
}
}
...
...
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