mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 14:56:45 +08:00
[FIX] 修改建议书展示第二款产品保费及年限显示错误问题,修改两款产品组合不能转投保问题,修改添加产品按钮显示隐藏问题
This commit is contained in:
@@ -675,7 +675,7 @@ export default {
|
|||||||
trialInfo['payEndYear'] = '1000'
|
trialInfo['payEndYear'] = '1000'
|
||||||
trialInfo['payEndYearFlag'] = 'Y'
|
trialInfo['payEndYearFlag'] = 'Y'
|
||||||
// 福宝宝和万能险传A
|
// 福宝宝和万能险传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'
|
trialInfo['insuYearFlag'] = 'Y'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//下一步
|
//下一步
|
||||||
nextStep() {
|
nextStep() {
|
||||||
|
console.log(this.result)
|
||||||
if (!this.result) {
|
if (!this.result) {
|
||||||
this.$toast('请选择产品')
|
this.$toast('请选择产品')
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,26 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="background: #f5f5f5" class="select-product-container pt20">
|
<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
|
||||||
<div class="flex mv10 align-items-c">
|
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">
|
<div class="fs14 w45">
|
||||||
<van-tag plain type="danger">主险</van-tag>
|
<van-tag plain type="danger">主险</van-tag>
|
||||||
</div>
|
</div>
|
||||||
<div class="fs15 c-gray-dark ">
|
<div class="fs15 c-gray-dark">{{ item.riskName }}</div>
|
||||||
{{ item.riskName }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="pl45 flex mv10" v-for="(addtion, addIndex) in item.addtion" :key="addIndex">
|
<div class="pl45 flex mv10" v-for="(addtion, addIndex) in item.addtion" :key="addIndex">
|
||||||
<div class="w50">
|
<div class="w50">
|
||||||
<van-tag mark color="#DDF2EF" text-color="#E9332E">附加</van-tag>
|
<van-tag mark color="#DDF2EF" text-color="#E9332E">附加</van-tag>
|
||||||
</div>
|
</div>
|
||||||
<div class="fs13">
|
<div class="fs13">{{ addtion.riskName }}</div>
|
||||||
{{ addtion.riskName }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex fs15 justify-content-s align-items-b pb5">
|
<div class="flex fs15 justify-content-s align-items-b pb5">
|
||||||
<div class="c-gray-darker fwb">
|
<div class="c-gray-darker fwb">首期保费(元)</div>
|
||||||
首期保费(元)
|
|
||||||
</div>
|
|
||||||
<div class="yellow fwb">{{ item.prem.toFixed(2) | moneyFormat }}</div>
|
<div class="yellow fwb">{{ item.prem.toFixed(2) | moneyFormat }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -30,7 +28,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pt30 bg-white pb50">
|
<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>添加产品
|
<span class="v-middle mr10" style="font-size:32px">+</span>添加产品
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -38,8 +40,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<van-submit-bar button-text="下一步" @submit="nextStep" :disabled="nextStepFlag">
|
<van-submit-bar button-text="下一步" @submit="nextStep" :disabled="nextStepFlag">
|
||||||
<div class="fs15 ml15 fwb" style="flex:1" slot="default">
|
<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>
|
</div>
|
||||||
</van-submit-bar>
|
</van-submit-bar>
|
||||||
</div>
|
</div>
|
||||||
@@ -58,7 +60,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
chooseProducts: [],
|
chooseProducts: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
nextStepFlag: true
|
nextStepFlag: true,
|
||||||
|
isShow: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -95,6 +98,8 @@ export default {
|
|||||||
let isProposal = localStorage.isFrom == 'proposal' ? true : false
|
let isProposal = localStorage.isFrom == 'proposal' ? true : false
|
||||||
if (isProposal) {
|
if (isProposal) {
|
||||||
let saleInsuredPersonInfo = localStorage.saleInsuredPersonInfo && JSON.parse(localStorage.saleInsuredPersonInfo)
|
let saleInsuredPersonInfo = localStorage.saleInsuredPersonInfo && JSON.parse(localStorage.saleInsuredPersonInfo)
|
||||||
|
console.log(saleInsuredPersonInfo)
|
||||||
|
|
||||||
let insuredId
|
let insuredId
|
||||||
if (saleInsuredPersonInfo && saleInsuredPersonInfo.insuredId) {
|
if (saleInsuredPersonInfo && saleInsuredPersonInfo.insuredId) {
|
||||||
insuredId = saleInsuredPersonInfo.insuredId
|
insuredId = saleInsuredPersonInfo.insuredId
|
||||||
@@ -127,7 +132,18 @@ export default {
|
|||||||
this.$utils.intLocalStorage(resultData, isProposal)
|
this.$utils.intLocalStorage(resultData, isProposal)
|
||||||
|
|
||||||
this.chooseProducts = formatAllRisk(riskDTOLst)
|
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) {
|
if (riskDTOLst.length > 0) {
|
||||||
this.nextStepFlag = false
|
this.nextStepFlag = false
|
||||||
}
|
}
|
||||||
@@ -146,6 +162,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.delProduct(index)
|
this.delProduct(index)
|
||||||
|
this.isShow = true
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.$toast('删除失败!')
|
this.$toast('删除失败!')
|
||||||
@@ -236,7 +253,7 @@ export default {
|
|||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#' + routerUrl,
|
url: location.origin + '/#' + routerUrl,
|
||||||
needRefresh:'1'
|
needRefresh: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: routerUrl
|
path: routerUrl
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
<div class="flex text-center bg-green-base mt2 c-gray-darker table">
|
<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.riskName }}</div>
|
||||||
<div class="flex justify-content-c align-items-c ">
|
<div class="flex justify-content-c align-items-c ">
|
||||||
{{ main.amt | amtFormat }}
|
{{ main.amt ? amtFormat(main.amt) :'' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-content-c align-items-c ">{{ main.insureName }}</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>
|
<div class="flex justify-content-c align-items-c ">{{ main.payName }}</div>
|
||||||
@@ -298,6 +298,7 @@ export default {
|
|||||||
this.formatLocal(res)
|
this.formatLocal(res)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
console.log(this.mainRiskCodes)
|
||||||
},
|
},
|
||||||
//app回调
|
//app回调
|
||||||
appCallBack(data) {
|
appCallBack(data) {
|
||||||
@@ -402,6 +403,10 @@ export default {
|
|||||||
|
|
||||||
//转投保
|
//转投保
|
||||||
insure() {
|
insure() {
|
||||||
|
console.log(JSON.parse(localStorage.mainRiskCodes).length)
|
||||||
|
if(JSON.parse(localStorage.mainRiskCodes).length == '2') {
|
||||||
|
return Toast.fail('暂不支持组合产品转投保')
|
||||||
|
}
|
||||||
let params = {
|
let params = {
|
||||||
proposalInfoDTO: {
|
proposalInfoDTO: {
|
||||||
proposalNo: localStorage.orderNo
|
proposalNo: localStorage.orderNo
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export default {
|
|||||||
list = formatRiskList(list, 'insuredDTOs', 'riskDTOLst') //格式化数据为本地显示结果
|
list = formatRiskList(list, 'insuredDTOs', 'riskDTOLst') //格式化数据为本地显示结果
|
||||||
|
|
||||||
this.proposalList = this.proposalList.concat(list)
|
this.proposalList = this.proposalList.concat(list)
|
||||||
console.log(this.proposalList.length)
|
console.log(this.proposalList)
|
||||||
if (this.proposalList.length == 0) {
|
if (this.proposalList.length == 0) {
|
||||||
this.isSuccess = false
|
this.isSuccess = false
|
||||||
}
|
}
|
||||||
@@ -243,6 +243,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//转投保
|
//转投保
|
||||||
toInsurance(item) {
|
toInsurance(item) {
|
||||||
|
console.log(item.insuredDTOs[0].mainRisk.length)
|
||||||
|
if(item.insuredDTOs[0].mainRisk.length == '2') {
|
||||||
|
return Toast.fail('暂不支持组合产品转投保')
|
||||||
|
}
|
||||||
let params = {
|
let params = {
|
||||||
proposalInfoDTO: {
|
proposalInfoDTO: {
|
||||||
proposalNo: item.orderInfoDTO.orderNo
|
proposalNo: item.orderInfoDTO.orderNo
|
||||||
|
|||||||
Reference in New Issue
Block a user