diff --git a/src/views/enterprise_management/user_practitioner/choiceadd.vue b/src/views/enterprise_management/user_practitioner/choiceadd.vue index 55172c5..922e322 100644 --- a/src/views/enterprise_management/user_practitioner/choiceadd.vue +++ b/src/views/enterprise_management/user_practitioner/choiceadd.vue @@ -766,10 +766,7 @@ import { } from "@/assets/js/data_dictionary.js"; import { ElMessageBox, ElMessage } from "element-plus"; import { debounce } from "throttle-debounce"; -import { - getVerifyDeduplicationUserIdCard, - getVerifyDuplicateEmail, -} from "@/request/api.js"; +import { getVerifyDuplicateEmail } from "@/request/api.js"; import useFormValidate from "@/assets/js/useFormValidate.js"; import { getPractitionerForEdit, @@ -798,29 +795,8 @@ const fnHasEmail = async (rule, value, callback) => { callback(); } }; -const fnHasUserIdCard = async (rule, value, callback) => { - if (value) { - const resData = await getVerifyDeduplicationUserIdCard({ - USER_ID_CARD: value, - VERIFYUSER_ID: data.form.USER_ID, - }); - if (resData?.pd?.USER_ID) callback(new Error("身份证号重复")); - else callback(); - } else { - callback(); - } -}; + const rules = { - USER_ID_CARD: [ - { required: true, message: "身份证号不能为空", trigger: "blur" }, - { - pattern: - /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[0-2])(([0-2][1-9])|10|20|30|31)\d{3}(\d|X|x)$/, - message: "请输入正确的身份证号", - trigger: "blur", - }, - { validator: fnHasUserIdCard, trigger: "blur" }, - ], NAME: [{ required: true, message: "姓名不能为空", trigger: "blur" }], PHONE: [ { required: true, message: "请输入手机号码", trigger: "blur" }, diff --git a/src/views/enterprise_management/user_practitioner/components/select_person.vue b/src/views/enterprise_management/user_practitioner/components/select_person.vue index 5b5107a..7982bb5 100644 --- a/src/views/enterprise_management/user_practitioner/components/select_person.vue +++ b/src/views/enterprise_management/user_practitioner/components/select_person.vue @@ -34,6 +34,7 @@ + -