mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 05:46:44 +08:00
[FIX]电投优化-告知页面信息反显
This commit is contained in:
@@ -168,8 +168,48 @@ export default {
|
||||
this.$utils.intLocalStorage(res)
|
||||
this.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
||||
this.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
|
||||
// 获取告知消息
|
||||
this.information()
|
||||
//如果返回参数存在曾经提交的告知信息,获取曾经提交的告知信息
|
||||
let insuredFinanceImpartDTO = res.orderDTO.appntDTO.financeImpartDTO //投保人财务告知集合
|
||||
let insuredImpartDTO = res.orderDTO.appntDTO.impartDTO //投保人健康告知集合
|
||||
let insuredPersionFinanceImpartDTO = res.orderDTO.insuredDTOs[0].financeImpartDTO //被保人财务告知集合
|
||||
let insuredPersionImpartDTO = res.orderDTO.insuredDTOs[0].impartDTO //被保人健康告知集合
|
||||
if (
|
||||
insuredFinanceImpartDTO.impartItemDTOS ||
|
||||
insuredImpartDTO.impartItemDTOS ||
|
||||
insuredPersionFinanceImpartDTO.impartItemDTOS ||
|
||||
insuredPersionImpartDTO.impartItemDTOS
|
||||
) {
|
||||
if (insuredFinanceImpartDTO.impartItemDTOS) {
|
||||
this.impartDTOS.push({ impartItemDTOS: insuredFinanceImpartDTO.impartItemDTOS, impartType: insuredFinanceImpartDTO.impartType })
|
||||
}
|
||||
if (insuredImpartDTO.impartItemDTOS) {
|
||||
this.impartDTOS.push({ impartItemDTOS: insuredImpartDTO.impartItemDTOS, impartType: insuredImpartDTO.impartType })
|
||||
}
|
||||
if (insuredPersionFinanceImpartDTO.impartItemDTOS) {
|
||||
this.impartDTOS.push({ impartItemDTOS: insuredPersionFinanceImpartDTO.impartItemDTOS, impartType: insuredPersionFinanceImpartDTO.impartType })
|
||||
}
|
||||
if (insuredPersionImpartDTO.impartItemDTOS) {
|
||||
this.impartDTOS.push({ impartItemDTOS: insuredPersionImpartDTO.impartItemDTOS, impartType: insuredPersionImpartDTO.impartType })
|
||||
}
|
||||
this.impartDTOS.map(v => {
|
||||
v.impartItemDTOS.map(i => {
|
||||
i.isSelect =
|
||||
this.formatDateTime() +
|
||||
Math.random()
|
||||
.toString(36)
|
||||
.substr(2)
|
||||
i.show = false
|
||||
if (i.impartAnswer == '0') {
|
||||
i.show = true
|
||||
} else {
|
||||
i.questions[0].answer = ''
|
||||
}
|
||||
})
|
||||
})
|
||||
} else {
|
||||
// 获取告知消息
|
||||
this.information()
|
||||
}
|
||||
//投被同人取到年纪和性别去判断是是否显示内容
|
||||
this.saleInsuredAge = utilsAge.getAge(this.saleInsuredInfo.birthday, new Date())
|
||||
this.saleInsuredSex = this.saleInsuredInfo.sex
|
||||
@@ -234,8 +274,8 @@ export default {
|
||||
// 一键全否
|
||||
allFalse() {
|
||||
let that = this
|
||||
// alert('1')
|
||||
that.impartDTOS.map(it => {
|
||||
console.log('it', it.impartItemDTOS)
|
||||
it.impartItemDTOS.map(itm => {
|
||||
itm.impartAnswer = '1'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user