婚姻状况校验

This commit is contained in:
mengxiaolong
2020-11-06 21:57:27 +08:00
parent cf63e5fa34
commit 4e28071edc

View File

@@ -93,7 +93,15 @@
<div class="border-bt relative fs14 p10 flex align-center">
<van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
</div>
<select-radio :radios="sexRadio" required label="性别" :value.sync="userInfo.sex" :disabled="isInsured"></select-radio>
<select-radio
:radios="sexRadio"
required
label="性别"
:value.sync="userInfo.sex"
:disabled="isInsured"
v-validate="'required'"
name="性别"
></select-radio>
<van-field
:value="userInfo.marriageStatus"
readonly
@@ -628,7 +636,7 @@ export default {
})
this.userInfo.name = data.customerName //用户名
if (data.dacustomerSex == null) {
this.userInfo.sex = ''
this.userInfo.sex = null
} else {
this.userInfo.sex = String(data.customerSex) //性别
}
@@ -636,7 +644,7 @@ export default {
this.userInfo.birthday = data.birthday //出生日期
this.userInfo.idType = data.customerIdType //证件类型
this.userInfo.idNo = data.customerIdNumber //证件号码
this.userInfo.marriageStatus = data.marryStatus === '1' ? '已婚' : '单身'
this.userInfo.marriageStatus = data.marryStatus === '1' ? '已婚' : data.marryStatus === '2' ? '单身' : null
this.userInfo.marriage = data.marryStatus
this.userInfo.village = data.homeAddress
this.userInfo.mobile = data.customerPhone