mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 00:06:44 +08:00
Compare commits
20 Commits
hotfix/【20
...
hotfix/【20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae0cc33acf | ||
|
|
e9da63315b | ||
|
|
f4a5c1fc48 | ||
|
|
4a9535c31b | ||
|
|
24b482d2ee | ||
|
|
1731646a29 | ||
|
|
ebc791e9e3 | ||
|
|
41395776d4 | ||
|
|
97c3f943d7 | ||
|
|
42168ab7cd | ||
|
|
7e85f5ad00 | ||
|
|
777eff7f3c | ||
|
|
fd47414a0a | ||
|
|
abf8969c76 | ||
|
|
19009e943d | ||
|
|
59cc88bc43 | ||
|
|
f3e7907626 | ||
|
|
f55bf256ef | ||
|
|
29caa2a03f | ||
|
|
8621137660 |
@@ -21,7 +21,7 @@ export default {
|
||||
return startDate = thisyear + '-02-28'
|
||||
}
|
||||
}else{
|
||||
return startDate = String(Number(endDate.slice(0, 4)) - 5) + startDate.slice(4, 11)
|
||||
return startDate = String(Number(endDate.slice(0, 4)) - 5) + endDate.slice(4, 11)
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
||||
@@ -1773,7 +1773,7 @@ export default {
|
||||
},
|
||||
{
|
||||
id: '07',
|
||||
text: '公司谢绝'
|
||||
text: '核保失败'
|
||||
},
|
||||
{
|
||||
id: '08',
|
||||
|
||||
@@ -173,6 +173,19 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
}
|
||||
//默认展示当天数据
|
||||
this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate()
|
||||
this.initData()
|
||||
},
|
||||
methods: {
|
||||
//切换当月、当天
|
||||
switchDayOrMonth(index) {
|
||||
@@ -218,7 +231,14 @@ export default {
|
||||
* 查询机构下拉列表
|
||||
* manageCode, manageLv传空查全国所有二级机构
|
||||
**/
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
let resData = await getBranchByUser({})
|
||||
this.$toast.clear()
|
||||
if (resData.result != '0') return this.$toast(resData.resultMessage)
|
||||
this.manageLv = resData.content.level
|
||||
//当前token查不出机构时,展示敬请期待
|
||||
@@ -275,6 +295,12 @@ export default {
|
||||
},
|
||||
// 查询列表数据
|
||||
queryOutOrderListFunc() {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
queryOutOrderList({
|
||||
dateFlag: this.dateFlag,
|
||||
appntDate: this.postDate,
|
||||
@@ -284,6 +310,7 @@ export default {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize
|
||||
}).then(res => {
|
||||
this.$toast.clear()
|
||||
if (res.result == 0) {
|
||||
if (res.content) {
|
||||
this.pageNum++
|
||||
@@ -388,16 +415,6 @@ export default {
|
||||
this.queryOutOrderListFunc()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
}
|
||||
//默认展示当天数据
|
||||
this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate()
|
||||
this.initData()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
placeholder="请录入保单号或者投保单号,如果关联多个保单,请用\隔开"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex justify-content-s pv10 border-bottom prem" v-if="item.productCode != 'GFRS_M0080' && item.productCode != 'GFRS_M0083'">
|
||||
<div class="flex justify-content-s pv10 border-bottom prem" v-if="item.productCode != 'GFRS_M0080' && item.productCode != 'GFRS_M0083' && item.productCode != 'GFRS_M0085'">
|
||||
<!-- trialType 0-保额算保费,1-保费算保额 -->
|
||||
<!-- isTrial是否需存在特殊配置(规则) 0-是 1-否-->
|
||||
<span
|
||||
@@ -789,7 +789,7 @@
|
||||
this.isEnterAddtionRiskListFunc()
|
||||
}
|
||||
}
|
||||
if (item.mainRiskCode == 'GFRS_M0083' && this.isFrom == 'proposal') {
|
||||
if ((item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0085') && this.isFrom == 'proposal') {
|
||||
item.calFactorLst.forEach((i) => {
|
||||
if (i.code == "inputPrem") {
|
||||
i.minPrem = 0.01
|
||||
@@ -2019,13 +2019,13 @@
|
||||
let thisproductInfo = JSON.parse(window.localStorage.getItem('chooseProducts'))
|
||||
if(thisproductInfo && thisproductInfo.length != 0) {
|
||||
thisproductInfo.forEach(item => {
|
||||
if(item.productCode == 'GFRS_M0083') {
|
||||
if(item.productCode == 'GFRS_M0083' || item.productCode == 'GFRS_M0085') {
|
||||
productCode = item.productCode
|
||||
}
|
||||
})
|
||||
}
|
||||
if(this.isFrom != 'proposal'){
|
||||
if(productCode == 'GFRS_M0083'){
|
||||
if(productCode == 'GFRS_M0083' || productCode == 'GFRS_M0085'){
|
||||
if(!that.policyNo){
|
||||
that.chooseProducts.forEach(item=>{
|
||||
item.calFactorLst.forEach(ii=>{
|
||||
@@ -2364,7 +2364,7 @@
|
||||
this.saleInsuredInfo.sex,
|
||||
this.saleInsuredInfo.occupationCode,
|
||||
this.saleInsuredInfo.occupationName,
|
||||
this.saleInsuredPersonInfo.insuredAge
|
||||
this.saleInsuredInfo.age?this.saleInsuredInfo.age:this.saleInsuredInfo.insuredAge
|
||||
]
|
||||
} else {
|
||||
;[birthday, sex, occupationCode, occupationName, age] = [
|
||||
@@ -2699,7 +2699,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (productCode == 'GFRS_M0083') {
|
||||
else if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0085') {
|
||||
if(this.isFrom != 'proposal'){
|
||||
if(!this.policyNo && defalutValue < 5) {
|
||||
this.$toast('单独投保,保费为大于等于50000元')
|
||||
|
||||
@@ -64,9 +64,9 @@ export default {
|
||||
needGettingKey: ['name', 'ysbb', 'ysjs', 'bzbf', 'cbjs'],
|
||||
tableColumns: [
|
||||
{ name: '机构', key: 'name' },
|
||||
{ name: '预收标保(万元)', key: 'ysbb' },
|
||||
{ name: '预收期交(万元)', key: 'ysbb' },
|
||||
{ name: '预收件数(件)', key: 'ysjs' },
|
||||
{ name: '承保标保(万元)', key: 'bzbf' },
|
||||
{ name: '承保期交(万元)', key: 'bzbf' },
|
||||
{ name: '承保件数(件)', key: 'cbjs' }
|
||||
],
|
||||
values: [],
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="header-left">
|
||||
<van-button>
|
||||
<img :src="point" />
|
||||
<span class="ml5 mr5">标保</span>
|
||||
<span class="ml5 mr5">期交</span>
|
||||
</van-button>
|
||||
</div>
|
||||
<div class="header-center">
|
||||
|
||||
@@ -94,30 +94,30 @@ export default {
|
||||
[
|
||||
[
|
||||
{ isInt: false, name: '机构', key: 'name' },
|
||||
{ isInt: false, name: '预收标保(万元)', key: 'ysbb' },
|
||||
{ isInt: false, name: '预收期交(万元)', key: 'ysbb' },
|
||||
{ isInt: true, name: '预收件数(件)', key: 'ysjs' },
|
||||
{ isInt: false, name: '承保标保(万元)', key: 'bzbf' },
|
||||
{ isInt: false, name: '承保期交(万元)', key: 'bzbf' },
|
||||
{ isInt: true, name: '承保件数(件)', key: 'cbjs' }
|
||||
],
|
||||
[
|
||||
{ isInt: false, name: '机构', key: 'name' },
|
||||
{ isInt: false, name: '预收标保(万元)', key: 'ysbb' },
|
||||
{ isInt: false, name: '预收期交(万元)', key: 'ysbb' },
|
||||
{ isInt: true, name: '预收件数(件)', key: 'ysjs' },
|
||||
{ isInt: false, name: '承保标保(万元)', key: 'bzbf' },
|
||||
{ isInt: false, name: '承保期交(万元)', key: 'bzbf' },
|
||||
{ isInt: true, name: '承保件数(件)', key: 'cbjs' },
|
||||
{ isInt: false, name: '承保同比', key: 'cbtb' },
|
||||
{ isInt: false, name: '承保环比', key: 'cbhb' }
|
||||
],
|
||||
[
|
||||
{ isInt: false, name: '机构', key: 'name' },
|
||||
{ isInt: false, name: '承保标保(万元)', key: 'bzbf' },
|
||||
{ isInt: false, name: '标保目标', key: 'bbmb' },
|
||||
{ isInt: false, name: '标保目标达成率', key: 'bbmbdcl' },
|
||||
{ isInt: false, name: '承保期交(万元)', key: 'bzbf' },
|
||||
{ isInt: false, name: '期交目标', key: 'bbmb' },
|
||||
{ isInt: false, name: '期交目标达成率', key: 'bbmbdcl' },
|
||||
{ isInt: false, name: '差距', key: 'cj' }
|
||||
],
|
||||
[
|
||||
{ isInt: false, name: '机构', key: 'name' },
|
||||
{ isInt: false, name: '承保标保(万元)', key: 'bzbf' }
|
||||
{ isInt: false, name: '承保期交(万元)', key: 'bzbf' }
|
||||
]
|
||||
],
|
||||
[
|
||||
@@ -131,7 +131,7 @@ export default {
|
||||
],
|
||||
[
|
||||
{ isInt: false, name: '产品', key: 'productName' },
|
||||
{ isInt: false, name: '承保标保(万元)', key: 'cbbb' },
|
||||
{ isInt: false, name: '承保期交(万元)', key: 'cbbb' },
|
||||
{ isInt: true, name: '承保件数(件)', key: 'cbItems' },
|
||||
{ isInt: false, name: '保费占比(%)', key: 'percent' }
|
||||
]
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<th>达成</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bleft bright">预收标保</td>
|
||||
<td class="bleft bright">预收期交</td>
|
||||
<td class="bright">{{ performance.ysbb | unitFilter(1) | blankFilter }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -19,7 +19,7 @@
|
||||
<td class="bright">{{ performance.ysjs | unitFilter(2) | blankFilter }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bleft bright">承保标保</td>
|
||||
<td class="bleft bright">承保期交</td>
|
||||
<td class="bright">{{ performance.bzbf | unitFilter(1) | blankFilter }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -29,43 +29,43 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="data-section">
|
||||
<span ref="manpower" class="title">
|
||||
人力
|
||||
</span>
|
||||
<div class="table-wrapper">
|
||||
<table class="myTable" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<th style="width: 50%;">人力指标</th>
|
||||
<th>达成(人)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bleft bright">活动人力</td>
|
||||
<td class="bright">{{ manpower.hdrl | blankFilter }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bleft bright">合格人力</td>
|
||||
<td class="bright">{{ manpower.hgrl | blankFilter }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bleft bright">桂冠人力</td>
|
||||
<td class="bright">{{ manpower.ggrl | blankFilter }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bleft bright">桂冠正式会员</td>
|
||||
<td class="bright">{{ manpower.gghy | blankFilter }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bleft bright">双冠人力</td>
|
||||
<td class="bright">{{ manpower.sgrl | blankFilter }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bleft bright">新增人力</td>
|
||||
<td class="bright">{{ manpower.xzrl | blankFilter }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="data-section">-->
|
||||
<!-- <span ref="manpower" class="title">-->
|
||||
<!-- 人力-->
|
||||
<!-- </span>-->
|
||||
<!-- <div class="table-wrapper">-->
|
||||
<!-- <table class="myTable" cellspacing="0" cellpadding="0">-->
|
||||
<!-- <tr>-->
|
||||
<!-- <th style="width: 50%;">人力指标</th>-->
|
||||
<!-- <th>达成(人)</th>-->
|
||||
<!-- </tr>-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td class="bleft bright">活动人力</td>-->
|
||||
<!-- <td class="bright">{{ manpower.hdrl | blankFilter }}</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td class="bleft bright">合格人力</td>-->
|
||||
<!-- <td class="bright">{{ manpower.hgrl | blankFilter }}</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td class="bleft bright">桂冠人力</td>-->
|
||||
<!-- <td class="bright">{{ manpower.ggrl | blankFilter }}</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td class="bleft bright">桂冠正式会员</td>-->
|
||||
<!-- <td class="bright">{{ manpower.gghy | blankFilter }}</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td class="bleft bright">双冠人力</td>-->
|
||||
<!-- <td class="bright">{{ manpower.sgrl | blankFilter }}</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td class="bleft bright">新增人力</td>-->
|
||||
<!-- <td class="bright">{{ manpower.xzrl | blankFilter }}</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- </table>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="data-section">
|
||||
<span ref="production" class="title">
|
||||
产品
|
||||
@@ -77,7 +77,7 @@
|
||||
<table class="myTable" style="min-width: 140vw;" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<th class="sticky">产品名称</th>
|
||||
<th>承保标保(万元)</th>
|
||||
<th>承保期交(万元)</th>
|
||||
<th>承保件数(件)</th>
|
||||
<th>保费占比(%)</th>
|
||||
</tr>
|
||||
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
dayTimeCondition: currentDate,
|
||||
// 0: 标保, 1: 人力, 2: 产品
|
||||
typeIndex: 0,
|
||||
dataTypes: ['标保', '人力指标', '产品'],
|
||||
dataTypes: ['期交', '人力指标', '产品'],
|
||||
active: 0,
|
||||
// 侧边栏是否显示
|
||||
isSideBarShow: false,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div ref="product" class="home-product-container pb20">
|
||||
<!-- 非个险 -->
|
||||
<template v-if="!isPersonalInsu">
|
||||
<div class="home-product-content">
|
||||
<div class="home-product-content" v-if="branchType != '12'">
|
||||
<!-- 产品中心 -->
|
||||
<div class="pcenter-title flex pt10 mr20 mb10 ml15 justify-content-s align-items-c" style="height: 30px;">
|
||||
<h3 class="center-title fs15 pl10" style="border-left: 4px solid red;">知识社区</h3>
|
||||
@@ -61,7 +61,7 @@
|
||||
</template>
|
||||
<!-- 个险 -->
|
||||
<template v-if="isPersonalInsu">
|
||||
<div class="home-product-content">
|
||||
<div class="home-product-content" v-if="branchType != '12'">
|
||||
<!-- 机构排名/业绩排名 -->
|
||||
<div class="pcenter-title flex pt10 pb10 mr15 justify-content-s align-items-c" style="height: 50px;">
|
||||
<img v-if="isInner" class="title-img" :src="organizationImgUrl" />
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
isGoodStart: '0', // 是否开门红 0-默认
|
||||
isPersonalInsu: true, // 是否个险渠道
|
||||
isInner: false,
|
||||
organizationTheads: ['排名', '机构', '当日预收(标保)', '月预收标保', '日承保标保', '月承保标保'],
|
||||
organizationTheads: ['排名', '机构', '当日预收(期交)', '月预收期交', '日承保期交', '月承保期交'],
|
||||
performanceTheads: ['排名', '姓名', '营销服务部', '预收标保', '承保标保'],
|
||||
organizationData: [],
|
||||
performanceData: [],
|
||||
|
||||
@@ -51,14 +51,14 @@
|
||||
<div class="fs12 div_4">
|
||||
<div class="risk_head flex text-center line-height table fs12 bg_DBEFFE">
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7">投保险种</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border" v-if="mainRiskCodes[0] != 'GFRS_M0080' && mainRiskCodes[0] != 'GFRS_M0083'">保额(元)</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border" v-if="ispremshow">保额(元)</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">保险期间</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">交费期间</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">首年保费(元)</div>
|
||||
</div>
|
||||
<div class="risk_body flex text-center table bg_f7fbff" v-for="(riskItem, index) in pageShowInfo.showInsuredDTO.riskDTOLst" :key="index">
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7">{{ riskItem.riskName }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border" v-if="mainRiskCodes[0] != 'GFRS_M0080' && mainRiskCodes[0] != 'GFRS_M0083'">{{ riskItem.amt ? riskItem.amt : '--' }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border" v-if="ispremshow">{{ riskItem.amt ? riskItem.amt : '--' }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.insureName }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.payName }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.showPrem ? riskItem.showPrem : '--' }}</div>
|
||||
@@ -386,7 +386,8 @@ export default {
|
||||
mainRiskCodes: [],
|
||||
time: 5,
|
||||
proposalNo:'',
|
||||
mainRiskName: ''
|
||||
mainRiskName: '',
|
||||
ispremshow: true, // 是否展示保额
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
@@ -729,6 +730,9 @@ export default {
|
||||
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') {
|
||||
that.ispremshow = false
|
||||
}
|
||||
mainRiskNameList.push(item01.riskName)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -150,7 +150,7 @@ export function relevanceByInsure(insured, insuredLabelResult, insuredResult, in
|
||||
let defaulValue = 'M' //档位默认值
|
||||
let radios = []
|
||||
if(currentInsuredInfo.L){
|
||||
if(risk.mainRiskCode == 'GFRS_M0083') {
|
||||
if(risk.mainRiskCode == 'GFRS_M0083' || risk.mainRiskCode == 'GFRS_M0085') {
|
||||
radios.push({
|
||||
label: '保证' + currentInsuredInfo.L,
|
||||
value: 'L'
|
||||
@@ -163,7 +163,7 @@ export function relevanceByInsure(insured, insuredLabelResult, insuredResult, in
|
||||
}
|
||||
}
|
||||
if(currentInsuredInfo.M){
|
||||
if(risk.mainRiskCode == 'GFRS_M0083') {
|
||||
if(risk.mainRiskCode == 'GFRS_M0083' || risk.mainRiskCode == 'GFRS_M0085') {
|
||||
radios.push({
|
||||
label: '演示' + currentInsuredInfo.M,
|
||||
value: 'M'
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
@confirm="onDateConfirm($event, '1')"
|
||||
ref="certiexpiredate"
|
||||
:flag="certiexpiredateShow"
|
||||
:readonly="isInsured || idLimit"
|
||||
:readonly="isInsured"
|
||||
></FieldDatePicter>
|
||||
<div class="border-bt relative fs14 p10 flex align-center">
|
||||
<van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
|
||||
@@ -1299,35 +1299,53 @@ export default {
|
||||
}
|
||||
this.userInfo.effectiveDateType = false
|
||||
this.effectiveDateTypeAble = idToData(val).age <= 45
|
||||
this.userInfo.birthday = idToData(val).birthday
|
||||
//受益人证件类型如果是户口本时,证件截止日期证件截止日期应为第16周岁的生日日期。
|
||||
if(this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age <16){
|
||||
// 获取出生日期年份+16
|
||||
let year = Number(this.userInfo.birthday.substr(0,4)) + 16
|
||||
if(this.userInfo.birthday.substr(5,5) == '02-29'){
|
||||
// 获取某年某月一共多少天
|
||||
let date = new Date(year, 2, 1)
|
||||
let dayEnd = new Date(date.getTime() - 864e5).getDate()
|
||||
this.userInfo.certiexpiredate = year +'-02-'+ dayEnd
|
||||
}else{
|
||||
this.userInfo.certiexpiredate = year +'-'+ this.userInfo.birthday.substr(5,5)
|
||||
}
|
||||
}
|
||||
this.userInfo.sex = idToData(val).sex
|
||||
if (idToData(val).age > 45) {
|
||||
if (from) {
|
||||
this.userInfo.effectiveDateType = true
|
||||
}
|
||||
this.effectiveDateTypeAble = false
|
||||
}
|
||||
//如果选择户口本
|
||||
if (this.userInfo.idType == '2') {
|
||||
let exipreDate = Date.parse(this.userInfo.birthday) + Date.parse('1985-12-31')
|
||||
if(this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age <16) {
|
||||
this.userInfo.birthday = idToData(val).birthday
|
||||
this.userInfo.sex = idToData(val).sex
|
||||
this.userInfo.certificateValidate = this.userInfo.birthday
|
||||
this.userInfo.certiexpiredate = this.timeStampFormat(exipreDate)
|
||||
this.idLimit = true
|
||||
//如果选择出生证明
|
||||
let date2_29 = this.userInfo.certificateValidate.slice(5, 11)
|
||||
if(date2_29 == '02-29'){
|
||||
let thisyear = Number(this.userInfo.certificateValidate.slice(0, 4)) + 16
|
||||
if (thisyear % 4 == 0 && thisyear % 100 != 0 || thisyear % 400 == 0){
|
||||
return this.userInfo.certiexpiredate = thisyear + '-02-29'
|
||||
} else {
|
||||
return this.userInfo.certiexpiredate = thisyear + '-02-28'
|
||||
}
|
||||
}else{
|
||||
this.userInfo.certiexpiredate = String(Number(this.userInfo.certificateValidate.slice(0, 4)) + 16) + this.userInfo.certificateValidate.slice(4, 11)
|
||||
}
|
||||
}
|
||||
|
||||
//受益人证件类型如果是户口本时,证件截止日期证件截止日期应为第16周岁的生日日期。
|
||||
// if(this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age <16){
|
||||
// // 获取出生日期年份+16
|
||||
// let year = Number(this.userInfo.birthday.substr(0,4)) + 16
|
||||
// if(this.userInfo.birthday.substr(5,5) == '02-29'){
|
||||
// // 获取某年某月一共多少天
|
||||
// let date = new Date(year, 2, 1)
|
||||
// let dayEnd = new Date(date.getTime() - 864e5).getDate()
|
||||
// this.userInfo.certiexpiredate = year +'-02-'+ dayEnd
|
||||
// // this.userInfo.certiexpiredate = String(Number(this.userInfo.certificateValidate.slice(0, 4)) + 16) + this.userInfo.certificateValidate.slice(4, 11)
|
||||
// }else{
|
||||
// // this.userInfo.certiexpiredate = year +'-'+ this.userInfo.birthday.substr(5,5)
|
||||
// this.userInfo.certiexpiredate = String(Number(this.userInfo.certificateValidate.slice(0, 4)) + 16) + this.userInfo.certificateValidate.slice(4, 11)
|
||||
// }
|
||||
// }
|
||||
// this.userInfo.sex = idToData(val).sex
|
||||
// if (idToData(val).age > 45) {
|
||||
// if (from) {
|
||||
// this.userInfo.effectiveDateType = true
|
||||
// }
|
||||
// this.effectiveDateTypeAble = false
|
||||
// }
|
||||
// //如果选择户口本
|
||||
// if (this.userInfo.idType == '2') {
|
||||
// let exipreDate = Date.parse(this.userInfo.birthday) + Date.parse('1985-12-31')
|
||||
// this.userInfo.certificateValidate = this.userInfo.birthday
|
||||
// this.userInfo.certiexpiredate = this.timeStampFormat(exipreDate)
|
||||
// this.idLimit = true
|
||||
// //如果选择出生证明
|
||||
// }
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
// 倒计时时间
|
||||
number: '',
|
||||
// 定时器时间
|
||||
time: '2',
|
||||
time: '10',
|
||||
// 定时器名称
|
||||
timer: null,
|
||||
isOver: false,
|
||||
|
||||
@@ -1766,16 +1766,22 @@ export default {
|
||||
this.goUrl()
|
||||
}
|
||||
} else {
|
||||
this.faceAuthCount.weixin++
|
||||
console.log('腾讯人脸识别失败', this.faceAuthCount.weixin, typeof this.faceAuthCount.weixin)
|
||||
if (this.faceAuthCount.weixin >= this.smsAuthNum) {
|
||||
if (window.sessionStorage.shareCode == '1') {
|
||||
this.operaFlag = 'insured'
|
||||
} else {
|
||||
this.operaFlag = 'appnt'
|
||||
}
|
||||
this.realPeopelCheck()
|
||||
// this.faceAuthCount.weixin++
|
||||
// console.log('腾讯人脸识别失败', this.faceAuthCount.weixin, typeof this.faceAuthCount.weixin)
|
||||
// if (this.faceAuthCount.weixin >= this.smsAuthNum) {
|
||||
// if (window.sessionStorage.shareCode == '1') {
|
||||
// this.operaFlag = 'insured'
|
||||
// } else {
|
||||
// this.operaFlag = 'appnt'
|
||||
// }
|
||||
// this.realPeopelCheck()
|
||||
// }
|
||||
if (window.sessionStorage.shareCode == '1') {
|
||||
this.operaFlag = 'insured'
|
||||
} else {
|
||||
this.operaFlag = 'appnt'
|
||||
}
|
||||
this.realPeopelCheck()
|
||||
}
|
||||
},
|
||||
async recognition() {
|
||||
|
||||
@@ -1087,7 +1087,7 @@
|
||||
that.signVal = window.localStorage.getItem('sign-val')
|
||||
// 判断是不是万能险
|
||||
let comment = window.localStorage.getItem('productCode')
|
||||
if (comment == 'GFRS_M0003' || comment == 'GFRS_M0015' || comment == 'GFRS_M0017' || comment == 'GFRS_M0075' || comment == 'GFRS_M0080' || comment == 'GFRS_M0082' || comment == 'GFRS_M0083') {
|
||||
if (comment == 'GFRS_M0003' || comment == 'GFRS_M0015' || comment == 'GFRS_M0017' || comment == 'GFRS_M0075' || comment == 'GFRS_M0080' || comment == 'GFRS_M0082' || comment == 'GFRS_M0083' || comment == 'GFRS_M0085') {
|
||||
this.isComment = true
|
||||
}
|
||||
// 获取投保人信息
|
||||
|
||||
Reference in New Issue
Block a user