Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
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
ui
mongo-ui
Commits
9fac1871
Commit
9fac1871
authored
Aug 30, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 未登录填写关系人信息重复添加问题
parent
65ebd718
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
8 deletions
+48
-8
InsurePersonForm.vue
src/views/Goods/Detail/modules/InsurePersonForm.vue
+24
-4
index.vue
src/views/Policy/Add/index.vue
+24
-4
No files found.
src/views/Goods/Detail/modules/InsurePersonForm.vue
View file @
9fac1871
...
@@ -442,11 +442,31 @@ export default {
...
@@ -442,11 +442,31 @@ export default {
this
.
familyList
=
res
;
this
.
familyList
=
res
;
if
(
this
.
hasAutoSaveData
(
this
.
autoSaveKey
)
&&
!
reset
)
{
if
(
this
.
hasAutoSaveData
(
this
.
autoSaveKey
)
&&
!
reset
)
{
this
.
getSaveInfoHandler
(
this
.
autoSaveKey
,
AUTO_SAVE_TARGET
);
this
.
getSaveInfoHandler
(
this
.
autoSaveKey
,
AUTO_SAVE_TARGET
);
if
(
this
.
formData
.
relation
)
{
const
{
idNo
,
userInfoSecId
,
relation
}
=
this
.
formData
;
const
userArray
=
this
.
familyList
.
filter
(
if
(
relation
)
{
item
=>
item
.
relation
===
+
this
.
formData
.
relation
const
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
relation
);
);
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
if
(
idNo
&&
!
userInfoSecId
)
{
this
.
familyList
.
forEach
(
item
=>
{
if
(
item
.
idNo
===
idNo
)
{
const
{
idNoMask
,
nameMask
,
socialSecurity
,
userInfoSecId
}
=
item
;
this
.
formData
=
{
...
this
.
formData
,
...{
idNo
:
idNoMask
,
name
:
nameMask
,
userInfoSecId
,
socialSecurity
:
typeof
socialSecurity
===
undefined
||
socialSecurity
===
""
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
}
});
}
}
else
{
}
else
{
this
.
formData
.
relation
=
"
1
"
;
this
.
formData
.
relation
=
"
1
"
;
}
}
...
...
src/views/Policy/Add/index.vue
View file @
9fac1871
...
@@ -997,11 +997,31 @@ export default {
...
@@ -997,11 +997,31 @@ export default {
this
.
familyList
=
res
;
this
.
familyList
=
res
;
if
(
this
.
hasAutoSaveData
(
AUTO_SAVE_KEY
))
{
if
(
this
.
hasAutoSaveData
(
AUTO_SAVE_KEY
))
{
this
.
getSaveInfoHandler
(
AUTO_SAVE_KEY
,
AUTO_SAVE_TARGET
);
this
.
getSaveInfoHandler
(
AUTO_SAVE_KEY
,
AUTO_SAVE_TARGET
);
if
(
this
.
formData
.
insuredUserInfo
.
relation
)
{
const
{
relation
,
idNo
,
userInfoSecId
}
=
this
.
formData
.
insuredUserInfo
;
const
userArray
=
this
.
familyList
.
filter
(
if
(
relation
)
{
item
=>
item
.
relation
===
+
this
.
formData
.
insuredUserInfo
.
relation
const
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
relation
);
);
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
if
(
idNo
&&
!
userInfoSecId
)
{
this
.
familyList
.
forEach
(
item
=>
{
if
(
item
.
idNo
===
idNo
)
{
const
{
idNoMask
,
nameMask
,
socialSecurity
,
userInfoSecId
}
=
item
;
this
.
formData
.
insuredUserInfo
=
{
...
this
.
formData
.
insuredUserInfo
,
...{
idNo
:
idNoMask
,
name
:
nameMask
,
userInfoSecId
,
socialSecurity
:
typeof
socialSecurity
===
undefined
||
socialSecurity
===
""
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
}
});
}
}
}
if
(
!
this
.
formData
.
holderUserInfo
.
name
)
{
if
(
!
this
.
formData
.
holderUserInfo
.
name
)
{
const
selfInfo
=
this
.
familyList
.
find
(
item
=>
item
.
relation
===
1
);
const
selfInfo
=
this
.
familyList
.
find
(
item
=>
item
.
relation
===
1
);
...
...
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