mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 05:26:43 +08:00
Compare commits
20 Commits
master_new
...
feature/FC
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af144a360c | ||
|
|
67f13e6d79 | ||
|
|
a6685c2360 | ||
|
|
8ed05e2e1a | ||
|
|
1a61367991 | ||
|
|
46cccb9d4e | ||
|
|
e3f5e7c25e | ||
|
|
48f48c4630 | ||
|
|
a54e8c057c | ||
|
|
79c3f90213 | ||
|
|
644e4b689e | ||
|
|
f66cfc1ce7 | ||
|
|
afaacc172f | ||
|
|
0d5fe441a1 | ||
|
|
96fe16a775 | ||
|
|
52e5844372 | ||
|
|
f4459b00f6 | ||
|
|
5239aba5e5 | ||
|
|
55165468ae | ||
|
|
4553e8cc08 |
@@ -37,7 +37,7 @@
|
||||
:show-plus="false"
|
||||
:show-minus="false"
|
||||
class="ml30"
|
||||
:disabled="item.productCode == 'GFRS_M0083' && isFrom != 'proposal'"
|
||||
:disable-input="disabledShow"
|
||||
@change="
|
||||
stepperChange(
|
||||
item.calFactorLst[riskFactorIndex].displayAmount,
|
||||
@@ -180,7 +180,7 @@
|
||||
</div>
|
||||
<!-- 类型为5的字段,单元格只展示文本 -->
|
||||
<div class="border-bottom pv10" v-if="riskFactor.type == 5">
|
||||
<van-field v-model="riskFactor.showContent" readonly :label="riskFactor.name" />
|
||||
<van-field v-model="riskFactor.showContent" disabled readonly :label="riskFactor.name" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -348,7 +348,7 @@
|
||||
</div>
|
||||
<div
|
||||
class="flex justify-content-s pv10 border-bottom prem"
|
||||
v-if="item.productCode != 'GFRS_M0080' && item.productCode != 'GFRS_M0083' && item.productCode != 'GFRS_M0085'"
|
||||
v-if="item.productCode != 'GFRS_M0080' && item.productCode != 'GFRS_M0083' && item.productCode != 'GFRS_M0098' && item.productCode != 'GFRS_M0085'"
|
||||
>
|
||||
<!-- trialType 0-保额算保费,1-保费算保额 -->
|
||||
<!-- isTrial是否需存在特殊配置(规则) 0-是 1-否-->
|
||||
@@ -574,6 +574,7 @@ export default {
|
||||
cvalidateFlag: false,
|
||||
cvalidateStr: '', //活动生效日
|
||||
chooseProducts: [],
|
||||
disabledShow: false,
|
||||
productIndex: '',
|
||||
calFactorIndex: '',
|
||||
premiumData: [], //试算
|
||||
@@ -831,7 +832,14 @@ export default {
|
||||
this.isEnterAddtionRiskListFunc()
|
||||
}
|
||||
}
|
||||
if ((item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0085') && this.isFrom == 'proposal') {
|
||||
if (item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0098' || item.mainRiskCode == 'GFRS_M0085') {
|
||||
this.disabledShow = true
|
||||
}
|
||||
if(item.hasPredictTransferPrem == '1') {
|
||||
this.disabledShow = false
|
||||
}
|
||||
|
||||
if ((item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0098' || item.mainRiskCode == 'GFRS_M0085') && this.isFrom == 'proposal') {
|
||||
item.calFactorLst.forEach((i) => {
|
||||
if (i.code == 'inputPrem') {
|
||||
i.minPrem = 0.01
|
||||
@@ -1106,7 +1114,6 @@ export default {
|
||||
// let productCode = this.chooseProducts[this.productIndex].productCode
|
||||
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
|
||||
let currentEle = currentFactor[this.calFactorIndex]
|
||||
console.log(currentEle.code)
|
||||
if (currentEle.code == 'insuYear') {
|
||||
if (value.value == '70') {
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
@@ -2153,17 +2160,20 @@ export default {
|
||||
async getTrial() {
|
||||
let that = this
|
||||
let productCode = ''
|
||||
let hasPredictTransferPrem = ''
|
||||
let thisproductInfo = JSON.parse(window.localStorage.getItem('chooseProducts'))
|
||||
if (thisproductInfo && thisproductInfo.length != 0) {
|
||||
thisproductInfo.forEach((item) => {
|
||||
if (item.productCode == 'GFRS_M0083' || item.productCode == 'GFRS_M0085') {
|
||||
if (item.productCode == 'GFRS_M0083' || item.productCode == 'GFRS_M0098' || item.productCode == 'GFRS_M0085') {
|
||||
productCode = item.productCode
|
||||
hasPredictTransferPrem = item.hasPredictTransferPrem
|
||||
}
|
||||
})
|
||||
}
|
||||
if (this.isFrom != 'proposal') {
|
||||
if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0085') {
|
||||
if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0098' || productCode == 'GFRS_M0085') {
|
||||
if (!that.policyNo) {
|
||||
this.disabledShow = true
|
||||
that.chooseProducts.forEach((item) => {
|
||||
item.calFactorLst.forEach((ii) => {
|
||||
if (ii.type == 1) {
|
||||
@@ -2173,6 +2183,7 @@ export default {
|
||||
})
|
||||
})
|
||||
} else {
|
||||
this.disabledShow = false
|
||||
that.chooseProducts.forEach((item) => {
|
||||
item.calFactorLst.forEach((ii) => {
|
||||
if (ii.type == 1) {
|
||||
@@ -2184,6 +2195,9 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(hasPredictTransferPrem == '1') {
|
||||
this.disabledShow = false
|
||||
}
|
||||
this.nextStepFlag = true
|
||||
this.$toast.clear()
|
||||
this.$toast.loading({
|
||||
@@ -2935,7 +2949,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0085') {
|
||||
} else if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0098' || productCode == 'GFRS_M0085') {
|
||||
if (this.isFrom != 'proposal') {
|
||||
if (!this.policyNo && defalutValue < 5) {
|
||||
this.$toast('单独投保,保费为大于等于50000元')
|
||||
|
||||
@@ -197,7 +197,7 @@ export default {
|
||||
// ------------------------专为惠企写死--end---------------//
|
||||
//如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
|
||||
if (this.list.length > 0) {
|
||||
console.log(localStorage.productCodeChooseFromList)
|
||||
// console.log(localStorage.productCodeChooseFromList)
|
||||
this.result = this.list.find((v) => {
|
||||
return v.riskProductCode == localStorage.productCodeChooseFromList
|
||||
})
|
||||
@@ -274,7 +274,7 @@ export default {
|
||||
// ------------------------专为惠企写死--end---------------//
|
||||
// 如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
|
||||
if (this.list.length > 0) {
|
||||
console.log(localStorage.productCodeChooseFromList)
|
||||
// console.log(localStorage.productCodeChooseFromList)
|
||||
this.result = this.list.find((v) => {
|
||||
return v.riskProductCode == localStorage.productCodeChooseFromList
|
||||
})
|
||||
@@ -440,7 +440,6 @@ export default {
|
||||
return this.$toast('该投保人工作单位不能投保该产品')
|
||||
}
|
||||
/********end 主险选择限制 end******/
|
||||
|
||||
//保存附加险
|
||||
localStorage.addtionRiskLst = JSON.stringify(resultData.productTrialInfoDTO.addtionRiskLst)
|
||||
localStorage.isAutoPay = resultData.isAutoPay
|
||||
@@ -449,6 +448,8 @@ export default {
|
||||
localStorage.isRelated = resultData.isRelated
|
||||
|
||||
let calFactorLst = this.getFactorList(resultData)
|
||||
|
||||
// return
|
||||
let productTrialYearDTOS = resultData.productTrialInfoDTO.productTrialYearDTOS != null ? resultData.productTrialInfoDTO.productTrialYearDTOS : null
|
||||
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst != null && resultData.productTrialInfoDTO.addtionRiskLst.length ? true : false
|
||||
let currentProductInfo =
|
||||
@@ -504,9 +505,9 @@ export default {
|
||||
//构建险种因子列表
|
||||
getFactorList(resultData) {
|
||||
let productTrialInfoDTO = resultData.productTrialInfoDTO
|
||||
console.log(productTrialInfoDTO, 'wode')
|
||||
// console.log(productTrialInfoDTO, 'wode')
|
||||
let calFactorLst = resultData.productTrialInfoDTO.calFactorLst
|
||||
console.log('calFactorLst', calFactorLst)
|
||||
// console.log('calFactorLst', calFactorLst)
|
||||
|
||||
calFactorLst.forEach((item) => {
|
||||
item['isMainRisk'] = 0
|
||||
|
||||
@@ -201,14 +201,28 @@
|
||||
<div class="text-left" style="width: 75%">
|
||||
<span>{{ moneyItem.contentLabel }}</span>
|
||||
</div>
|
||||
<div class="text-right" v-if="moneyItem.content == 'currentBonus_M'">
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormat2 }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
<div v-if="specialCode == 'GFRS_M0098'">
|
||||
<div class="text-right" v-if="moneyItem.contentLabel == '初始费用' || moneyItem.contentLabel == '进入保单账户的价值'">
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormat3 }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
</div>
|
||||
<div v-else>
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormatNo }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right" v-else>
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormatNo }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
<div v-else>
|
||||
<div class="text-right" v-if="moneyItem.content == 'currentBonus_M'">
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormat2 }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
</div>
|
||||
<div class="text-right" v-else>
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormatNo }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center flex justify-content-e align-items-c fs14 check_age">
|
||||
@@ -444,7 +458,8 @@ export default {
|
||||
time: 5,
|
||||
proposalNo: '',
|
||||
mainRiskName: '',
|
||||
ispremshow: true // 是否展示保额
|
||||
ispremshow: true, // 是否展示保额
|
||||
specialCode: '',
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
@@ -465,6 +480,13 @@ export default {
|
||||
return '-'
|
||||
}
|
||||
},
|
||||
numFormat3(str) {
|
||||
if (str) {
|
||||
return Number(str.replace(/,/g, '')).toFixed(1)
|
||||
} else {
|
||||
return '-'
|
||||
}
|
||||
},
|
||||
numFormatNo(str) {
|
||||
if (str) {
|
||||
return Number(str.replace(/,/g, '')).toFixed(0)
|
||||
@@ -791,11 +813,12 @@ export default {
|
||||
this.pageShowInfo.appntDTO = res.content.orderDTO.appntDTO
|
||||
this.pageShowInfo.insuredDTOs = res.content.orderDTO.insuredDTOs
|
||||
this.pageShowInfo.showInsuredDTO = this.pageShowInfo.insuredDTOs[0]
|
||||
this.specialCode = this.pageShowInfo.showInsuredDTO.riskDTOLst[0].mainRiskCode
|
||||
let mainRiskNameList = []
|
||||
that.pageShowInfo.insuredDTOs.forEach((item) => {
|
||||
item.riskDTOLst.forEach((item01) => {
|
||||
if (item01.isMainRisk == '0') {
|
||||
if (item01.mainRiskCode == 'GFRS_M0080' || item01.mainRiskCode == 'GFRS_M0083' || item01.mainRiskCode == 'GFRS_M0085') {
|
||||
if (item01.mainRiskCode == 'GFRS_M0080' || item01.mainRiskCode == 'GFRS_M0083' || item01.mainRiskCode == 'GFRS_M0085' || item01.mainRiskCode == 'GFRS_M0098') {
|
||||
that.ispremshow = false
|
||||
}
|
||||
mainRiskNameList.push(item01.riskName)
|
||||
|
||||
Reference in New Issue
Block a user