mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 11:52:52 +08:00
Merge branch 'hotfix/投被同人无法填写手机号' into dev
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
:parentShowPicker.sync="customerShowPicker"
|
||||
@nameChange="nameChange"
|
||||
@on-click="selectClick('1')"
|
||||
:readonly="isInsured"
|
||||
:readonly="isInsured && nameLimit"
|
||||
></customer-picker>
|
||||
<van-field
|
||||
:value="userInfo.idType | idToText('idType')"
|
||||
@@ -48,7 +48,7 @@
|
||||
placeholder="请输入"
|
||||
maxlength="18"
|
||||
clearable
|
||||
:readonly="isInsured"
|
||||
:readonly="isInsured && idNoLimit"
|
||||
v-validate="'required'"
|
||||
@blur="getRelatedData(userInfo.idNo)"
|
||||
></van-field>
|
||||
@@ -62,7 +62,7 @@
|
||||
:flag="true"
|
||||
@confirm="onDateConfirm($event, '2')"
|
||||
ref="birthday"
|
||||
:readonly="isInsured"
|
||||
:readonly="isInsured && birthdayLimit"
|
||||
></FieldDatePicter>
|
||||
<!-- <FieldDatePicter
|
||||
v-validate="'required'"
|
||||
@@ -98,7 +98,7 @@
|
||||
required
|
||||
label="性别"
|
||||
:value.sync="userInfo.sex"
|
||||
:disabled="isInsured"
|
||||
:disabled="isInsured && sexLimit"
|
||||
v-validate="'required'"
|
||||
name="性别"
|
||||
></select-radio>
|
||||
@@ -156,7 +156,7 @@
|
||||
placeholder="请输入"
|
||||
v-validate="'required|mobile'"
|
||||
maxlength="11"
|
||||
:readonly="isInsured"
|
||||
:readonly="isInsured && mobileLimit"
|
||||
/>
|
||||
<!-- <van-field
|
||||
v-model="areaName"
|
||||
@@ -269,6 +269,11 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
nameLimit: false,
|
||||
idNoLimit: false,
|
||||
birthdayLimit: false,
|
||||
sexLimit: false,
|
||||
mobileLimit: false,
|
||||
isAreaListShow: false,
|
||||
province: '',
|
||||
city: '',
|
||||
@@ -949,7 +954,6 @@ export default {
|
||||
},
|
||||
//勾选投保人
|
||||
asAppntAddress(val) {
|
||||
console.log(val)
|
||||
if (val) {
|
||||
if (this.saleInsuredPersonInfo.relationToAppnt == '2') {
|
||||
;[this.userInfo.relationToInsured, this.relationToAppnt] = ['2', '配偶']
|
||||
@@ -962,15 +966,20 @@ export default {
|
||||
this.isInsured = true
|
||||
let insuredDetail = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
|
||||
this.userInfo.name = insuredDetail.name //姓名
|
||||
this.nameLimit = Boolean(insuredDetail.name)
|
||||
this.userInfo.sex = insuredDetail.sex //性别
|
||||
this.sexLimit = Boolean(insuredDetail.sex)
|
||||
this.userInfo.nativeplace = insuredDetail.nativeplace //国家地区
|
||||
this.userInfo.birthday = insuredDetail.birthday //出生日期
|
||||
this.birthdayLimit = Boolean(insuredDetail.birthday)
|
||||
this.userInfo.idType = insuredDetail.idType //证件类型
|
||||
this.userInfo.idNo = insuredDetail.idNo //证件号码
|
||||
this.idNoLimit = Boolean(insuredDetail.idNo)
|
||||
this.userInfo.certificateValidate = insuredDetail.certificateValidate //证件起始日期
|
||||
this.userInfo.certiexpiredate = insuredDetail.certiexpiredate == '9999-01-01' ? '' : insuredDetail.certiexpiredate //证件截止日期
|
||||
this.userInfo.effectiveDateType = insuredDetail.certiexpiredate == '9999-01-01' //是否长期
|
||||
this.userInfo.mobile = insuredDetail.mobile
|
||||
this.mobileLimit = Boolean(insuredDetail.mobile)
|
||||
let age = utilsAge.getAge(insuredDetail.birthday, new Date())
|
||||
this.effectiveDateTypeAble = age <= 45
|
||||
if (age > 45) {
|
||||
|
||||
Reference in New Issue
Block a user