惠企保产品配置调整: 前端代码调整 --提交人:阳华祥

This commit is contained in:
yang.huaxiang
2021-03-15 13:33:45 +08:00
parent ac5fc06094
commit 94432235e3
6 changed files with 19 additions and 15 deletions

View File

@@ -63,16 +63,16 @@
@click="toSelect(index, riskFactorIndex, riskFactor.columns)"
/>
</div>
<!-- 桂企产品GFRS_M0024不显示责任保费及万元只显示责任名称及勾选框 -->
<!-- 桂企产品GFRS_M0024/GFRS_M0040不显示责任保费及万元只显示责任名称及勾选框 -->
<div class="border-bottom" v-if="riskFactor.type == 3">
<div class="pv12 border-bd">{{ riskFactor.name }}</div>
<div class="duty">
<div class="flex justify-content-s border-bd pv10 align-items-c" v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
<span v-if="item.productCode != 'GFRS_M0024'" class="fs14 w100">{{ dutyItem.dutyName }}({{ dutyItem.suffix }})</span>
<span v-if="!(item.productCode == 'GFRS_M0024' || item.productCode == 'GFRS_M0040')" class="fs14 w100">{{ dutyItem.dutyName }}({{ dutyItem.suffix }})</span>
<span v-else class="fs14 w100">{{ dutyItem.dutyName }}</span>
<div class="flex relative">
<van-stepper
v-if="item.productCode != 'GFRS_M0024'"
v-if="!(item.productCode == 'GFRS_M0024' || item.productCode == 'GFRS_M0040')"
v-model="dutyItem.defaultDutyAmt"
:min="dutyItem.minDutyAmt"
:max="dutyItem.maxDutyAmt"
@@ -1643,7 +1643,7 @@ export default {
riskItem['amt'] = this.trialList[index].amt
} else {
//国富人寿桂企保重大疾病保险产品专写
if (this.trialList[index].productCode == 'GFRS_M0024') {
if (this.trialList[index].productCode == 'GFRS_M0024' || this.trialList[index].productCode == 'GFRS_M0040') {
riskItem['dutyLst'] = this.trialInfos[index].duty
}
}
@@ -1686,7 +1686,7 @@ export default {
//国富人寿桂企保重大疾病保险产品专写
this.trialInfos.map((v, i) => {
if (v.productCode == 'GFRS_M0024') {
if (v.productCode == 'GFRS_M0024' || v.productCode == 'GFRS_M0040') {
delete riskDTOLst[i].duty
}
})

View File

@@ -48,18 +48,18 @@ export default {
getOrderDetail({ orderNo: localStorage.orderNo }).then(
res => {
if (res.result == 0) {
//------------------------专为桂企写死--begin---------------//
//------------------------专为桂/惠企写死--begin---------------//
if (res.orderDTO.insuredDTOs[0] && res.orderDTO.insuredDTOs[0].riskDTOLst) {
this.flag = this.specilFlag = res.orderDTO.insuredDTOs[0].riskDTOLst.some(v => {
return v.riskCode == 'GFRS_M0024'
return v.riskCode == 'GFRS_M0024' || v.riskCode == 'GFRS_M0040'
})
if (this.flag) {
this.specilFlag = '1'
}
} else if (res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0024') {
} else if (res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0024' || res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0040') {
this.specilFlag = '1'
}
// ------------------------专为桂企写死--end---------------//
// ------------------------专为桂/惠企写死--end---------------//
// 处理活动产品
this.activeFlag = res.orderDTO.orderInfoDTO.activeType
}
@@ -123,7 +123,7 @@ export default {
//------------------------专为桂企写死--begin---------------//
if (this.list.length > 0 && this.specilFlag == '1' && localStorage.isFrom == 'sale') {
this.result = this.list.find(v => {
return v.riskProductCode == 'GFRS_M0024'
return v.riskProductCode == 'GFRS_M0024' || v.riskProductCode == 'GFRS_M0040'
})
}
// ------------------------专为桂企写死--end---------------//

View File

@@ -102,7 +102,7 @@ export default {
localStorage.chooseProductCodes = '' //置空所选险种
let path = `/sale/insuredInfo`
let flagPermission = true
if (this.$route.params.productDetailCode == 'GFRSPRO_M0024') {
if (this.$route.params.productDetailCode == 'GFRSPRO_M0024' || this.$route.params.productDetailCode == 'GFRSPRO_M0040') {
flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0024', this)
let specilFlag = '1'
path = `${path}?specilFlag=${specilFlag}`

View File

@@ -282,7 +282,7 @@ export default {
}
}
let flag = item.insuredDTOs[0].riskDTOLst.some(v => {
return v.riskCode == 'GFRS_M0024'
return v.riskCode == 'GFRS_M0024' || v.riskCode == 'GFRS_M0040'
})
if (flag && (await riskRules.getProductSellPermissionList('GFRS_M0024', this))) {
return this.$toast('抱歉,您没有该产品的销售权限!')

View File

@@ -650,7 +650,7 @@ export default {
return Toast.fail('暂不支持组合产品转投保')
}
}
if (this.mainRiskCodes[0] == 'GFRS_M0024') {
if (this.mainRiskCodes[0] == 'GFRS_M0024' || this.mainRiskCodes[0] == 'GFRS_M0040') {
let specilFlag = '1'
path = `${path}&specilFlag=${specilFlag}`
let flagPermission = await riskRules.getProductSellPermissionList(this.mainRiskCodes[0], this)

View File

@@ -572,12 +572,14 @@ export default {
//------------------------专为桂企写死--begin---------------//
if (res.orderDTO.insuredDTOs[0] && res.orderDTO.insuredDTOs[0].riskDTOLst) {
this.specilFlag = res.orderDTO.insuredDTOs[0].riskDTOLst.some(v => {
return v.riskCode == 'GFRS_M0024'
return v.riskCode == 'GFRS_M0024' || v.riskCode == 'GFRS_M0040'
})
? '1'
: '0'
} else if (res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0024') {
this.specilFlag = '1'
} else if (res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0040') {
this.specilFlag = '1'
}
// ------------------------专为桂企写死--end---------------//
}
@@ -706,6 +708,7 @@ export default {
break
case '9':
this.productCodes.length = 0
// 已丢弃
this.productCodes.push('GFRS_M0024')
getCompany({ productCodes: this.productCodes }).then(res => {
if (res.result == 0) {
@@ -1253,7 +1256,8 @@ export default {
console.log('params :>> ', params)
//------------------------专为桂企写死--begin---------------//
if (this.specilFlag == '1') {
params.orderDTO.orderInfoDTO.productCode = 'GFRS_M0024'
params.orderDTO.orderInfoDTO.productCode = 'GFRS_M0040'
//params.orderDTO.orderInfoDTO.productCode = 'GFRS_M0024'
}
// ------------------------专为桂企写死--end---------------//
let resultData = await saveOrUpdateOrderInfo(params)