mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-14 07:46:45 +08:00
建议书编辑状态删除主险添加提示语"编辑状态不可删除主险"
This commit is contained in:
@@ -1908,6 +1908,9 @@ export default {
|
|||||||
},
|
},
|
||||||
//删除所选产品
|
//删除所选产品
|
||||||
deleteRisk(index,data) {
|
deleteRisk(index,data) {
|
||||||
|
if (this.chooseProducts[index].isMainRisk == 0 && this.$route.query.insuanceIdInfo) {
|
||||||
|
this.$toast('编辑状态不可删除主险')
|
||||||
|
} else {
|
||||||
Dialog.confirm({
|
Dialog.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: '确认删除该险种?',
|
message: '确认删除该险种?',
|
||||||
@@ -1939,8 +1942,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
localStorage.trialList = ''
|
localStorage.trialList = ''
|
||||||
}else{
|
} else {
|
||||||
currentGFRS_A0011 = this.chooseProducts[index].productCode == 'GFRS_A0011'?true:false //当前删除的是否是两全
|
currentGFRS_A0011 = this.chooseProducts[index].productCode == 'GFRS_A0011' ? true : false //当前删除的是否是两全
|
||||||
this.chooseProducts.splice(index, 1)
|
this.chooseProducts.splice(index, 1)
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
@@ -1953,7 +1956,7 @@ export default {
|
|||||||
) {
|
) {
|
||||||
if (currentGFRS_A0011 && (JSON.stringify(this.chooseProducts).includes('GFRS_A0010') || JSON.stringify(this.chooseProducts).includes('GFRS_A0014'))) {
|
if (currentGFRS_A0011 && (JSON.stringify(this.chooseProducts).includes('GFRS_A0010') || JSON.stringify(this.chooseProducts).includes('GFRS_A0014'))) {
|
||||||
this.chooseProducts.forEach((item, index01) => {
|
this.chooseProducts.forEach((item, index01) => {
|
||||||
if(item.productCode == 'GFRS_A0010' ||item.productCode == 'GFRS_A0014'){
|
if (item.productCode == 'GFRS_A0010' || item.productCode == 'GFRS_A0014') {
|
||||||
this.chooseProducts.splice(index01, 1)
|
this.chooseProducts.splice(index01, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -2001,9 +2004,9 @@ export default {
|
|||||||
}
|
}
|
||||||
if (localStorage.oldAddRiskCodes && JSON.parse(localStorage.oldAddRiskCodes)) {
|
if (localStorage.oldAddRiskCodes && JSON.parse(localStorage.oldAddRiskCodes)) {
|
||||||
let thismyoldAddRiskCodes = JSON.parse(localStorage.oldAddRiskCodes)
|
let thismyoldAddRiskCodes = JSON.parse(localStorage.oldAddRiskCodes)
|
||||||
thismyoldAddRiskCodes.forEach((item,index0)=>{
|
thismyoldAddRiskCodes.forEach((item, index0) => {
|
||||||
if(item == data.productCode){
|
if (item == data.productCode) {
|
||||||
thismyoldAddRiskCodes.splice(index0,1)
|
thismyoldAddRiskCodes.splice(index0, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
localStorage.oldAddRiskCodes = JSON.stringify(thismyoldAddRiskCodes)
|
localStorage.oldAddRiskCodes = JSON.stringify(thismyoldAddRiskCodes)
|
||||||
@@ -2011,7 +2014,9 @@ export default {
|
|||||||
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
|
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//试算
|
//试算
|
||||||
async getTrial() {
|
async getTrial() {
|
||||||
|
|||||||
Reference in New Issue
Block a user