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
2c96075c
Commit
2c96075c
authored
Aug 20, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/policy_fix' into 'master'
fix: 华贵基础数据更新 See merge request
!63
parents
5c218b0a
dc1df410
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
70 additions
and
13 deletions
+70
-13
detail.huagui.shouxian.js
src/api/detail.huagui.shouxian.js
+3
-3
index.js
src/router/index.js
+3
-0
index.vue
src/views/Consultant/index.vue
+25
-0
CIIDetail.vue
src/views/Goods/Detail/CIIDetail.vue
+1
-2
CalInsuredFee.vue
src/views/Goods/Detail/modules/CalInsuredFee.vue
+1
-1
InsurePersonForm.vue
src/views/Goods/Detail/modules/InsurePersonForm.vue
+31
-5
UserFamily.vue
src/views/User/modules/UserFamily.vue
+6
-2
No files found.
src/api/detail.huagui.shouxian.js
View file @
2c96075c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Description: 华贵大麦2020定期寿险
* @Description: 华贵大麦2020定期寿险
* @Date: 2020-07-27 15:46:37
* @Date: 2020-07-27 15:46:37
* @LastEditors: gzw
* @LastEditors: gzw
* @LastEditTime: 2020-08-20
18:03:46
* @LastEditTime: 2020-08-20
20:28:30
*/
*/
import
goodsBg
from
"
@/assets/images/goods/detail/shouxian/bg.png
"
;
import
goodsBg
from
"
@/assets/images/goods/detail/shouxian/bg.png
"
;
...
@@ -97,8 +97,8 @@ export default {
...
@@ -97,8 +97,8 @@ export default {
{
label
:
"
年缴
"
,
value
:
"
1
"
}
{
label
:
"
年缴
"
,
value
:
"
1
"
}
],
],
sexOptions
:
[
sexOptions
:
[
{
label
:
"
男
"
,
value
:
"
0
"
},
{
label
:
"
男
"
,
value
:
"
1
"
},
{
label
:
"
女
"
,
value
:
"
1
"
}
{
label
:
"
女
"
,
value
:
"
0
"
}
],
],
idCardInvaildOptions
:
[
idCardInvaildOptions
:
[
{
label
:
"
非长期
"
,
value
:
"
1
"
},
{
label
:
"
非长期
"
,
value
:
"
1
"
},
...
...
src/router/index.js
View file @
2c96075c
...
@@ -14,6 +14,9 @@ const originalPush = VueRouter.prototype.push;
...
@@ -14,6 +14,9 @@ const originalPush = VueRouter.prototype.push;
VueRouter
.
prototype
.
push
=
function
push
(
location
)
{
VueRouter
.
prototype
.
push
=
function
push
(
location
)
{
return
originalPush
.
call
(
this
,
location
).
catch
(
err
=>
err
);
return
originalPush
.
call
(
this
,
location
).
catch
(
err
=>
err
);
};
};
VueRouter
.
prototype
.
replace
=
function
push
(
location
)
{
return
originalPush
.
call
(
this
,
location
).
catch
(
err
=>
err
);
};
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
mode
:
"
history
"
,
mode
:
"
history
"
,
...
...
src/views/Consultant/index.vue
View file @
2c96075c
...
@@ -43,6 +43,7 @@ export default {
...
@@ -43,6 +43,7 @@ export default {
},
},
computed
:
{
computed
:
{
orderState
()
{
orderState
()
{
this
.
changePageTitle
();
return
this
.
orderInfo
[
0
]
?
this
.
orderInfo
[
0
].
state
:
-
1
;
return
this
.
orderInfo
[
0
]
?
this
.
orderInfo
[
0
].
state
:
-
1
;
},
},
...
mapState
([
"
isShowLogin
"
])
...
mapState
([
"
isShowLogin
"
])
...
@@ -71,6 +72,30 @@ export default {
...
@@ -71,6 +72,30 @@ export default {
},
},
changeQuestion
()
{
changeQuestion
()
{
this
.
showQuestion
=
true
;
this
.
showQuestion
=
true
;
},
changePageTitle
()
{
const
state
=
""
+
(
this
.
orderInfo
[
0
]
?
this
.
orderInfo
[
0
].
state
:
-
1
);
let
pageTitle
=
""
;
switch
(
state
)
{
case
"
-1
"
:
case
"
2
"
:
case
"
1-1
"
:
case
"
1-2
"
:
case
"
1-3
"
:
pageTitle
=
"
1对1保险顾问
"
;
break
;
case
"
3
"
:
pageTitle
=
"
调查问卷
"
;
break
;
case
"
4
"
:
case
"
5
"
:
pageTitle
=
"
保险顾问
"
;
break
;
default
:
pageTitle
=
"
1对1保险顾问
"
;
break
;
}
document
.
title
=
pageTitle
;
}
}
}
}
};
};
...
...
src/views/Goods/Detail/CIIDetail.vue
View file @
2c96075c
...
@@ -212,7 +212,6 @@ export default {
...
@@ -212,7 +212,6 @@ export default {
},
},
autoRenewPolicy
:
autoRenewPolicy
autoRenewPolicy
:
autoRenewPolicy
};
};
console
.
log
(
subFormData
);
if
(
relation
===
"
1
"
)
{
if
(
relation
===
"
1
"
)
{
subFormDataCache
.
holderUserInfo
.
socialSecurity
=
!!
Number
(
selfSocialSecurity
);
subFormDataCache
.
holderUserInfo
.
socialSecurity
=
!!
Number
(
selfSocialSecurity
);
subFormDataCache
.
holderUserInfo
.
relation
=
relation
;
subFormDataCache
.
holderUserInfo
.
relation
=
relation
;
...
@@ -338,7 +337,7 @@ export default {
...
@@ -338,7 +337,7 @@ export default {
userInfoSecId
userInfoSecId
}
=
this
.
formData
;
}
=
this
.
formData
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
if
(
!
idNoWho
||
!
socialSecurity
||
!
payType
)
return
;
if
(
!
idNoWho
||
!
payType
)
return
;
const
_param
=
{
const
_param
=
{
productNo
:
this
.
goodId
,
productNo
:
this
.
goodId
,
productUserInfo
:
{
productUserInfo
:
{
...
...
src/views/Goods/Detail/modules/CalInsuredFee.vue
View file @
2c96075c
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
countOptions
:
insuredAmountOptions
,
countOptions
:
insuredAmountOptions
,
termOptions
,
termOptions
,
paywayOptions
,
paywayOptions
,
benefitOptions
:
benefitOptions
.
filter
((
item
,
index
)
=>
index
>
0
)
benefitOptions
:
benefitOptions
};
};
},
},
watch
:
{
watch
:
{
...
...
src/views/Goods/Detail/modules/InsurePersonForm.vue
View file @
2c96075c
...
@@ -265,8 +265,38 @@ export default {
...
@@ -265,8 +265,38 @@ export default {
this
.
selfInfoReadonly
=
true
;
this
.
selfInfoReadonly
=
true
;
}
}
});
});
const
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
relation
);
let
userArray
=
this
.
familyList
.
filter
(
item
=>
{
if
(
item
.
userInfoSecId
===
sessionStorage
.
getItem
(
this
.
detailType
+
"
userInfoSecId
"
))
{
this
.
formData
.
relation
=
""
+
item
.
relation
;
return
item
;
}
});
if
(
!
userArray
.
length
)
{
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
relation
);
}
else
{
this
.
formData
.
relation
=
sessionStorage
.
getItem
(
this
.
detailType
+
"
relation
"
);
sessionStorage
.
removeItem
(
this
.
detailType
+
"
userInfoSecId
"
);
sessionStorage
.
removeItem
(
this
.
detailType
+
"
relation
"
);
}
let
[
name
,
idNo
,
userInfoSecId
,
socialSecurity
]
=
[
""
,
""
,
""
,
""
];
let
[
name
,
idNo
,
userInfoSecId
,
socialSecurity
]
=
[
""
,
""
,
""
,
""
];
if
(
relation
===
(
localStorage
.
get
(
this
.
autoSaveKey
)
&&
localStorage
.
get
(
this
.
autoSaveKey
).
relation
)
)
{
const
{
name
:
cachename
,
idNo
:
cacheidNo
,
userInfoSecId
:
cacheuserInfoSecId
,
socialSecurity
:
cachesocialSecurity
}
=
localStorage
.
get
(
this
.
autoSaveKey
);
[
name
,
idNo
,
userInfoSecId
,
socialSecurity
]
=
[
cachename
,
cacheidNo
,
cacheuserInfoSecId
,
cachesocialSecurity
];
}
if
(
userArray
.
length
)
{
if
(
userArray
.
length
)
{
let
{
nameMask
,
idNoMask
,
userInfoSecId
:
id
,
socialSecurity
:
ss
}
=
userArray
[
0
];
let
{
nameMask
,
idNoMask
,
userInfoSecId
:
id
,
socialSecurity
:
ss
}
=
userArray
[
0
];
[
name
,
idNo
,
userInfoSecId
,
socialSecurity
]
=
[
nameMask
,
idNoMask
,
id
,
ss
];
[
name
,
idNo
,
userInfoSecId
,
socialSecurity
]
=
[
nameMask
,
idNoMask
,
id
,
ss
];
...
@@ -310,11 +340,7 @@ export default {
...
@@ -310,11 +340,7 @@ export default {
if
(
this
.
hasAutoSaveData
(
this
.
autoSaveKey
))
{
if
(
this
.
hasAutoSaveData
(
this
.
autoSaveKey
))
{
this
.
getSaveInfoHandler
(
this
.
autoSaveKey
,
AUTO_SAVE_TARGET
);
this
.
getSaveInfoHandler
(
this
.
autoSaveKey
,
AUTO_SAVE_TARGET
);
}
else
{
}
else
{
const
queryId
=
this
.
$route
.
query
.
userInfoSecId
;
let
relation
=
this
.
formData
.
relation
;
let
relation
=
this
.
formData
.
relation
;
if
(
queryId
)
{
relation
=
this
.
familyList
.
filter
(
item
=>
item
.
userInfoSecId
===
queryId
)[
0
].
relation
;
}
(
this
.
showAuthXyqb
||
this
.
mongoToken
)
&&
this
.
relationChange
(
relation
);
(
this
.
showAuthXyqb
||
this
.
mongoToken
)
&&
this
.
relationChange
(
relation
);
}
}
}
}
...
...
src/views/User/modules/UserFamily.vue
View file @
2c96075c
...
@@ -111,14 +111,18 @@ export default {
...
@@ -111,14 +111,18 @@ export default {
methods
:
{
methods
:
{
go
(
path
,
params
)
{
go
(
path
,
params
)
{
if
(
path
===
"
/goods/detail
"
&&
params
)
{
if
(
path
===
"
/goods/detail
"
&&
params
)
{
let
userInfoSecId
=
""
;
let
[
userInfoSecId
,
relation
]
=
[
""
,
""
]
;
if
(
this
.
familyList
&&
this
.
familyList
.
length
)
{
if
(
this
.
familyList
&&
this
.
familyList
.
length
)
{
userInfoSecId
=
this
.
familyList
[
this
.
activeIndex
].
userInfoSecId
;
userInfoSecId
=
this
.
familyList
[
this
.
activeIndex
].
userInfoSecId
;
relation
=
this
.
familyList
[
this
.
activeIndex
].
relation
;
}
}
path
=
{
path
=
{
path
,
path
,
query
:
{
id
:
params
.
id
,
type
:
params
.
itype
,
userInfoSecId
}
query
:
{
id
:
params
.
id
,
type
:
params
.
itype
}
};
};
sessionStorage
.
setItem
(
params
.
itype
+
"
relation
"
,
relation
);
sessionStorage
.
setItem
(
params
.
itype
+
"
userInfoSecId
"
,
userInfoSecId
);
localStorage
.
remove
(
params
.
itype
+
"
DetailFormData
"
);
}
else
if
(
path
===
"
/policy/detail
"
&&
params
.
orderNo
)
{
}
else
if
(
path
===
"
/policy/detail
"
&&
params
.
orderNo
)
{
path
=
`
${
path
}
/
${
params
.
orderNo
}
`
;
path
=
`
${
path
}
/
${
params
.
orderNo
}
`
;
}
}
...
...
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