mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 04:16:44 +08:00
建议书编辑删除附加险后再添加附加险逻辑修改
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user