BUG 27815
This commit is contained in:
@@ -151,10 +151,10 @@ export default {
|
|||||||
}
|
}
|
||||||
let flag = [baseInfo, contract, household, extra].flat().reverse().some(e => {
|
let flag = [baseInfo, contract, household, extra].flat().reverse().some(e => {
|
||||||
if (e.required && !this.form[e.prop]) {
|
if (e.required && !this.form[e.prop]) {
|
||||||
if (!e.dict && (['textarea', 'idNumber'].includes(e.type) || !e.type)) 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)
|
else return this.$u.toast("请选择" + e.label) || true
|
||||||
} else if (e.type == 'idNumber' && !this.$idCardNoUtil.checkIdCardNo(this.form[e.prop])) {
|
} else if (e.type == 'idNumber' && !this.$idCardNoUtil.checkIdCardNo(this.form[e.prop])) {
|
||||||
return this.$u.toast("请输入正确的身份证号")
|
return this.$u.toast("请输入正确的身份证号") || true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (!flag) {
|
if (!flag) {
|
||||||
|
|||||||
Reference in New Issue
Block a user