diff --git a/src/views/manage/preHospitalized/index.vue b/src/views/manage/preHospitalized/index.vue index 393be0c..81c9261 100644 --- a/src/views/manage/preHospitalized/index.vue +++ b/src/views/manage/preHospitalized/index.vue @@ -629,16 +629,16 @@ export default { /** 提交按钮 */ submitForm() { if (this.form.hospitalAgencyId && this.hospitalAgencylist?.length > 0) { - this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId).agencyName + this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId)?.agencyName } if (this.form.campusAgencyId && this.form_campusAgencylist?.length > 0) { - this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId).agencyName + this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId)?.agencyName } if (this.form.departmentId && this.form_departmentlist?.length > 0) { - this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId).departmentName + this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName } if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) { - this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId).departmentName + this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName } if (this.form.certificateIssuingDoctorId && this.form_attendingPhysicianlist?.length > 0) { this.form.certificateIssuingDoctorName = this.form_attendingPhysicianlist.find(e => e.userId == this.form.certificateIssuingDoctorId).nickName diff --git a/src/views/manage/visitin/index.vue b/src/views/manage/visitin/index.vue index 15c468f..2600377 100644 --- a/src/views/manage/visitin/index.vue +++ b/src/views/manage/visitin/index.vue @@ -662,16 +662,16 @@ export default { /** 提交按钮 */ submitForm() { if (this.form.hospitalAgencyId && this.hospitalAgencylist?.length > 0) { - this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId).agencyName + this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId)?.agencyName } if (this.form.campusAgencyId && this.form_campusAgencylist?.length > 0) { - this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId).agencyName + this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId)?.agencyName } if (this.form.departmentId && this.form_departmentlist?.length > 0) { - this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId).departmentName + this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName } if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) { - this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId).departmentName + this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName } if (this.form.attendingPhysicianId && this.form_attendingPhysicianlist?.length > 0) { this.form.attendingPhysicianName = this.form_attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId).nickName diff --git a/src/views/manage/visitout/index.vue b/src/views/manage/visitout/index.vue index bdf5fad..bfa6572 100644 --- a/src/views/manage/visitout/index.vue +++ b/src/views/manage/visitout/index.vue @@ -664,7 +664,6 @@ export default { getList() { this.loading = true; this.queryParams.patientType = 'OUTPATIENT_DISCHARGE' - console.log(this.queryParams) listPatientInfo(this.queryParams).then(response => { response.rows.forEach(e => { e.birthDate ? e.age = getAge(e.birthDate) : '' @@ -783,16 +782,16 @@ export default { this.form.patientType = 'OUTPATIENT' } if (this.form.hospitalAgencyId && this.hospitalAgencylist?.length > 0) { - this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId).agencyName + this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId)?.agencyName } if (this.form.campusAgencyId && this.form_campusAgencylist?.length > 0) { - this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId).agencyName + this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId)?.agencyName } if (this.form.departmentId && this.form_departmentlist?.length > 0) { - this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId).departmentName + this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName } if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) { - this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId).departmentName + this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName } if (this.form.attendingPhysicianId && this.form_attendingPhysicianlist?.length > 0) { this.form.attendingPhysicianName = this.form_attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId).nickName diff --git a/src/views/system/specialDiseaseRoute/index.vue b/src/views/system/specialDiseaseRoute/index.vue index 14a2304..9596397 100644 --- a/src/views/system/specialDiseaseRoute/index.vue +++ b/src/views/system/specialDiseaseRoute/index.vue @@ -395,10 +395,10 @@ export default { /** 提交按钮 */ submitForm() { if (this.form.departmentId && this.adddepartmentlist?.length > 0) { - this.form.departmentName = this.adddepartmentlist.find(e => e.id == this.form.departmentId).departmentName + this.form.departmentName = this.adddepartmentlist.find(e => e.id == this.form.departmentId)?.departmentName } if (this.form.diseaseTypeId && this.adddiseaselist?.length > 0) { - this.form.diseaseTypeName = this.adddiseaselist.find(e => e.id == this.form.diseaseTypeId).diseaseTypeName + this.form.diseaseTypeName = this.adddiseaselist.find(e => e.id == this.form.diseaseTypeId)?.diseaseTypeName } if (this.form.servicePackageId?.length > 0 && this.addpackagelist?.length > 0) { let routePackageList = [] diff --git a/src/views/unitconfig/PatientConfigurationVisitRecords/index.vue b/src/views/unitconfig/PatientConfigurationVisitRecords/index.vue index bd6e8ec..facef61 100644 --- a/src/views/unitconfig/PatientConfigurationVisitRecords/index.vue +++ b/src/views/unitconfig/PatientConfigurationVisitRecords/index.vue @@ -206,10 +206,10 @@ export default { // 保存新增 submitForm() { if (this.form.departmentId && this.departmentlist?.length > 0) { - this.form.departmentName = this.departmentlist.find(e => e.id == this.form.departmentId).departmentName + this.form.departmentName = this.departmentlist.find(e => e.id == this.form.departmentId)?.departmentName } if (this.form.attendingPhysicianId && this.attendingPhysicianlist?.length > 0) { - this.form.attendingPhysicianName = this.attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId).nickName + this.form.attendingPhysicianName = this.attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId)?.nickName } if (this.form.id) { updateVisitRecord(this.form).then(res => {