This commit is contained in:
2024-04-19 13:45:05 +08:00
parent 4c9e0c891d
commit 160ac410a4
5 changed files with 16 additions and 17 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 = []

View File

@ -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 => {