diff --git a/src/components/itemSet/ReferenceRange.vue b/src/components/itemSet/ReferenceRange.vue index d0c171a..4002e16 100644 --- a/src/components/itemSet/ReferenceRange.vue +++ b/src/components/itemSet/ReferenceRange.vue @@ -289,8 +289,8 @@ export default { // 新增或者编辑需要的类别 addtoedit() { - //性别 - getapi("/api/app/sex").then((res) => { + //适用性别 + getapi("/api/app/for-sex").then((res) => { this.forSexId = res.data; }); //诊断 diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 39d0832..590ed76 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -1476,7 +1476,7 @@ export default { this.refreshRegister(Object.assign({},res.data)) //一般读身份证照片时,会出现这种情况 - if (this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(res.data.id, this.patientRegister.photo); + if (this.patientRegister.photo && this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(res.data.id, this.patientRegister.photo); } } ); @@ -1823,7 +1823,7 @@ export default { if (res.code != -1) { console.log("操作成功"); //一般读身份证照片时,会出现这种情况 - if (this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(this.form.id, this.patientRegister.photo); + if (this.patientRegister.photo && this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(this.form.id, this.patientRegister.photo); objCopy(this.form, this.patientRegister.patientRegisterRd); this.refreshRegister(Object.assign({},this.form)) diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index dd1697f..3539ba4 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -6,7 +6,7 @@ " @contextmenu.prevent="onContextmenu" > -
+