mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 10:36:45 +08:00
bug501 551
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
</van-field>
|
</van-field>
|
||||||
|
|
||||||
<FieldDatePicter
|
<FieldDatePicter
|
||||||
:v-validate="{ required: certiexpiredateRequired }"
|
v-validate="certiexpiredateRequired ? 'required' : ''"
|
||||||
required
|
required
|
||||||
label="证件截止日期"
|
label="证件截止日期"
|
||||||
name="证件截止日期"
|
name="证件截止日期"
|
||||||
@@ -209,7 +209,7 @@ export default {
|
|||||||
occupationShowPicker: false,
|
occupationShowPicker: false,
|
||||||
certiexpiredateRequired: true, //证件截止日期是否需要校验
|
certiexpiredateRequired: true, //证件截止日期是否需要校验
|
||||||
effectiveDateType: false, //是否长期
|
effectiveDateType: false, //是否长期
|
||||||
effectiveDateTypeAble: true, // 长期是否禁用
|
effectiveDateTypeAble: false, // 长期是否禁用
|
||||||
currentPopupIndex: '',
|
currentPopupIndex: '',
|
||||||
areaList: areaList, //省市区数据
|
areaList: areaList, //省市区数据
|
||||||
areaName: '', //联系地址
|
areaName: '', //联系地址
|
||||||
@@ -274,6 +274,13 @@ export default {
|
|||||||
},
|
},
|
||||||
//校验证件截止日期
|
//校验证件截止日期
|
||||||
onEndDateConfirm(val, type) {
|
onEndDateConfirm(val, type) {
|
||||||
|
//如果已经勾选了长期
|
||||||
|
if (this.userInfo.effectiveDateType) {
|
||||||
|
//清空数据并返回
|
||||||
|
this.userInfo.certiTypeEndDate = ''
|
||||||
|
this.$refs.certiTypeEndDate.date = ''
|
||||||
|
return
|
||||||
|
}
|
||||||
if (Date.parse(val) < Date.parse(new Date())) {
|
if (Date.parse(val) < Date.parse(new Date())) {
|
||||||
this.userInfo.certiTypeEndDate = ''
|
this.userInfo.certiTypeEndDate = ''
|
||||||
this.$refs.certiTypeEndDate.date = ''
|
this.$refs.certiTypeEndDate.date = ''
|
||||||
@@ -485,6 +492,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
nextStep() {
|
nextStep() {
|
||||||
|
console.log('this.certiexpiredateRequired ~~== ', this.certiexpiredateRequired)
|
||||||
//表单校验, 成功跳转
|
//表单校验, 成功跳转
|
||||||
this.$validator.validate().then(valid => {
|
this.$validator.validate().then(valid => {
|
||||||
if (true === valid) {
|
if (true === valid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user