mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 04:46:43 +08:00
bug501 551
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user