mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 21:46:44 +08:00
【电投】新增保费算保额类型
This commit is contained in:
@@ -163,8 +163,12 @@ export default {
|
||||
productTrialInfoDTO[item.code].forEach(factor => {
|
||||
item = Object.assign(item, factor)
|
||||
})
|
||||
item['amt'] = Number(item.minAmt) * Number(item.moneyUnit)
|
||||
item['oldMaxAmt'] = item.maxAmt
|
||||
if (item.code == 'inputPrem') {
|
||||
item['inputPrem'] = Number(item.minPrem) * Number(item.moneyUnit)
|
||||
} else {
|
||||
item['amt'] = Number(item.minAmt) * Number(item.moneyUnit)
|
||||
item['oldMaxAmt'] = item.maxAmt
|
||||
}
|
||||
}
|
||||
//规则储存
|
||||
item['rules'] = productTrialInfoDTO[item.code]
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<van-tag type="primary" v-if="item.isMainRisk == 0" class="mr5 green" plain>主险</van-tag>
|
||||
<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" plain @click="selectAddtionRisk" class="green mr8">附</van-tag>
|
||||
<van-tag type="primary" v-if="item.isMainRisk == 0 && item.hasAddtionRisk" plain @click="selectAddtionRisk" class="green mr8">附</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" />
|
||||
</div>
|
||||
@@ -26,8 +26,8 @@
|
||||
<span v-else class="fs14"> {{ riskFactor.name }} </span>
|
||||
<van-stepper
|
||||
v-model="item.calFactorLst[riskFactorIndex].defaultValue"
|
||||
:min="riskFactor.minAmt"
|
||||
:max="riskFactor.maxAmt"
|
||||
:min="riskFactor.minAmt || riskFactor.minPrem"
|
||||
:max="riskFactor.maxAmt || riskFactor.maxPrem"
|
||||
class="ml10"
|
||||
@change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
|
||||
input-width="100"
|
||||
@@ -64,9 +64,12 @@
|
||||
</div>
|
||||
|
||||
<div class="flex justify-content-s pv10 border-bottom prem">
|
||||
<span style="font-weight:bold">
|
||||
<span style="font-weight:bold" v-if="trialList.length > 0 && trialList[index].trialType == 0">
|
||||
首期保费(元):
|
||||
</span>
|
||||
<span style="font-weight:bold" v-else>
|
||||
保额(元):
|
||||
</span>
|
||||
<span class="fee red" v-if="trialList && trialList.length > 0">{{ trialList[index].prem.toFixed(2) | moneyFormat }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -505,7 +508,11 @@ export default {
|
||||
trialInfo[factor.code] = factor[factor.code]
|
||||
}
|
||||
} else if (factor.type == 1) {
|
||||
trialInfo['amt'] = Number(factor.defaultValue) * Number(factor.moneyUnit)
|
||||
if (factor.code == 'inputPrem') {
|
||||
trialInfo['prem'] = Number(factor.defaultValue) * Number(factor.moneyUnit)
|
||||
} else {
|
||||
trialInfo['amt'] = Number(factor.defaultValue) * Number(factor.moneyUnit)
|
||||
}
|
||||
} else if (factor.type == 2) {
|
||||
trialInfo[factor.extra] = this.saleInsuredPersonInfo[factor.code]
|
||||
}
|
||||
|
||||
@@ -117,9 +117,10 @@ export default {
|
||||
//保存附加险
|
||||
localStorage.addtionRiskLst = JSON.stringify(resultData.productTrialInfoDTO.addtionRiskLst)
|
||||
let calFactorLst = this.getFactorList(resultData)
|
||||
|
||||
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst ? true : false
|
||||
let currentProductInfo = {
|
||||
calFactorLst,
|
||||
hasAddtionRisk,
|
||||
isMainRisk: 0,
|
||||
riskName: this.result.riskName,
|
||||
productCode: this.result.riskProductCode,
|
||||
@@ -169,7 +170,11 @@ export default {
|
||||
productTrialInfoDTO[item.code].forEach(factor => {
|
||||
item = Object.assign(item, factor)
|
||||
})
|
||||
item['amt'] = Number(item.minAmt) * Number(item.moneyUnit)
|
||||
if (item.code == 'inputPrem') {
|
||||
item['inputPrem'] = Number(item.minPrem) * Number(item.moneyUnit)
|
||||
} else {
|
||||
item['amt'] = Number(item.minAmt) * Number(item.moneyUnit)
|
||||
}
|
||||
}
|
||||
//规则储存
|
||||
item['rules'] = productTrialInfoDTO[item.code]
|
||||
|
||||
Reference in New Issue
Block a user