mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 07:06:45 +08:00
Compare commits
8 Commits
feature/FC
...
feature/FC
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3554007677 | ||
|
|
0c5cb94008 | ||
|
|
67c1609047 | ||
|
|
fa8e16be7d | ||
|
|
8151a31866 | ||
|
|
e782eb1065 | ||
|
|
7c2fca39bf | ||
|
|
af041ddd0c |
@@ -1,167 +1,88 @@
|
||||
import utilsAge from '@/assets/js/utils/age'
|
||||
export default {
|
||||
//计算身份证起始日期
|
||||
getStartDate: function(age, endDate) {
|
||||
getStartDate: function(birthday, endDate) {
|
||||
let startDate = '' //证件起始日期
|
||||
let thisDate = new Date() //当年日期
|
||||
let thisyear = thisDate.getFullYear() //当前年份
|
||||
let startage = ''
|
||||
let endage = utilsAge.getAge(birthday, new Date(endDate))
|
||||
|
||||
if (age < 16) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 16周岁以下的证件有效期为5年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
startDate = String(Number(endDate.slice(0,4)) - 5) + endDate.slice(4,11)
|
||||
} else if (age >= 16 && age <= 21) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 16周岁~21周岁的证件有效期为10年或5年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
if (age - (10 - (endDate.slice(0,4) - thisyear)) < 16 ) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 如果证件有效期为10年 根据证件截止日期 判断10年前的年龄 如果小于16周岁 那么证件有效期就是5年
|
||||
* @Date: 2023/7/5
|
||||
**/
|
||||
startDate = String(Number(endDate.slice(0,4)) - 5) + endDate.slice(4,11)
|
||||
} else {
|
||||
startDate = String(Number(endDate.slice(0,4)) - 10) + endDate.slice(4,11)
|
||||
}
|
||||
} else if(age >= 22 && age <= 25) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 22周岁~25周岁的证件有效期为10年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
startDate = String(Number(endDate.slice(0,4)) - 10) + endDate.slice(4,11)
|
||||
} else if (age >= 26 && age <= 35) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 26周岁~35周岁的证件有效期为20年或10年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
if (age - (20 - (endDate.slice(0,4) - thisyear)) < 26 ) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 如果证件有效期为20年 根据证件截止日期 判断20年前的年龄 如果小于26周岁 那么证件有效期就是10年
|
||||
* @Date: 2023/7/5
|
||||
**/
|
||||
startDate = String(Number(endDate.slice(0,4)) - 10) + endDate.slice(4,11)
|
||||
} else {
|
||||
startDate = String(Number(endDate.slice(0,4)) - 20) + endDate.slice(4,11)
|
||||
}
|
||||
} else if (age >= 36 && age <= 45) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 36周岁~45周岁的证件有效期为20年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
startDate = String(Number(endDate.slice(0,4)) + 20) + endDate.slice(4,11)
|
||||
} else if (age >= 46 && age <= 65) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 46周岁~65周岁的证件有效期为20年或长期
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
if (age - (20 - (endDate.slice(0,4) - thisyear)) < 46 ) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 如果证件有效期为20年 根据证件截止日期 判断20年前的年龄 如果小于46周岁 那么证件有效期就是20年
|
||||
* @Date: 2023/7/5
|
||||
**/
|
||||
startDate = String(Number(endDate.slice(0,4)) - 20) + endDate.slice(4,11)
|
||||
}
|
||||
} else if (age > 65) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 65周岁以上的证件有效期为长期
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 未满16周岁的公民申领的居民身份证有效期为5年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
if (endage - 5 < 16) {
|
||||
return startDate = String(Number(endDate.slice(0,4)) - 5) + endDate.slice(4,11)
|
||||
}
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 年满16周岁至25周岁的公民申领的居民身份证有效期为10年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
else if (endage - 5 >= 16 && endage - 10 <= 25) {
|
||||
startDate = String(Number(endDate.slice(0,4)) - 10) + endDate.slice(4,11)
|
||||
startage = utilsAge.getAge(birthday, new Date(startDate))
|
||||
if(startage >= 16 && startage <= 25){
|
||||
return startDate
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 年满26周岁至45周岁的公民申领的居民身份证有效期为20年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
else if(endage - 10 >= 26 && endage - 20 <= 45) {
|
||||
startDate = String(Number(endDate.slice(0,4)) - 20) + endDate.slice(4,11)
|
||||
startage = utilsAge.getAge(birthday, new Date(startDate))
|
||||
if(startage >= 26 && startage <= 45){
|
||||
return startDate
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 年满46周岁的公民申领居民身份证有效期为长期
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
else if (endage - 20 >= 46) {
|
||||
return startDate
|
||||
}
|
||||
return startDate
|
||||
},
|
||||
|
||||
//计算身份证截止日期
|
||||
getEndDate: function(age, startDate) {
|
||||
getEndDate: function(birthday, startDate) {
|
||||
let endDate = '' //证件截止日期
|
||||
let thisDate = new Date() //当年日期
|
||||
let thisyear = thisDate.getFullYear() //当前年份
|
||||
|
||||
if (age < 16) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 16周岁以下的证件有效期为5年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
endDate = String(Number(startDate.slice(0,4)) + 5) + startDate.slice(4,11)
|
||||
} else if (age >= 16 && age <= 21) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 16周岁~21周岁的证件有效期为10年或5年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
if (age - (thisyear - startDate.slice(0,4)) < 16 ) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 根据证件起始日期计算办证时年龄 如果办证时年龄小于16周岁 那么证件有效期就是5年
|
||||
* @Date: 2023/7/5
|
||||
**/
|
||||
endDate = String(Number(startDate.slice(0,4)) + 5) + startDate.slice(4,11)
|
||||
} else {
|
||||
endDate = String(Number(startDate.slice(0,4)) + 10) + startDate.slice(4,11)
|
||||
}
|
||||
} else if(age >= 22 && age <= 25) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 22周岁~25周岁的证件有效期为10年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
endDate = String(Number(startDate.slice(0,4)) + 10) + startDate.slice(4,11)
|
||||
} else if (age >= 26 && age <= 35) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 26周岁~35周岁的证件有效期为20年或10年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
if (age - (thisyear - startDate.slice(0,4)) < 26 ) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 根据证件起始日期计算办证时年龄 如果办证时年龄小于26周岁 那么证件有效期就是10年
|
||||
* @Date: 2023/7/5
|
||||
**/
|
||||
endDate = String(Number(startDate.slice(0,4)) + 10) + startDate.slice(4,11)
|
||||
} else {
|
||||
endDate = String(Number(startDate.slice(0,4)) + 20) + startDate.slice(4,11)
|
||||
}
|
||||
} else if (age >= 36 && age <= 45) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 36周岁~45周岁的证件有效期为20年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
endDate = String(Number(startDate.slice(0,4)) + 20) + startDate.slice(4,11)
|
||||
} else if (age >= 46 && age <= 65) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 46周岁~65周岁的证件有效期为20年或长期
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
if (age - (thisyear - startDate.slice(0,4)) < 46 ) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 根据证件起始日期计算办证时年龄 如果办证时年龄小于46周岁 那么证件有效期就是20年
|
||||
* @Date: 2023/7/5
|
||||
**/
|
||||
endDate = String(Number(startDate.slice(0,4)) + 20) + startDate.slice(4,11)
|
||||
}
|
||||
} else if (age > 65) {
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 65周岁以上的证件有效期为长期
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
let startage = utilsAge.getAge(birthday, new Date(startDate))
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 未满16周岁的公民申领的居民身份证有效期为5年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
if (startage < 16) {
|
||||
return endDate = String(Number(startDate.slice(0, 4)) + 5) + startDate.slice(4, 11)
|
||||
}
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 年满16周岁至25周岁的公民申领的居民身份证有效期为10年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
else if (startage >= 16 && startage <= 25) {
|
||||
return endDate = String(Number(startDate.slice(0, 4)) + 10) + startDate.slice(4, 11)
|
||||
}
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 年满26周岁至45周岁的公民申领的居民身份证有效期为20年
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
else if (startage >= 26 && startage <= 45) {
|
||||
return endDate = String(Number(startDate.slice(0, 4)) + 20) + startDate.slice(4, 11)
|
||||
}
|
||||
/**
|
||||
* @Author: LiuXiaoFeng
|
||||
* @Description: 年满46周岁的公民申领居民身份证有效期为长期
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
else if (startage > 65) {
|
||||
return endDate
|
||||
}
|
||||
return endDate
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required label="银行卡账户" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListBank', '3', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<div @click="test('fileListBank', '3', '0', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListBank"
|
||||
v-model="fileListBank"
|
||||
@@ -36,7 +36,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="item.id == '2' ? `${item.text}户主页` : `${item.text}正面`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListIdFront', '1', saleInsuredInfo.appntId, saleInsuredInfo.idType)" class="flex align-items-e">
|
||||
<div @click="test('fileListIdFront', '1', '0', saleInsuredInfo.appntId, saleInsuredInfo.idType)" class="flex align-items-e">
|
||||
<van-uploader
|
||||
name="fileListIdFront"
|
||||
v-model="fileListIdFront"
|
||||
@@ -50,7 +50,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="item.id == '2' ? `${item.text}本人页` : `${item.text}反面`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListIdBack', '2', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<div @click="test('fileListIdBack', '2', '0', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListIdBack"
|
||||
v-model="fileListIdBack"
|
||||
@@ -66,7 +66,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="`${item.text}头像面`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileLIstImg', '8', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<div @click="test('fileLIstImg', '8', '0', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileLIstImg"
|
||||
v-model="fileLIstImg"
|
||||
@@ -83,7 +83,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required label="银行卡正面" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListBank', '3', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<div @click="test('fileListBank', '3', '0', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListBank"
|
||||
v-model="fileListBank"
|
||||
@@ -97,7 +97,7 @@
|
||||
<van-cell-group v-if="isNotify">
|
||||
<van-field label="健康告知异常类资料" disabled />
|
||||
</van-cell-group>
|
||||
<div v-if="isNotify" @click="test('fileListNotify', '24', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<div v-if="isNotify" @click="test('fileListNotify', '24', '0', saleInsuredInfo.appntId, saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListNotify"
|
||||
v-model="fileListNotify"
|
||||
@@ -125,7 +125,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="item.id == '2' ? `${item.text}户主页` : `${item.text}正面`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListIdFrontInsured', '1', saleInsuredPersonInfo.insuredId, saleInsuredPersonInfo.idType)">
|
||||
<div @click="test('fileListIdFrontInsured', '1', '1', saleInsuredPersonInfo.insuredId, saleInsuredPersonInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListIdFrontInsured"
|
||||
v-model="fileListIdFrontInsured"
|
||||
@@ -139,7 +139,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="item.id == '2' ? `${item.text}本人页` : `${item.text}反面`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListIdBackInsured', '2', saleInsuredPersonInfo.insuredId, saleInsuredPersonInfo.idType)">
|
||||
<div @click="test('fileListIdBackInsured', '2', '1', saleInsuredPersonInfo.insuredId, saleInsuredPersonInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListIdBackInsured"
|
||||
v-model="fileListIdBackInsured"
|
||||
@@ -155,7 +155,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="`${item.text}头像页`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileLIstImgInsured', '8', saleInsuredPersonInfo.insuredId, saleInsuredPersonInfo.idType)">
|
||||
<div @click="test('fileLIstImgInsured', '8', '1', saleInsuredPersonInfo.insuredId, saleInsuredPersonInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileLIstImgInsured"
|
||||
v-model="fileLIstImgInsured"
|
||||
@@ -172,7 +172,7 @@
|
||||
<van-cell-group v-if="isNotifyInsured">
|
||||
<van-field label="健康告知异常类资料" disabled />
|
||||
</van-cell-group>
|
||||
<div v-if="isNotifyInsured" @click="test('fileListNotifyInsured', '24', saleInsuredPersonInfo.insuredId, saleInsuredPersonInfo.idType)">
|
||||
<div v-if="isNotifyInsured" @click="test('fileListNotifyInsured', '24', '1', saleInsuredPersonInfo.insuredId, saleInsuredPersonInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListNotifyInsured"
|
||||
v-model="fileListNotifyInsured"
|
||||
@@ -200,7 +200,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="item.id == '2' ? `${item01.name}+${item.text}户主页` : `${item01.name}+${item.text}正面`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListIdFrontBeneficiary', '1', item01.bnfId, item01.idType, item01.bnfId)">
|
||||
<div @click="test('fileListIdFrontBeneficiary', '1', '3', item01.bnfId, item01.idType, item01.bnfId)">
|
||||
<van-uploader
|
||||
:name="'fileListIdFrontBeneficiary'+index01"
|
||||
v-model="bnfInfo[index01].fileListIdFrontBeneficiary"
|
||||
@@ -214,7 +214,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="item.id == '2' ? `${item01.name}+${item.text}本人页` : `${item01.name}+${item.text}反面`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListIdBackBeneficiary', '2', item01.bnfId, item01.idType, item01.bnfId)">
|
||||
<div @click="test('fileListIdBackBeneficiary', '2', '3', item01.bnfId, item01.idType, item01.bnfId)">
|
||||
<van-uploader
|
||||
:name="'fileListIdBackBeneficiary'+index01"
|
||||
v-model="bnfInfo[index01].fileListIdBackBeneficiary"
|
||||
@@ -230,7 +230,7 @@
|
||||
<van-cell-group>
|
||||
<van-field required :label="`${item01.name}+${item.text}头像页`" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileLIstImgBeneficiary', '8', item01.bnfId, item01.idType, item01.bnfId)">
|
||||
<div @click="test('fileLIstImgBeneficiary', '8', '3', item01.bnfId, item01.idType, item01.bnfId)">
|
||||
<van-uploader
|
||||
:name="'fileLIstImgBeneficiary'+index01"
|
||||
v-model="bnfInfo[index01].fileLIstImgBeneficiary"
|
||||
@@ -265,6 +265,12 @@
|
||||
>下一步</van-button
|
||||
>
|
||||
</div>
|
||||
<van-dialog v-model="thisdialogshow" title="提示" confirmButtonText="返回修改">
|
||||
<div style="padding: 20px;font-size: 14px;">
|
||||
<div style="margin-bottom: 10px;letter-spacing: 1px;color: #E9332E;">校验失败原因:</div>
|
||||
<div v-for="(item,index) in thisdialogcontent" style="margin-bottom: 10px;letter-spacing: 1px;">{{index+1}}:{{item}}</div>
|
||||
</div>
|
||||
</van-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -280,6 +286,8 @@ import utils from '../../../assets/js/business-common'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
thisdialogshow: false,
|
||||
thisdialogcontent: '',
|
||||
isNotify: false, //是否有异常的健康告知
|
||||
isNotifyInsured: false,
|
||||
// 订单号
|
||||
@@ -352,7 +360,8 @@ export default {
|
||||
changeCard: localStorage.changeCard,
|
||||
salePageFlag: '9',
|
||||
imageType: '',
|
||||
subBusinessNo: ''
|
||||
subBusinessNo: '',
|
||||
subBusinessType: '',
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
@@ -750,8 +759,9 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
test(name, type, subBusinessNo, id, bnfId) {
|
||||
test(name, type, subBusinessType, subBusinessNo, id, bnfId) {
|
||||
this.imageType = type
|
||||
this.subBusinessType = subBusinessType
|
||||
this.bnfId = bnfId
|
||||
this.id = id
|
||||
this.type = name
|
||||
@@ -829,7 +839,7 @@ export default {
|
||||
businessType: '',
|
||||
imageInfoType: that.imageType,
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '0',
|
||||
subBusinessType: that.subBusinessType,
|
||||
subBusinessNo: that.subBusinessNo,
|
||||
fileName: that.imgName,
|
||||
}
|
||||
@@ -1022,58 +1032,148 @@ export default {
|
||||
that.list.map((i) => {
|
||||
delete i.name
|
||||
})
|
||||
let data = {
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: this.$route.query.orderNo,
|
||||
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
|
||||
},
|
||||
appntDTO: {
|
||||
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
|
||||
},
|
||||
mediaDTOS: that.list,
|
||||
},
|
||||
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
||||
let nowTime = new Date().getTime()
|
||||
let localTime = window.localStorage.getItem('serrorTime')
|
||||
if(nowTime - localTime < 20000){
|
||||
this.$toast('您操作过于频繁,请20S后再试!')
|
||||
return false
|
||||
}
|
||||
saveInformation(data).then((res) => {
|
||||
if (res.result == '0') {
|
||||
this.$toast.clear()
|
||||
if (!this.changeCard) {
|
||||
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
||||
window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
||||
window.localStorage.setItem('jumpFromSign', '')
|
||||
}
|
||||
window.localStorage.removeItem('imgfront')
|
||||
window.localStorage.removeItem('imgBackPath')
|
||||
window.localStorage.removeItem('imgfrontPath')
|
||||
window.localStorage.removeItem('imgfrontInsured')
|
||||
window.localStorage.removeItem('imgfrontInsuredPath')
|
||||
window.localStorage.removeItem('imgBackInsuredPath')
|
||||
window.localStorage.removeItem('bankCardUrl')
|
||||
window.localStorage.removeItem('bankCardUrlPath')
|
||||
window.localStorage.removeItem('bankCardUrlInsured')
|
||||
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
pullRefresh: '1',
|
||||
backToFirst: '1',
|
||||
if(JSON.parse(localStorage.mainRiskCodes)[0] == 'GFRS_M0076' || JSON.parse(localStorage.mainRiskCodes)[0] == 'GFRS_M0077') {
|
||||
this.$dialog
|
||||
.alert({
|
||||
title: '提示',
|
||||
message: '尊敬的客户您好!感谢您投保我公司“爱心保/安心保”产品,在本保险合同生效后被保险人将获得一份专属的健康管理服务,详情请登录公司官方微信公众号“国富人寿保险”>发现国富>新市民专区 查询或拨打公司客服热线400-694-6688咨询,本服务为无偿提供。',
|
||||
confirmButtonColor: '#E9332E',
|
||||
})
|
||||
.then(() => {
|
||||
let data = {
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: this.$route.query.orderNo,
|
||||
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
|
||||
},
|
||||
appntDTO: {
|
||||
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
|
||||
},
|
||||
mediaDTOS: that.list,
|
||||
},
|
||||
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
||||
}
|
||||
saveInformation(data).then((res) => {
|
||||
if (res.result == '0') {
|
||||
this.$toast.clear()
|
||||
if (!this.changeCard) {
|
||||
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
||||
window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
||||
window.localStorage.setItem('jumpFromSign', '')
|
||||
}
|
||||
window.localStorage.removeItem('imgfront')
|
||||
window.localStorage.removeItem('imgBackPath')
|
||||
window.localStorage.removeItem('imgfrontPath')
|
||||
window.localStorage.removeItem('imgfrontInsured')
|
||||
window.localStorage.removeItem('imgfrontInsuredPath')
|
||||
window.localStorage.removeItem('imgBackInsuredPath')
|
||||
window.localStorage.removeItem('bankCardUrl')
|
||||
window.localStorage.removeItem('bankCardUrlPath')
|
||||
window.localStorage.removeItem('bankCardUrlInsured')
|
||||
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
pullRefresh: '1',
|
||||
backToFirst: '1',
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
})
|
||||
} else {
|
||||
let thisTime = new Date().getTime()
|
||||
window.localStorage.setItem('serrorTime',thisTime)
|
||||
if(res.resultMessage.indexOf('Engine')!= -1){
|
||||
this.thisdialogshow = true
|
||||
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦~请确认并重新录入,如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为:本人、配偶、子女、父母,人工审核中,请您耐心等待哦~'
|
||||
this.thisdialogcontent = res.resultMessage.split('【Engine】')
|
||||
this.thisdialogcontent.splice(0,1)
|
||||
}else{
|
||||
Dialog.confirm({
|
||||
title: '提示',
|
||||
message: res.resultMessage,
|
||||
confirmButtonColor:'#FF0000',
|
||||
showCancelButton:false
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
return
|
||||
})
|
||||
} else {
|
||||
let data = {
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: this.$route.query.orderNo,
|
||||
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
appntDTO: {
|
||||
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
|
||||
},
|
||||
})
|
||||
} else {
|
||||
Dialog.confirm({
|
||||
title: '提示',
|
||||
message: res.resultMessage,
|
||||
confirmButtonColor:'#FF0000',
|
||||
showCancelButton:false
|
||||
})
|
||||
mediaDTOS: that.list,
|
||||
},
|
||||
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
||||
}
|
||||
})
|
||||
saveInformation(data).then((res) => {
|
||||
if (res.result == '0') {
|
||||
this.$toast.clear()
|
||||
if (!this.changeCard) {
|
||||
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
||||
window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
||||
window.localStorage.setItem('jumpFromSign', '')
|
||||
}
|
||||
window.localStorage.removeItem('imgfront')
|
||||
window.localStorage.removeItem('imgBackPath')
|
||||
window.localStorage.removeItem('imgfrontPath')
|
||||
window.localStorage.removeItem('imgfrontInsured')
|
||||
window.localStorage.removeItem('imgfrontInsuredPath')
|
||||
window.localStorage.removeItem('imgBackInsuredPath')
|
||||
window.localStorage.removeItem('bankCardUrl')
|
||||
window.localStorage.removeItem('bankCardUrlPath')
|
||||
window.localStorage.removeItem('bankCardUrlInsured')
|
||||
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
pullRefresh: '1',
|
||||
backToFirst: '1',
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
})
|
||||
} else {
|
||||
let thisTime = new Date().getTime()
|
||||
window.localStorage.setItem('serrorTime',thisTime)
|
||||
if (res.resultMessage.indexOf('Engine') != -1) {
|
||||
this.thisdialogshow = true
|
||||
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦~请确认并重新录入,如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为:本人、配偶、子女、父母,人工审核中,请您耐心等待哦~'
|
||||
this.thisdialogcontent = res.resultMessage.split('【Engine】')
|
||||
this.thisdialogcontent.splice(0, 1)
|
||||
} else {
|
||||
Dialog.confirm({
|
||||
title: '提示',
|
||||
message: res.resultMessage,
|
||||
confirmButtonColor: '#FF0000',
|
||||
showCancelButton: false
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
@@ -1293,4 +1393,7 @@ export default {
|
||||
.redRadioCheckbox {
|
||||
overflow: hidden;
|
||||
}
|
||||
/deep/ .van-field__label{
|
||||
width: 50vw;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -860,7 +860,7 @@ export default {
|
||||
// 长期按钮是否禁用
|
||||
this.effectiveDateTypeAble = age <= 45
|
||||
if(this.userInfo.birthday){
|
||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(age,val)
|
||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,val)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -876,9 +876,8 @@ export default {
|
||||
}
|
||||
//身份证证件类型的判断
|
||||
if (this.userInfo.idType == '1') {
|
||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
if(this.userInfo.birthday){
|
||||
this.userInfo.certificateValidate = countCredentialValidity.getStartDate(age,val)
|
||||
this.userInfo.certificateValidate = countCredentialValidity.getStartDate(this.userInfo.birthday,val)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -902,10 +901,10 @@ export default {
|
||||
this.userInfo.workcompany = this.userInfo.workcompany || '无'
|
||||
}
|
||||
if (this.userInfo.certificateValidate && !this.userInfo.certiexpiredate) {
|
||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(age,this.userInfo.certificateValidate)
|
||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,this.userInfo.certificateValidate)
|
||||
}
|
||||
if (this.userInfo.certiexpiredate && !this.userInfo.certificateValidate) {
|
||||
this.userInfo.certificateValidate = countCredentialValidity.getEndDate(age,this.userInfo.certiexpiredate)
|
||||
this.userInfo.certificateValidate = countCredentialValidity.getEndDate(this.userInfo.birthday,this.userInfo.certiexpiredate)
|
||||
}
|
||||
}
|
||||
break
|
||||
|
||||
@@ -1064,7 +1064,7 @@ export default {
|
||||
// 长期按钮是否禁用
|
||||
this.effectiveDateTypeAble = age <= 45
|
||||
if(this.userInfo.birthday){
|
||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(age,val)
|
||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,val)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1093,7 +1093,7 @@ export default {
|
||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
console.log(age)
|
||||
if(this.userInfo.birthday){
|
||||
this.userInfo.certificateValidate = countCredentialValidity.getStartDate(age,val)
|
||||
this.userInfo.certificateValidate = countCredentialValidity.getStartDate(this.userInfo.birthday,val)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1124,10 +1124,10 @@ export default {
|
||||
}
|
||||
}
|
||||
if (this.userInfo.certificateValidate && !this.userInfo.certiexpiredate) {
|
||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(age,this.userInfo.certificateValidate)
|
||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,this.userInfo.certificateValidate)
|
||||
}
|
||||
if (this.userInfo.certiexpiredate && !this.userInfo.certificateValidate) {
|
||||
this.userInfo.certificateValidate = countCredentialValidity.getEndDate(age,this.userInfo.certiexpiredate)
|
||||
this.userInfo.certificateValidate = countCredentialValidity.getEndDate(this.userInfo.birthday,this.userInfo.certiexpiredate)
|
||||
}
|
||||
}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user