BUG优化 人员类型不显示

dev
xiepeng 2024-05-23 15:57:05 +08:00
parent ad35c2cf4c
commit 6c6086a63d
1 changed files with 10 additions and 8 deletions

View File

@ -741,14 +741,16 @@ const router = useRouter();
const { USER_ID } = route.query;
const fnHasEmail = async (rule, value, callback) => {
if (value) {
try {
await getVerifyDuplicateEmail({
const result = await getVerifyDuplicateEmail({
EMAIL: value,
PHONE: data.form.PHONE,
PHONE: data.form.PHONE
});
if(USER_ID) {
if(result.pd) {
if(result.pd.EMAIL === value && result.pd.PHONE === data.form.PHONE) {
callback();
} catch {
callback(new Error("邮箱重复"));
}else callback(new Error("邮箱重复"))
}else callback();
}
} else {
callback();