|
|
|
@ -138,7 +138,7 @@ |
|
|
|
<el-radio label="1">是</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="失业登记时间" prop="unemploymentRegisterTime" v-if="dataForm.employmentStatus === '1'"> |
|
|
|
<el-form-item label="失业登记时间" prop="unemploymentRegisterTime" v-if="dataForm.employmentStatus === '1' && dataForm.unemploymentRegister === '1'"> |
|
|
|
<el-date-picker |
|
|
|
v-model="dataForm.unemploymentRegisterTime" |
|
|
|
type="date" |
|
|
|
@ -302,9 +302,6 @@ export default { |
|
|
|
motorVehicleNum: [ |
|
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
|
], |
|
|
|
motorVehicleCategory: [ |
|
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
|
], |
|
|
|
dogStatus: [ |
|
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
|
] |
|
|
|
@ -487,11 +484,19 @@ export default { |
|
|
|
} |
|
|
|
if (this.dataForm.employmentStatus === '1') { |
|
|
|
if (this.dataForm.unemploymentReason === '' || this.dataForm.unemploymentRegister === '' || |
|
|
|
this.dataForm.reemploymentPermit === '' || this.dataForm.unemploymentRegisterTime === '' || |
|
|
|
this.dataForm.reemploymentPermit === '' || |
|
|
|
this.dataForm.unemploymentReason === null || this.dataForm.unemploymentRegister === null || |
|
|
|
this.dataForm.reemploymentPermit === null || this.dataForm.unemploymentRegisterTime === null) { |
|
|
|
this.dataForm.reemploymentPermit === null) { |
|
|
|
return this.$message.error('请填写详细失业信息!') |
|
|
|
} |
|
|
|
if (this.dataForm.unemploymentRegister === '1') { |
|
|
|
if (this.dataForm.unemploymentRegisterTime === '' || this.dataForm.unemploymentRegisterTime === null) { |
|
|
|
return this.$message.error('请填写失业登记时间') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.dataForm.motorVehicleNum !== 0 && (this.dataForm.motorVehicleCategory === '' || this.dataForm.motorVehicleCategory === null)) { |
|
|
|
return this.$message.error('请选择机动车类型') |
|
|
|
} |
|
|
|
this.dataForm.isSubmit = '0' |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/app-user/populationinformation/', this.dataForm).then(({ data: res }) => { |
|
|
|
|