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
efda684e
Commit
efda684e
authored
Oct 16, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 保单填写本人信息回显异常问题修复
parent
20135407
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
12 deletions
+40
-12
main.js
src/main.js
+1
-0
InsurePersonForm.vue
src/views/Goods/Detail/modules/InsurePersonForm.vue
+19
-3
index.vue
src/views/Goods/index.vue
+1
-1
index.vue
src/views/Policy/Add/index.vue
+19
-3
yarn.lock
yarn.lock
+0
-5
No files found.
src/main.js
View file @
efda684e
...
...
@@ -60,6 +60,7 @@ window.addEventListener(
);
if
(
process
.
env
.
VUE_APP_ENVIRONMENT
!==
"
production
"
)
{
Vue
.
config
.
devtools
=
true
;
// ! 上线后务必取掉
new
vConsole
();
}
src/views/Goods/Detail/modules/InsurePersonForm.vue
View file @
efda684e
...
...
@@ -454,7 +454,25 @@ export default {
this
.
familyList
=
res
;
if
(
this
.
hasAutoSaveData
(
this
.
autoSaveKey
)
&&
!
reset
)
{
this
.
getSaveInfoHandler
(
this
.
autoSaveKey
,
AUTO_SAVE_TARGET
);
const
{
idNo
,
userInfoSecId
,
relation
}
=
this
.
formData
;
const
{
idNo
,
userInfoSecId
,
relation
,
selfIdNo
}
=
this
.
formData
;
const
selfUserInfo
=
this
.
familyList
.
find
(
item
=>
item
.
relation
===
1
);
if
(
selfUserInfo
.
idNo
&&
selfIdNo
)
{
const
{
idNoMask
,
nameMask
,
socialSecurity
,
userInfoSecId
}
=
selfUserInfo
;
this
.
formData
=
{
...
this
.
formData
,
...{
selfIdNo
:
idNoMask
,
selfName
:
nameMask
,
selfSecId
:
userInfoSecId
,
selfSocialSecurity
:
typeof
socialSecurity
===
undefined
||
socialSecurity
===
""
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
}
if
(
relation
)
{
const
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
relation
);
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
...
...
@@ -505,8 +523,6 @@ export default {
}
};
}
}
else
{
this
.
selfInfoReadonly
=
true
;
}
}
else
{
let
relation
=
this
.
formData
.
relation
||
"
1
"
;
...
...
src/views/Goods/index.vue
View file @
efda684e
...
...
@@ -56,7 +56,7 @@ export default {
GoodList
,
Tabbar
,
copyright
,
InstructionModal
,
InstructionModal
},
data
()
{
return
{
...
...
src/views/Policy/Add/index.vue
View file @
efda684e
...
...
@@ -1005,7 +1005,25 @@ export default {
this
.
familyList
=
res
;
if
(
this
.
hasAutoSaveData
(
AUTO_SAVE_KEY
))
{
this
.
getSaveInfoHandler
(
AUTO_SAVE_KEY
,
AUTO_SAVE_TARGET
);
const
{
relation
,
idNo
,
userInfoSecId
}
=
this
.
formData
.
insuredUserInfo
;
const
{
relation
,
idNo
,
userInfoSecId
,
selfIdNo
}
=
this
.
formData
.
insuredUserInfo
;
const
selfUserInfo
=
this
.
familyList
.
find
(
item
=>
item
.
relation
===
1
);
if
(
selfUserInfo
.
idNo
&&
selfIdNo
)
{
const
{
idNoMask
,
nameMask
,
socialSecurity
,
userInfoSecId
}
=
selfUserInfo
;
this
.
formData
=
{
...
this
.
formData
,
...{
selfIdNo
:
idNoMask
,
selfName
:
nameMask
,
selfSecId
:
userInfoSecId
,
selfSocialSecurity
:
typeof
socialSecurity
===
undefined
||
socialSecurity
===
""
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
}
if
(
relation
)
{
const
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
relation
);
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
...
...
@@ -1045,8 +1063,6 @@ export default {
}
};
}
}
else
{
this
.
selfInfoReadonly
=
true
;
}
}
else
{
let
relation
=
this
.
formData
.
insuredUserInfo
.
relation
;
...
...
yarn.lock
View file @
efda684e
...
...
@@ -900,11 +900,6 @@
dependencies:
mkdirp "^1.0.4"
"@qg/cherry-ui@^1.2.6":
version "1.2.6"
resolved "http://npmprivate.quantgroups.com/@qg%2fcherry-ui/-/cherry-ui-1.2.6.tgz#c8fcff71d35f0cb59c49019132e1bb5426648da6"
integrity sha512-vXpCUPAlPhcn9hnsTJS7qGgg9KcfTgZIWINaiiahRZQA6pEH4qmLihQp7HYeYvih/ENgDgDcVRRc4OSd7zibcg==
"@qg/qg-scroll@^1.4.2":
version "1.4.2"
resolved "http://npmprivate.quantgroups.com/@qg%2fqg-scroll/-/qg-scroll-1.4.2.tgz#df834f9f372ffa6e4c4233c8a3e6e74ccca971a7"
...
...
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