mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 09:56:43 +08:00
【国富人寿】建议书选择产品页面编辑按钮跳转链接参数拼接字段名称修改以及保费试算页面接口请求入参字段名称添加逻辑判断
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<van-tag type="primary" v-else class="mr5 green" plain>附加险</van-tag>
|
||||
<span class="ml5 center fs13 flex1">{{ item.riskName }}</span>
|
||||
<van-tag type="primary" v-if="item.isMainRisk == 0 && item.hasAddtionRisk && isEnterAddtionRisk" plain @click="selectAddtionRisk" class="green mr8"
|
||||
>附</van-tag
|
||||
>附</van-tag
|
||||
>
|
||||
<van-icon name="search" size="20" v-if="item.documentDTOS && item.documentDTOS.length > 0" @click="seeDocument(index)" class="green mr5" />
|
||||
<van-icon name="delete" size="22" @click="deleteRisk(index)" class="green" />
|
||||
@@ -31,13 +31,13 @@
|
||||
<!-- {{ riskFactorIndex }} -->
|
||||
<!-- {{defalutAmt}} -->
|
||||
<van-stepper
|
||||
v-model.number="item.calFactorLst[riskFactorIndex].displayAmount"
|
||||
:min="riskFactor.minAmt || riskFactor.minPrem"
|
||||
:max="riskFactor.maxAmt || riskFactor.maxPrem"
|
||||
:show-plus="false"
|
||||
:show-minus="false"
|
||||
class="ml30"
|
||||
@change="
|
||||
v-model.number="item.calFactorLst[riskFactorIndex].displayAmount"
|
||||
:min="riskFactor.minAmt || riskFactor.minPrem"
|
||||
:max="riskFactor.maxAmt || riskFactor.maxPrem"
|
||||
:show-plus="false"
|
||||
:show-minus="false"
|
||||
class="ml30"
|
||||
@change="
|
||||
stepperChange(
|
||||
item.calFactorLst[riskFactorIndex].displayAmount,
|
||||
index,
|
||||
@@ -688,61 +688,70 @@
|
||||
}
|
||||
this.cvalidateFlag = this.activeType && this.isFrom != 'proposal'
|
||||
|
||||
//构建提交数据、渲染险种
|
||||
if(this.$route.query.insuanceId && this.isFrom == 'proposal'){
|
||||
// 获取试算记录详情
|
||||
await getTrialRecordInfo({
|
||||
serialNo:this.$CacheUtils.getLocItem('proposalNo'),
|
||||
mainRiskId:this.$route.query.insuanceId
|
||||
}).then(res => {
|
||||
if (res.result == '0') {
|
||||
this.chooseProducts = JSON.parse(res.content.trialJsonStr)
|
||||
//构建提交数据、渲染险种
|
||||
if(this.$route.query.insuanceId && this.isFrom == 'proposal'){
|
||||
// 获取试算记录详情
|
||||
let serialNo = ''
|
||||
if (this.$route.query.orderNo) {
|
||||
serialNo = this.$route.query.orderNo
|
||||
}
|
||||
if (this.$route.query.proposalOrderNo) {
|
||||
serialNo = this.$route.query.proposalOrderNo
|
||||
}
|
||||
await getTrialRecordInfo({
|
||||
serialNo:serialNo,
|
||||
mainRiskId:this.$route.query.insuanceId
|
||||
}).then(res => {
|
||||
if (res.result == '0') {
|
||||
this.chooseProducts = JSON.parse(res.content.trialJsonStr)
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
|
||||
}
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
if (item.isCrossChannel == '1') {
|
||||
this.isCrossChannel = item.isCrossChannel
|
||||
}
|
||||
if (item.mainRiskCode == 'GFRS_M0006') {
|
||||
item.isHidden = true
|
||||
}
|
||||
if (item.mainRiskCode != 'GFRS_M0008') {
|
||||
item.calFactorLst.map((i) => {
|
||||
// this.defalutAmt = i.displayAmount || 1
|
||||
if (i.code == 'inputPrem') {
|
||||
this.mult = Math.ceil(Number(i.displayAmount) / Number(i.defaultValue))
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
|
||||
}
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
if (item.isCrossChannel == '1') {
|
||||
this.isCrossChannel = item.isCrossChannel
|
||||
if (item.mainRiskCode == 'GFRS_M0046') {
|
||||
if (this.saleInsuredPersonInfo.relationToAppnt == 1) {
|
||||
this.isEnterAddtionRiskListFunc()
|
||||
}
|
||||
if (item.mainRiskCode == 'GFRS_M0006') {
|
||||
item.isHidden = true
|
||||
}
|
||||
let payEndYearVal
|
||||
//初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009,GFRS_A0010去掉后,附加险list就为空--隐藏’附‘icon
|
||||
item.calFactorLst.map((i) => {
|
||||
if (i.code == 'payEndYear') {
|
||||
if (i.payEndYear == '1000' && i.payEndYearFlag == 'Y') {
|
||||
this.isEnterAddtionRiskListFunc()
|
||||
}
|
||||
//初始化时取交费期间的值
|
||||
payEndYearVal = i.showContent
|
||||
}
|
||||
if (item.mainRiskCode != 'GFRS_M0008') {
|
||||
item.calFactorLst.map((i) => {
|
||||
// this.defalutAmt = i.displayAmount || 1
|
||||
if (i.code == 'inputPrem') {
|
||||
this.mult = Math.ceil(Number(i.displayAmount) / Number(i.defaultValue))
|
||||
})
|
||||
if (index == 0) {
|
||||
if (item.productTrialYearDTOS) {
|
||||
//初始化时取交费期间的值,值再去对应productTrialYearDTOS中的第几条规则
|
||||
item.productTrialYearDTOS.forEach((item, index) => {
|
||||
if (payEndYearVal == item.yearWay + '年交') {
|
||||
that.payEndYearColumnsIndex = index
|
||||
}
|
||||
})
|
||||
}
|
||||
if (item.mainRiskCode == 'GFRS_M0046') {
|
||||
if (this.saleInsuredPersonInfo.relationToAppnt == 1) {
|
||||
this.isEnterAddtionRiskListFunc()
|
||||
}
|
||||
}
|
||||
let payEndYearVal
|
||||
//初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009,GFRS_A0010去掉后,附加险list就为空--隐藏’附‘icon
|
||||
item.calFactorLst.map((i) => {
|
||||
if (i.code == 'payEndYear') {
|
||||
if (i.payEndYear == '1000' && i.payEndYearFlag == 'Y') {
|
||||
this.isEnterAddtionRiskListFunc()
|
||||
}
|
||||
//初始化时取交费期间的值
|
||||
payEndYearVal = i.showContent
|
||||
}
|
||||
})
|
||||
if (index == 0) {
|
||||
if (item.productTrialYearDTOS) {
|
||||
//初始化时取交费期间的值,值再去对应productTrialYearDTOS中的第几条规则
|
||||
item.productTrialYearDTOS.forEach((item, index) => {
|
||||
if (payEndYearVal == item.yearWay + '年交') {
|
||||
that.payEndYearColumnsIndex = index
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if (item.productCode == 'GFRS_A0003') {
|
||||
// //该附加险的责任保额=主险的保费
|
||||
|
||||
Reference in New Issue
Block a user