告知修改

This commit is contained in:
皮伟
2019-11-11 14:28:13 +08:00
parent 2eae98e9d9
commit 0ef998b9c9

View File

@@ -91,6 +91,8 @@ export default {
saleInsuredPersonInfo: {},
// 投被保人是否同人 1为同一个人
relationToAppnt: '',
// 产品编码
productCodes: '',
// 是否可以点击
isDisabled: false,
saleInsuredAge: '',
@@ -127,7 +129,7 @@ export default {
}
})
// this.relationToAppnt = `1`
this.productCodes = JSON.parse(localStorage.chooseProductCodes)
this.information()
},
methods: {
@@ -255,17 +257,41 @@ export default {
}
})
})
// 如果是国富民心展示被保人
if (this.productCodes == 'GFRS_M0002' || this.productCodes == 'GFRS_M0003' || this.productCodes == 'GFRS_M0004') {
res.productImpartLstDTO.impartDTOS.map((item, index, array) => {
if (item.impartType == '0') {
array.splice(index, 1)
}
if (item.impartType == '2') {
array.splice(index, 1)
}
})
}
if (this.relationToAppnt == '1') {
res.productImpartLstDTO.impartDTOS.map((item, index, array) => {
if (item.impartType == '1') {
array.splice(index, 1)
}
})
res.productImpartLstDTO.impartDTOS.map((item, index, array) => {
if (item.impartType == '3') {
array.splice(index, 1)
}
})
// 如果是国富民心展示被保人
if (this.productCodes == 'GFRS_M0002' || this.productCodes == 'GFRS_M0003' || this.productCodes == 'GFRS_M0004') {
res.productImpartLstDTO.impartDTOS.map((item, index, array) => {
if (item.impartType == '0') {
array.splice(index, 1)
}
if (item.impartType == '2') {
array.splice(index, 1)
}
})
} else {
res.productImpartLstDTO.impartDTOS.map((item, index, array) => {
if (item.impartType == '1') {
array.splice(index, 1)
}
})
res.productImpartLstDTO.impartDTOS.map((item, index, array) => {
if (item.impartType == '3') {
array.splice(index, 1)
}
})
}
that.impartDTOS = res.productImpartLstDTO.impartDTOS
that.isShowList()
//投被同人时候判断