建议书编辑删除附加险后再添加附加险逻辑修改

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-07-03 18:17:45 +08:00
parent c83792a815
commit 10e94484a7

View File

@@ -17,7 +17,7 @@
></van-tag
>
<van-icon name="search" size="20" v-if="item.documentDTOS && item.documentDTOS.length > 0" @click="seeDocument(index)" class="green mr5" />
<van-icon name="delete" size="22" @click="deleteRisk(index)" class="green" />
<van-icon name="delete" size="22" @click="deleteRisk(index,item)" class="green" />
</div>
<!-- 险种条件-->
<div v-if="(item.isRemit == 1 && isTrial == '1') || (item.isRemit == 1 && isTrial != '1' && item.isMainRisk == 1)">
@@ -2136,7 +2136,7 @@ export default {
// })
},
//删除所选产品
deleteRisk(index) {
deleteRisk(index,data) {
Dialog.confirm({
title: '提示',
message: '确认删除该险种?',
@@ -2173,12 +2173,12 @@ export default {
this.chooseProducts.splice(index, 1)
}
if (
this.chooseProducts[0].mainRiskCode == 'GFRS_M0051' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0044' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0060' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0035' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0038' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0040'
this.chooseProducts[0].mainRiskCode == 'GFRS_M0051' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0044' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0060' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0035' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0038' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0040'
) {
if (currentGFRS_A0011 && (JSON.stringify(this.chooseProducts).includes('GFRS_A0010') || JSON.stringify(this.chooseProducts).includes('GFRS_A0014'))) {
this.chooseProducts.forEach((item, index01) => {
@@ -2228,6 +2228,15 @@ export default {
// // this.nextStepFlag = true
// }
}
if (localStorage.oldAddRiskCodes && JSON.parse(localStorage.oldAddRiskCodes)) {
let thismyoldAddRiskCodes = JSON.parse(localStorage.oldAddRiskCodes)
thismyoldAddRiskCodes.forEach((item,index0)=>{
if(item == data.productCode){
thismyoldAddRiskCodes.splice(index0,1)
}
})
localStorage.oldAddRiskCodes = JSON.stringify(thismyoldAddRiskCodes)
}
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
this.getTrial()
})