This commit is contained in:
邓晓坤
2019-10-15 10:27:32 +08:00
parent 3b6386c683
commit d1bb549d46

View File

@@ -4,7 +4,7 @@
<div>
<div class="flex p10 align-items-c bg-white mt10">
<!-- <div class="attachmentManagement-block"></div> -->
<span>投保人附件</span>
<span>投保人附件 {{typebeneficiary,'z'}}</span>
</div>
<div class="m20 bg-white">
<div class="p10">
@@ -199,7 +199,7 @@
</div>
</div>
<!-- 受益人类型 -->
<div v-if="typebeneficiary">
<div v-if="typebeneficiary==true">
<div class="flex bg-white p10 align-items-c">
<span>受益人附件</span>
</div>
@@ -495,7 +495,6 @@ export default {
methods: {
// 删除图片前
beforeDelete(file, detail) {
let that = this
Dialog.confirm({
title: '提示',
@@ -975,17 +974,20 @@ export default {
// 1.趸交保费≥20万元或期交保费*总期数≥20万元时
// 2.指定受益人
// 3.受益人与被保人关系为其他
let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo'))
if (window.localStorage.getItem('fromAddBeneficiaryInfo') && JSON.parse(window.localStorage.getItem('trialList'))[0].prem >= 200000) {
for (let index = 0; index < beneficiaryInfoList.length; index++) {
if (beneficiaryInfoList[index].relationToInsured == 5) {
return true
}
}
// return false
} else {
if ((!window.localStorage.getItem('trialList') == true) || (!window.localStorage.getItem('beneficiaryInfo') == true)) {
return false
} else {
let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo'))
if (JSON.parse(window.localStorage.getItem('trialList'))[0].prem >= 100000) {
for (let index = 0; index < beneficiaryInfoList.length; index++) {
if (beneficiaryInfoList[index].relationToInsured == 5) {
return true
}
}
// return false
} else {
return false
}
}
},
listenChange() {