[FIX] 修改勾选同投保人时与被保人的关系反显

This commit is contained in:
wangmingzhe
2019-12-23 18:14:39 +08:00
parent 66f63121c1
commit c24e766c24

View File

@@ -902,6 +902,11 @@ export default {
//勾选投保人
asAppntAddress(val) {
if (val) {
if (JSON.parse(localStorage.saleInsuredPersonInfo).relationToAppnt == '2') {
;[this.userInfo.relationToInsured, this.relationToAppnt] = ['2', '配偶']
} else if (JSON.parse(localStorage.saleInsuredPersonInfo).relationToAppnt == '4') {
;[this.userInfo.relationToInsured, this.relationToAppnt] = ['3', '父母']
}
this.isInsured = true
let insuredDetail = JSON.parse(localStorage.insuredDetail)
this.userInfo.name = insuredDetail.name //姓名