| | |
| | | // 表单数据 |
| | | const form = ref({ |
| | | caseNo: "", |
| | | treatmenthospitalname: userStore.userInfo.user.orgName, |
| | | toHospital: userStore.userInfo.user.orgName, |
| | | coordinatorName: userStore.userInfo.user.coordinatorName, |
| | | coordinatorNo: userStore.userInfo.user.coordinatorNo, |
| | | treatmenthospitalname: "", |
| | | toHospital: "", |
| | | coordinatorName: "", |
| | | coordinatorNo: "", |
| | | treatmentdeptname: "", |
| | | name: "", |
| | | nation: "", |
| | |
| | | diagnosisname: "", |
| | | bloodType: "", |
| | | rhYin: "", |
| | | infoName: userStore.userInfo.user.nickName, |
| | | phone: userStore.userInfo.user.phonenumber, |
| | | reportername: userStore.name || "", |
| | | reporterno: userStore.userId || "", |
| | | infoName: "", |
| | | phone: "", |
| | | reportername: "", |
| | | reporterno: "", |
| | | reporterphone: "", // 报告者联系电话 |
| | | reporttime: "", |
| | | contactperson: "", // 新增:联系人(协调员) |
| | |
| | | idCardError.value = "身份证号码必须是18位"; |
| | | return false; |
| | | } |
| | | console.log(1); |
| | | |
| | | // 验证前17位必须是数字 |
| | | const reg = /^\d{17}(\d|X|x)$/; |
| | |
| | | idCardError.value = "身份证号码格式不正确"; |
| | | return false; |
| | | } |
| | | console.log(2); |
| | | |
| | | // 验证出生日期 |
| | | const birthStr = idCard.substring(6, 14); |
| | | const year = birthStr.substring(0, 4); |
| | |
| | | isEditMode.value = false; |
| | | generateDonorNo(); |
| | | } |
| | | console.log(userStore.userInfo, "userStoreuserInfo"); |
| | | |
| | | if (!userStore.userInfo) { |
| | | await userStore.refreshUserInfo(); |
| | | } |
| | | form.value.treatmenthospitalname = userStore.userInfo.orgName; |
| | | form.value.toHospital = userStore.userInfo.orgName; |
| | | form.value.coordinatorName = userStore.userInfo.coordinatorName; |
| | | form.value.coordinatorNo = userStore.userInfo.coordinatorNo; |
| | | form.value.infoName = userStore.userInfo.nickName; |
| | | form.value.phone = userStore.userInfo.phonenumber; |
| | | form.value.reportername = userStore.userInfo.name; |
| | | form.value.reporterno = userStore.userInfo.userId; |
| | | // 获取字典数据 |
| | | dict.value = await useDict( |
| | | "sys_IDType", |