diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue
index c53832440..e3be6a020 100644
--- a/src/views/ebiz/common/CalculatePremium.vue
+++ b/src/views/ebiz/common/CalculatePremium.vue
@@ -17,7 +17,7 @@
>附
-
+
@@ -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()
})