[FIX] 修改建议书展示第二款产品保费及年限显示错误问题,修改两款产品组合不能转投保问题,修改添加产品按钮显示隐藏问题

This commit is contained in:
wangmingzhe
2019-12-26 13:30:02 +08:00
parent 77add6c8b2
commit 0fbf38ecef
5 changed files with 48 additions and 21 deletions

View File

@@ -675,7 +675,7 @@ export default {
trialInfo['payEndYear'] = '1000'
trialInfo['payEndYearFlag'] = 'Y'
// 福宝宝和万能险传A
if (item.mainRiskCode != 'GFRS_M0006' && item.mainRiskCode != 'GFRS_M0003') {
if (item.mainRiskCode != 'GFRS_M0006' && item.mainRiskCode != 'GFRS_M0003' && item.mainRiskCode != 'GFRS_M0013') {
trialInfo['insuYearFlag'] = 'Y'
}
}

View File

@@ -81,6 +81,7 @@ export default {
},
//下一步
nextStep() {
console.log(this.result)
if (!this.result) {
this.$toast('请选择产品')
return

View File

@@ -1,26 +1,24 @@
<template>
<div style="background: #f5f5f5" class="select-product-container pt20">
<div v-for="(item, index) in chooseProducts" :key="index" class="mb20 bg-white mh15 pv15 pr15 pl10 radius5">
<div class="flex mv10 align-items-c">
<div
v-for="(item, index) in chooseProducts"
:key="index"
class="mb20 bg-white mh15 pv15 pr15 pl10 radius5"
>
<div class="flex mv10 align-items-c">
<div class="fs14 w45">
<van-tag plain type="danger">主险</van-tag>
</div>
<div class="fs15 c-gray-dark ">
{{ item.riskName }}
</div>
<div class="fs15 c-gray-dark">{{ item.riskName }}</div>
</div>
<div class="pl45 flex mv10" v-for="(addtion, addIndex) in item.addtion" :key="addIndex">
<div class="w50">
<van-tag mark color="#DDF2EF" text-color="#E9332E">附加</van-tag>
</div>
<div class="fs13">
{{ addtion.riskName }}
</div>
<div class="fs13">{{ addtion.riskName }}</div>
</div>
<div class="flex fs15 justify-content-s align-items-b pb5">
<div class="c-gray-darker fwb">
首期保费
</div>
<div class="flex fs15 justify-content-s align-items-b pb5">
<div class="c-gray-darker fwb">首期保费</div>
<div class="yellow fwb">{{ item.prem.toFixed(2) | moneyFormat }}</div>
</div>
@@ -30,7 +28,11 @@
</div>
</div>
<div class="pt30 bg-white pb50">
<div class="text-center m20 pv15 border-dotted c-gray-base bg-white" @click="addProduct">
<div
class="text-center m20 pv15 border-dotted c-gray-base bg-white"
@click="addProduct"
v-if="isShow == true"
>
<span class="v-middle mr10" style="font-size:32px">+</span>添加产品
</div>
</div>
@@ -38,8 +40,8 @@
<div>
<van-submit-bar button-text="下一步" @submit="nextStep" :disabled="nextStepFlag">
<div class="fs15 ml15 fwb" style="flex:1" slot="default">
合计<span class=" yellow mr5">{{ (total / 100).toFixed(2) | moneyFormat }}</span
>
合计
<span class="yellow mr5">{{ (total / 100).toFixed(2) | moneyFormat }}</span>
</div>
</van-submit-bar>
</div>
@@ -58,7 +60,8 @@ export default {
return {
chooseProducts: [],
total: 0,
nextStepFlag: true
nextStepFlag: true,
isShow: true
}
},
components: {
@@ -95,6 +98,8 @@ export default {
let isProposal = localStorage.isFrom == 'proposal' ? true : false
if (isProposal) {
let saleInsuredPersonInfo = localStorage.saleInsuredPersonInfo && JSON.parse(localStorage.saleInsuredPersonInfo)
console.log(saleInsuredPersonInfo)
let insuredId
if (saleInsuredPersonInfo && saleInsuredPersonInfo.insuredId) {
insuredId = saleInsuredPersonInfo.insuredId
@@ -127,7 +132,18 @@ export default {
this.$utils.intLocalStorage(resultData, isProposal)
this.chooseProducts = formatAllRisk(riskDTOLst)
console.log(this.chooseProducts)
if (!isProposal) {
if (this.chooseProducts.length == 0) {
this.isShow = true
} else {
if (this.chooseProducts[0].riskCode == 'GFRS_M0011') {
this.isShow = true
} else {
this.isShow = false
}
}
}
if (riskDTOLst.length > 0) {
this.nextStepFlag = false
}
@@ -146,6 +162,7 @@ export default {
})
.then(() => {
this.delProduct(index)
this.isShow = true
})
.catch(() => {
this.$toast('删除失败!')
@@ -236,7 +253,7 @@ export default {
flag: 'h5',
extra: {
url: location.origin + '/#' + routerUrl,
needRefresh:'1'
needRefresh: '1'
},
routerInfo: {
path: routerUrl

View File

@@ -64,7 +64,7 @@
<div class="flex text-center bg-green-base mt2 c-gray-darker table">
<div class="flex justify-content-c align-items-c ">{{ main.riskName }}</div>
<div class="flex justify-content-c align-items-c ">
{{ main.amt | amtFormat }}
{{ main.amt ? amtFormat(main.amt) :'' }}
</div>
<div class="flex justify-content-c align-items-c ">{{ main.insureName }}</div>
<div class="flex justify-content-c align-items-c ">{{ main.payName }}</div>
@@ -298,6 +298,7 @@ export default {
this.formatLocal(res)
})
}
console.log(this.mainRiskCodes)
},
//app回调
appCallBack(data) {
@@ -402,6 +403,10 @@ export default {
//转投保
insure() {
console.log(JSON.parse(localStorage.mainRiskCodes).length)
if(JSON.parse(localStorage.mainRiskCodes).length == '2') {
return Toast.fail('暂不支持组合产品转投保')
}
let params = {
proposalInfoDTO: {
proposalNo: localStorage.orderNo

View File

@@ -138,7 +138,7 @@ export default {
list = formatRiskList(list, 'insuredDTOs', 'riskDTOLst') //格式化数据为本地显示结果
this.proposalList = this.proposalList.concat(list)
console.log(this.proposalList.length)
console.log(this.proposalList)
if (this.proposalList.length == 0) {
this.isSuccess = false
}
@@ -243,6 +243,10 @@ export default {
},
//转投保
toInsurance(item) {
console.log(item.insuredDTOs[0].mainRisk.length)
if(item.insuredDTOs[0].mainRisk.length == '2') {
return Toast.fail('暂不支持组合产品转投保')
}
let params = {
proposalInfoDTO: {
proposalNo: item.orderInfoDTO.orderNo