bug501 551

This commit is contained in:
lihaoda
2020-02-06 15:32:46 +08:00
parent b8a413963f
commit 7837f13856

View File

@@ -58,7 +58,7 @@
</van-field>
<FieldDatePicter
:v-validate="{ required: certiexpiredateRequired }"
v-validate="certiexpiredateRequired ? 'required' : ''"
required
label="证件截止日期"
name="证件截止日期"
@@ -209,7 +209,7 @@ export default {
occupationShowPicker: false,
certiexpiredateRequired: true, //证件截止日期是否需要校验
effectiveDateType: false, //是否长期
effectiveDateTypeAble: true, // 长期是否禁用
effectiveDateTypeAble: false, // 长期是否禁用
currentPopupIndex: '',
areaList: areaList, //省市区数据
areaName: '', //联系地址
@@ -274,6 +274,13 @@ export default {
},
//校验证件截止日期
onEndDateConfirm(val, type) {
//如果已经勾选了长期
if (this.userInfo.effectiveDateType) {
//清空数据并返回
this.userInfo.certiTypeEndDate = ''
this.$refs.certiTypeEndDate.date = ''
return
}
if (Date.parse(val) < Date.parse(new Date())) {
this.userInfo.certiTypeEndDate = ''
this.$refs.certiTypeEndDate.date = ''
@@ -485,6 +492,7 @@ export default {
}
},
nextStep() {
console.log('this.certiexpiredateRequired ~~== ', this.certiexpiredateRequired)
//表单校验, 成功跳转
this.$validator.validate().then(valid => {
if (true === valid) {