提交性别判断问题

This commit is contained in:
皮伟
2019-11-09 15:12:53 +08:00
parent 14eda3fd10
commit 2eae98e9d9
3 changed files with 26 additions and 6 deletions

View File

@@ -586,6 +586,8 @@ export default {
this.effectiveDateTypeAble = age <= 45
//数据是否从客户列表拉取
this.fromCustomer = true
this.getRelatedData(this.userInfo.idNo)
},
nextStep() {
// 计算年龄

View File

@@ -699,6 +699,8 @@ export default {
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
// 长期按钮是否禁用
this.effectiveDateTypeAble = age <= 45
this.getRelatedData(this.userInfo.idNo)
},
nextStep() {
@@ -1097,6 +1099,18 @@ export default {
this.countDown = 60
this.codeDisabled = false
}
// watch: {
// 'userInfo.idNo': {
// handler(newName, oldName) {
// // console.log('obj.a changed');
// if(newName != oldName) {
// this.getRelatedData(this.userInfo.idNo)
// }
// },
// immediate: true,
// deep: true
// }
// }
}
</script>
<style lang="scss" scoped>

View File

@@ -1016,6 +1016,7 @@ export default {
this.effectiveDateTypeAble = age <= 45
//数据是否从客户列表拉取
this.fromCustomer = true
this.getRelatedData(this.userInfo.idNo)
},
//下一步
nextStep() {
@@ -1448,12 +1449,15 @@ export default {
this.codeDisabled = false
}
// watch: {
// 'userInfo.effectiveDateType'(newVal, oldVal) {
// console.log(newVal)
// if (newVal == 'true' || newVal == true) {
// this.userInfo.certiexpiredate = ''
// this.$refs.certiexpiredate.date = ''
// }
// 'userInfo.idNo': {
// handler(newName, oldName) {
// // console.log('obj.a changed');
// if(newName != oldName) {
// this.getRelatedData(this.userInfo.idNo)
// }
// },
// immediate: true,
// deep: true
// }
// }
}