被保险人年龄18岁判断修改数据来源字段

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-06-27 15:00:38 +08:00
parent cba9255b07
commit 5b251ee950

View File

@@ -297,9 +297,9 @@
</template>
<script>
// import UploadImageFile from '@/components/ebiz/sale/UploadImageFile'
import { Field, Cell, CellGroup, Collapse, CollapseItem, Dialog, NoticeBar } from 'vant'
import {
// import UploadImageFile from '@/components/ebiz/sale/UploadImageFile'
import { Field, Cell, CellGroup, Collapse, CollapseItem, Dialog, NoticeBar } from 'vant'
import {
underWrite,
getOrderDetail,
getSignInvalid,
@@ -309,15 +309,15 @@ import {
getRecognitionUrl,
getRecognitionResult,
saveCustomerRid
} from '@/api/ebiz/sale/sale'
import { getAgentInfo } from '@/api/ebiz/my/my.js'
import { checkPhone } from '@/api/ebiz/customer/customer'
import { weixinShare } from '@/assets/js/utils/wxShare.js'
import IndexBar from '@/components/ebiz/sale/IndexBar'
import Formatter from '@/assets/js/utils/date-utils.js'
import { getWhitelist } from '@/api/ebiz/whitelist'
} from '@/api/ebiz/sale/sale'
import { getAgentInfo } from '@/api/ebiz/my/my.js'
import { checkPhone } from '@/api/ebiz/customer/customer'
import { weixinShare } from '@/assets/js/utils/wxShare.js'
import IndexBar from '@/components/ebiz/sale/IndexBar'
import Formatter from '@/assets/js/utils/date-utils.js'
import { getWhitelist } from '@/api/ebiz/whitelist'
export default {
export default {
data() {
let isWeixin = this.$utils.device().isWeixin //判断环境
return {
@@ -796,9 +796,10 @@ export default {
} else {
window.localStorage.setItem('sign-val', val)
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
let thismysaleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
let thismyage = thismysaleInsuredPersonInfo.age?thismysaleInsuredPersonInfo.age:thismysaleInsuredPersonInfo.insuredAge
if (
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '1' ||
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age < '18'
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '1' || thismyage < '18'
) {
that.insuredUrl()
} else {
@@ -897,7 +898,8 @@ export default {
} else {
window.localStorage.setItem('sign-val', val)
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
if (this.saleInsuredPersonInfo.idType != '1' || this.saleInsuredPersonInfo.age < '18') {
let thismyage = this.saleInsuredPersonInfo.age?this.saleInsuredPersonInfo.age:this.saleInsuredPersonInfo.insuredAge
if (this.saleInsuredPersonInfo.idType != '1' || this.saleInsuredPersonInfo.thismyage < '18') {
that.insuredUrl()
} else {
//RID 状态--有效
@@ -1510,6 +1512,7 @@ export default {
this.$utils.intLocalStorage(res)
// 获取被保险人信息recmd
this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
this.saleInsuredPersonInfo.age = this.saleInsuredPersonInfo.age?this.saleInsuredPersonInfo.age:this.saleInsuredPersonInfo.insuredAge
// 获取投保人信息
this.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保险人关系赋值给页面
@@ -1927,21 +1930,21 @@ export default {
document.body.style.backgroundColor = ''
next()
}
}
}
</script>
<style lang="scss" scoped>
@import '@/assets/sass/variables.scss';
.text {
@import '@/assets/sass/variables.scss';
.text {
color: #4a90e2;
}
.start {
}
.start {
color: #4fc6b3;
}
.tips {
}
.tips {
line-height: 30px;
}
.tips {
}
.tips {
line-height: 30px;
}
}
</style>