Compare commits

...

14 Commits

Author SHA1 Message Date
liu.xiaofeng@ebiz-digits.com
65e41ed410 责任组联动功能代码逻辑编写 2024-03-12 13:50:59 +08:00
liu.xiaofeng@ebiz-digits.com
7739e8b90b 免赔额和免赔比例显示逻辑调整 2024-03-12 13:50:56 +08:00
liu.xiaofeng@ebiz-digits.com
33e6b150b4 嘉和保重大疾病2024年末现金价值增加單位 2024-03-12 13:50:47 +08:00
liu.xiaofeng@ebiz-digits.com
d037b8e36a 国富人寿嘉和保重大疾病保险(2024版) 加字段 2024-03-12 13:50:43 +08:00
liu.xiaofeng@ebiz-digits.com
5a9512b5b7 嘉和保保期70最小保额为20万 保期终身最小保额10万 2024-03-12 13:49:43 +08:00
liu.xiaofeng@ebiz-digits.com
570cc88b30 本产品建议“保至70周岁”的方案20万保额起投;“保至终身”的方案10万保额起投; 2024-03-12 13:49:39 +08:00
liu.xiaofeng@ebiz-digits.com
7ef7799545 嘉和保产品试算兼容 2024-03-12 13:49:35 +08:00
liu.xiaofeng@ebiz-digits.com
e21e16ddbe 银保代理人电子合同签署签字页面跳转地址修改 2024-03-05 15:33:03 +08:00
liu.xiaofeng@ebiz-digits.com
02c408f5ef 证件起始日期与当前日期判断逻辑添加 2024-03-04 17:09:42 +08:00
liu.xiaofeng@ebiz-digits.com
247ad5e13e 销售行为管理办法分数判断修改为60《=分数《=85 2024-03-01 18:02:07 +08:00
liu.xiaofeng@ebiz-digits.com
44bd097ae2 获客弹窗小于85分停止投保按钮样式修改 2024-03-01 18:02:02 +08:00
liu.xiaofeng@ebiz-digits.com
c20dda510e 获客弹窗小于85分点击停止投保调用修改订单状态接口 以及按钮样式和文字修改 2024-03-01 18:01:59 +08:00
liu.xiaofeng@ebiz-digits.com
cf0661b6ba 销售行为管理办法万能险和分红险分数大于85分逻辑添加 2024-03-01 18:01:55 +08:00
liu.xiaofeng@ebiz-digits.com
a9809d32bd 在“告知信息”页面,点击【下一步】按钮,个险、中介直销、银保直销渠道线上流程调整 2024-03-01 18:01:49 +08:00
6 changed files with 196 additions and 41 deletions

View File

@@ -390,3 +390,10 @@ export function saveOrderType(data) {
})
}
export function changeOrderStatus(data) {
return request({
url: getUrl('/sale/order/changeOrderStatus', 1),
method: 'post',
data
})
}

View File

@@ -16,12 +16,12 @@ export default {
if(date2_29 == '02-29'){
let thisyear = Number(endDate.slice(0, 4)) - 5
if (thisyear % 4 == 0 && thisyear % 100 != 0 || thisyear % 400 == 0){
return startDate = thisyear + '-02-29'
startDate = thisyear + '-02-29'
} else {
return startDate = thisyear + '-02-28'
startDate = thisyear + '-02-28'
}
}else{
return startDate = String(Number(endDate.slice(0, 4)) - 5) + endDate.slice(4, 11)
startDate = String(Number(endDate.slice(0, 4)) - 5) + endDate.slice(4, 11)
}
}
/**
@@ -37,12 +37,12 @@ export default {
if(date2_29 == '02-29') {
let thisyear = Number(endDate.slice(0, 4)) - 10
if (thisyear % 4 == 0 && thisyear % 100 != 0 || thisyear % 400 == 0){
return startDate = thisyear + '-02-29'
startDate = thisyear + '-02-29'
} else {
return startDate = thisyear + '-02-28'
startDate = thisyear + '-02-28'
}
} else {
return startDate
startDate
}
}
}
@@ -59,12 +59,12 @@ export default {
if(date2_29 == '02-29') {
let thisyear = Number(endDate.slice(0, 4)) - 20
if (thisyear % 4 == 0 && thisyear % 100 != 0 || thisyear % 400 == 0){
return startDate = thisyear + '-02-29'
startDate = thisyear + '-02-29'
} else {
return startDate = thisyear + '-02-28'
startDate = thisyear + '-02-28'
}
} else {
return startDate
startDate
}
}
}
@@ -74,8 +74,12 @@ export default {
* @Date: 2023/7/4
**/
else if (endage - 20 >= 46) {
return startDate
startDate
}
if(new Date(birthday).getTime() >= new Date(startDate).getTime() || new Date().getTime() < new Date(startDate).getTime()){
startDate = ''
}
return startDate
},
//计算身份证截止日期

View File

@@ -3891,6 +3891,38 @@ export default {
{
code: "GFRS_M0087__cashValue",
label: "元"
},
{
code: "deathDisabilityInsurance",
label: "元"
},
{
code: "middleDiseaseMildillnessExemptionPremium",
label: "元"
},
{
code: "malignantTumorAdditionalInsurance",
label: "元"
},
{
code: "specCardiovascularCerebrovascularDiseasesInsurance",
label: "元"
},
{
code: "firstCriticalIllnessCareFund",
label: "元"
},
{
code: "firstModerateIllnessCareFund",
label: "元"
},
{
code: "firstLightIllnessCareFund",
label: "元"
},
{
code: "GFRS_M0086__cashValue",
label: "元"
}
],
// 卡单与短期险重新投保选择职业类别时,两个模块职业类型数据的排序不同,创建这个数据字典,用于在选择职业类别时,作为一个参数传入组件,

View File

@@ -149,7 +149,8 @@
keyWord: '乙方锟斤拷:'
}
window.sessionStorage.setItem('signInfo',JSON.stringify(signInfo))
window.location.href = 'http://'+window.location.host + '/signH5/1.html'
// window.location.href = 'http://'+window.location.host + '/signH5/1.html'
window.location.href = this.$mainUrl + '/signH5/1.html'
},
goNext(){
let params = {

View File

@@ -110,7 +110,8 @@
item.productCode == 'GFRS_M0051' ||
item.productCode == 'GFRS_M0054' ||
item.productCode == 'GFRS_M0073' ||
item.productCode == 'GFRS_M0057'
item.productCode == 'GFRS_M0057' ||
item.productCode == 'GFRS_M0086'
)
"
class="fs14 w100"
@@ -128,7 +129,8 @@
item.productCode == 'GFRS_M0051' ||
item.productCode == 'GFRS_M0054' ||
item.productCode == 'GFRS_M0073' ||
item.productCode == 'GFRS_M0057'
item.productCode == 'GFRS_M0057' ||
item.productCode == 'GFRS_M0086'
)
"
v-model="dutyItem.defaultDutyAmt"
@@ -136,7 +138,7 @@
:max="dutyItem.maxDutyAmt"
:show-plus="false"
:show-minus="false"
:disabled="item.productCode == 'GFRS_A0012' || (item.productCode == 'GFRS_M0077' && !dutyItem.necess) || (item.productCode == 'GFRS_M0077' && dutyItem.duty == '311507')"
:disabled="item.productCode == 'GFRS_M0088' || item.productCode == 'GFRS_A0012' || (item.productCode == 'GFRS_M0077' && !dutyItem.necess) || (item.productCode == 'GFRS_M0077' && dutyItem.duty == '311507')"
class="ml10 mr10"
@focus="focusStep"
@blur="blurStep(dutyItem, index,item.productCode)"
@@ -798,7 +800,6 @@
}
})
}
console.log(item,'123231321321')
let payEndYearVal
//初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007GFRS_A0009GFRS_A0010去掉后附加险list就为空--隐藏icon
item.calFactorLst.map((i) => {
@@ -871,7 +872,6 @@
//初始化数据试算
this.getTrial()
})
console.log(this.trialList, '')
// 判断是否 含有 后台配置js验证函数
if (localStorage.ruleExpression) {
let ruleExpression = JSON.parse(localStorage.ruleExpression)
@@ -918,7 +918,7 @@
let detailPromise = this.isFrom === 'proposal' ? localStorage.proposalMedical : await getOrderDetail({ orderNo })
this.chooseProducts.map((item) => {
if (
!(item.mainRiskCode === 'GFRS_M0016' ||item.mainRiskCode === 'GFRS_M0070' || item.productCode === 'GFRS_A0004' || item.productCode === 'GFRS_A0008' || item.productCode === 'GFRS_A0005')
!(item.mainRiskCode === 'GFRS_M0016' ||item.mainRiskCode === 'GFRS_M0070' || item.productCode === 'GFRS_A0004' || item.productCode === 'GFRS_A0008' || item.productCode === 'GFRS_A0005' || item.productCode === 'GFRS_M0088')
) {
//其他产品删掉两个字段
let calFactorLst = item.calFactorLst
@@ -1053,6 +1053,34 @@
// 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) => {
if (item.mainRiskCode == 'GFRS_M0086') {
item.calFactorLst.forEach((i) => {
if (i.code == "inputAmt") {
i.minPrem = 20
i.displayAmount = 20
i.defaultValue = 20
}
})
}
})
} else if(value.value == '106') {
this.chooseProducts.forEach((item, index) => {
if (item.mainRiskCode == 'GFRS_M0086') {
item.calFactorLst.forEach((i) => {
if (i.code == "inputAmt") {
i.minPrem = 10
i.displayAmount = 10
i.defaultValue = 10
}
})
}
})
}
}
// let sex = this.saleInsuredPersonInfo.sex //0男 1女
// //特殊设置:如果需要填写的保费/保额校验规则跟缴费期间挂钩当改变缴费期间时将输入框的值恢复默认值1
@@ -1215,6 +1243,30 @@
})
}
}
if (validateRiskCode === 'GFRS_M0088'){
if(dutyItem.duty == '411200' || dutyItem.duty == '411206' || dutyItem.duty == '411207'){
this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules.forEach((i) => {
if(i.duty == '411200' || i.duty == '411206' || i.duty == '411207'){
i.necess = dutyItem.necess
} else {
if(dutyItem.necess){
i.necess = !dutyItem.necess
}
}
})
}
if(dutyItem.duty == '411200_GBC' || dutyItem.duty == '411206_GBC' || dutyItem.duty == '411207_GBC'){
this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules.forEach((i) => {
if(i.duty == '411200_GBC' || i.duty == '411206_GBC' || i.duty == '411207_GBC'){
i.necess = dutyItem.necess
} else {
if(dutyItem.necess){
i.necess = !dutyItem.necess
}
}
})
}
}
this.valiAndSend(dutyItem, productIndex)
},
valiAndSend(dutyItem, productIndex) {
@@ -1289,7 +1341,6 @@
const rule = dutdutyGFRS_M0070RulesyRules[duty]
const mutiple = rule.mutiple || DUTY_DEFAULT_MIN
const min = rule.min || DUTY_DEFAULT_MIN
console.log(rule.min,'rule.min')
if (!value || value < min || value % mutiple !== 0) {
this.$toast(rule.msg)
this.nextStepFlag = true
@@ -1565,7 +1616,6 @@
},
trialBeforeRule() {
let that = this
console.log('走试算前规则')
// 针对于国富人寿附加两全保险附加险(GFRS_A0011),缴费期间期间要等于主险的缴费期间
let mainRiskInfo = this.getMainRiskInfo()
this.chooseProducts.forEach((item) => {
@@ -2492,10 +2542,6 @@
}
else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
|| productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') {
console.log('defalutValue==', defalutValue)
console.log("currentEle['amt']==", currentEle['amt'])
console.log('riskFactor.rules', riskFactor.rules)
console.log('this.saleInsuredPersonInfo.insuredAge ', this.saleInsuredPersonInfo.insuredAge)
//被保险人年龄如果在50-65区间
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
//使用rules规则里的第二条控制保额份数
@@ -2769,9 +2815,6 @@
}
}
}
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
// defalutValue = value
console.log('进来几次')
this.mult = Math.ceil(Number(defalutValue) / Number(riskFactor.defaultValue))
},
//下一步
@@ -2875,7 +2918,8 @@
this.trialList[index].productCode == 'GFRS_M0054' ||
this.trialList[index].productCode == 'GFRS_M0073' ||
this.trialList[index].productCode == 'GFRS_M0077' ||
this.trialList[index].productCode == 'GFRS_M0057'
this.trialList[index].productCode == 'GFRS_M0057' ||
this.trialList[index].productCode == 'GFRS_M0086'
) {
riskItem['dutyLst'] = this.trialInfos[index].duty
}
@@ -2925,8 +2969,6 @@
}
}
}
// console.log(riskItem)
riskItem = Object.assign(riskItem, this.trialInfos[index])
riskDTOLst.push(riskItem)
}

View File

@@ -31,7 +31,8 @@
data-vv-name="单选"
v-for="(items, indexs) in item.options" :key="indexs"
>
<van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}} ({{items.score}})</van-radio>
<!-- <van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}} ({{items.score}})</van-radio>-->
<van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}}</van-radio>
</van-radio-group>
<div style=" font-size:13px" v-if="item.remarks" v-html="item.remarks">
</div>
@@ -43,11 +44,23 @@
<div class="bottom-btn bg-white">
<van-button type="danger" size="large" @click="next" :disabled="isDisabled" v-no-more-click="1000">提交问卷</van-button>
</div>
<van-dialog v-model="thisdialogshow" :showConfirmButton="false">
<div slot="title">
<p style="color: #E9332E;">提示</p>
</div>
<div style="padding: 20px 30px 20px;font-size: 14px;">
<div style="line-height: 20px;">根据风险测评结果您不适合投保万能型或分红型保险产品建议您停止投保</div>
</div>
<div style="text-align: center;display: flex;align-items: end;">
<van-button type="danger" style="font-size: 12px;background: #fff;color: #e9332e;line-height: 15px;width: 50%;padding: 0px 2px;" @click="thisdialogfunc1">已知晓不适宜继续投保但本人仍申请继续投保</van-button>
<van-button type="danger" style="font-size: 14px;width: 50%;" @click="thisdialogfunc2">停止投保</van-button>
</div>
</van-dialog>
</div>
</template>
<script>
import { Collapse, CollapseItem, RadioGroup, Radio, Field, CellGroup, Icon } from 'vant'
import { saveInformation, getOrderDetail } from '@/api/ebiz/sale/sale'
import { saveInformation, getOrderDetail, changeOrderStatus } from '@/api/ebiz/sale/sale'
import IndexBar from '@/components/ebiz/sale/IndexBar'
export default {
data() {
@@ -56,6 +69,8 @@ export default {
],
isDisabled:true,
salePageFlag: '6',
thisdialogshow:false,
productType:'',
}
},
components: {
@@ -72,6 +87,7 @@ created(){
getOrderDetail({ orderNo: this.$route.query.orderNo }).then(res => {
if (res.result == 0) {
this.question =JSON.parse( res.orderDTO.riskEvaluationDTO.quentionAnswer)
this.productType = res.orderDTO.orderInfoDTO.productType
this.isDisabledType()
} else {
this.$toast(res.resultMessage)
@@ -100,6 +116,38 @@ mounted(){
}
},
methods:{
thisdialogfunc1(){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
},
routerInfo: {
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
}
})
},
thisdialogfunc2(){
let params = {
orderNO:this.$route.query.orderNo
}
changeOrderStatus(params).then(res=>{
if(res.result == 0){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/list',
},
routerInfo: {
path: '/sale/list'
}
})
} else {
this.$toast(res.resultMessage)
}
})
},
appCallBack(data) {
if (data.trigger == 'left_button_click') {
return this.$dialog
@@ -159,21 +207,42 @@ methods:{
}
saveInformation(data).then(res => {
if (res.result == '0') {
let that = this
localStorage.removeItem('changeCard')
if (!this.$route.query.salePageFlag) {
//不是从导航栏进入
localStorage.salePageFlag = '7'
}
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
},
routerInfo: {
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
}
})
if(this.productType == '1' || this.productType == '2') {
getOrderDetail({ orderNo: this.$route.query.orderNo }).then(res => {
if (res.result == 0) {
if(res.orderDTO.riskEvaluationDTO.totalScore >= 60 && res.orderDTO.riskEvaluationDTO.totalScore <= 85){
this.thisdialogshow = true
} else {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
},
routerInfo: {
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
}
})
}
} else {
this.$toast(res.resultMessage)
}
})
} else {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
},
routerInfo: {
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
}
})
}
} else {
this.$toast(res.resultMessage)
}