BUG 27815

This commit is contained in:
aixianling
2022-03-03 17:58:56 +08:00
parent 15d15ae659
commit ada192fa67

View File

@@ -151,10 +151,10 @@ export default {
}
let flag = [baseInfo, contract, household, extra].flat().reverse().some(e => {
if (e.required && !this.form[e.prop]) {
if (!e.dict && (['textarea', 'idNumber'].includes(e.type) || !e.type)) return this.$u.toast("请输入" + e.label)
else return this.$u.toast("请选择" + e.label)
if (!e.dict && (['textarea', 'idNumber'].includes(e.type) || !e.type)) return this.$u.toast("请输入" + e.label) || true
else return this.$u.toast("请选择" + e.label) || true
} else if (e.type == 'idNumber' && !this.$idCardNoUtil.checkIdCardNo(this.form[e.prop])) {
return this.$u.toast("请输入正确的身份证号")
return this.$u.toast("请输入正确的身份证号") || true
}
})
if (!flag) {