mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 05:26:44 +08:00
Merge branch 'release/1226' into dev
# Conflicts: # src/views/ebiz/common/CalculatePremium.vue # src/views/ebiz/sale/AddBeneficiaryInfo.vue
This commit is contained in:
@@ -171,8 +171,8 @@ export default {
|
|||||||
influenceAddRiskCodes: [],
|
influenceAddRiskCodes: [],
|
||||||
influences: [],
|
influences: [],
|
||||||
nextStepFlag: false,
|
nextStepFlag: false,
|
||||||
isRelated: localStorage.isRelated === '0',
|
isRelated: localStorage.isRelated === '0',//关联保单号
|
||||||
policyNo: '', //关联保单号
|
policyNo: '',
|
||||||
// 份数
|
// 份数
|
||||||
mult: '',
|
mult: '',
|
||||||
isFrom: '',
|
isFrom: '',
|
||||||
@@ -212,7 +212,6 @@ export default {
|
|||||||
if (item.mainRiskCode == 'GFRS_M0006') {
|
if (item.mainRiskCode == 'GFRS_M0006') {
|
||||||
item.isHidden = true
|
item.isHidden = true
|
||||||
}
|
}
|
||||||
// debugger
|
|
||||||
if(item.mainRiskCode != 'GFRS_M0008') {
|
if(item.mainRiskCode != 'GFRS_M0008') {
|
||||||
item.calFactorLst.map(i => {
|
item.calFactorLst.map(i => {
|
||||||
this.defalutAmt = i.displayAmount
|
this.defalutAmt = i.displayAmount
|
||||||
@@ -679,7 +678,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>
|
||||||
@@ -299,6 +299,7 @@ export default {
|
|||||||
this.formatLocal(res)
|
this.formatLocal(res)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
console.log(this.mainRiskCodes)
|
||||||
},
|
},
|
||||||
//app回调
|
//app回调
|
||||||
appCallBack(data) {
|
appCallBack(data) {
|
||||||
@@ -403,6 +404,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
|
||||||
|
|||||||
@@ -930,8 +930,8 @@ export default {
|
|||||||
this.idLimit = true
|
this.idLimit = true
|
||||||
this.userInfo.occupationCode = insuredDetail.occupationCode //职业类别编码
|
this.userInfo.occupationCode = insuredDetail.occupationCode //职业类别编码
|
||||||
this.userInfo.occupationName = insuredDetail.occupationName //职业类别名称
|
this.userInfo.occupationName = insuredDetail.occupationName //职业类别名称
|
||||||
this.userInfo.mobile = insuredDetail.mobile //联系电话
|
// this.userInfo.mobile = insuredDetail.mobile //联系电话
|
||||||
this.userInfo.email = insuredDetail.email //电子邮箱
|
// this.userInfo.email = insuredDetail.email //电子邮箱
|
||||||
} else {
|
} else {
|
||||||
this.isInsured = false
|
this.isInsured = false
|
||||||
this.userInfo.relationToInsured = ''
|
this.userInfo.relationToInsured = ''
|
||||||
@@ -949,8 +949,8 @@ export default {
|
|||||||
this.idLimit = false
|
this.idLimit = false
|
||||||
this.userInfo.occupationCode = '' //职业类别编码
|
this.userInfo.occupationCode = '' //职业类别编码
|
||||||
this.userInfo.occupationName = '' //职业类别名称
|
this.userInfo.occupationName = '' //职业类别名称
|
||||||
this.userInfo.mobile = '' //联系电话
|
// this.userInfo.mobile = '' //联系电话
|
||||||
this.userInfo.email = '' //电子邮箱
|
// this.userInfo.email = '' //电子邮箱
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//长期状态改变时
|
//长期状态改变时
|
||||||
@@ -961,10 +961,9 @@ export default {
|
|||||||
this.isRequired = false
|
this.isRequired = false
|
||||||
this.idLimit = true
|
this.idLimit = true
|
||||||
this.certiexpiredateRequired = false
|
this.certiexpiredateRequired = false
|
||||||
this.idLimit = true
|
|
||||||
} else {
|
} else {
|
||||||
this.certiexpiredateRequired = true
|
this.certiexpiredateRequired = true
|
||||||
this.isRequired = true
|
this.isRequired = true
|
||||||
this.idLimit = false
|
this.idLimit = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -341,8 +341,10 @@ export default {
|
|||||||
//投保单详情
|
//投保单详情
|
||||||
goDetail(order) {
|
goDetail(order) {
|
||||||
window.localStorage.setItem('detailJump', '')
|
window.localStorage.setItem('detailJump', '')
|
||||||
if (order.insuredDTOs[0].riskDTOLst[0]) {
|
if (order.insuredDTOs[0]) {
|
||||||
localStorage.setItem('productCode', order.insuredDTOs[0].riskDTOLst[0].mainRiskCode)
|
if (order.insuredDTOs[0].riskDTOLst[0]) {
|
||||||
|
localStorage.setItem('productCode', order.insuredDTOs[0].riskDTOLst[0].mainRiskCode)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let orderStatus = order.orderInfoDTO.orderStatus
|
let orderStatus = order.orderInfoDTO.orderStatus
|
||||||
let orderNo = order.orderInfoDTO.orderNo
|
let orderNo = order.orderInfoDTO.orderNo
|
||||||
|
|||||||
Reference in New Issue
Block a user