提交更新告知问题

This commit is contained in:
皮伟
2019-11-11 17:38:00 +08:00
parent 28375b337d
commit 8795d49ef4

View File

@@ -91,7 +91,9 @@ export default {
saleInsuredPersonInfo: {},
// 投被保人是否同人 1为同一个人
relationToAppnt: '',
// 是否可以点击
// 产品编码
productCodes: '',
// 是否可以点击,
isDisabled: false,
saleInsuredAge: '',
saleInsuredSex: '',
@@ -127,7 +129,7 @@ export default {
}
})
// this.relationToAppnt = `1`
this.productCodes = JSON.parse(localStorage.chooseProductCodes)
this.information()
},
methods: {
@@ -255,7 +257,29 @@ 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') {
// 如果是国富民心展示被保人
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)
@@ -266,6 +290,8 @@ export default {
array.splice(index, 1)
}
})
}
that.impartDTOS = res.productImpartLstDTO.impartDTOS
that.isShowList()
//投被同人时候判断