This commit is contained in:
2024-04-19 13:50:40 +08:00
parent 160ac410a4
commit 1c5f1363b3
8 changed files with 11 additions and 11 deletions

View File

@ -463,7 +463,7 @@ export default {
})
},
changetaskSubdivision(code, type) {
this.form.taskSubdivisionName = this.taskPartitionList?.find(e => e.taskPartitionCode == code).taskPartitionName
this.form.taskSubdivisionName = this.taskPartitionList?.find(e => e.taskPartitionCode == code)?.taskPartitionName
this.taskPartitionList.forEach(el => {
if (code == el.taskPartitionCode) {
this.form.executionTime = el.executionTime

View File

@ -298,7 +298,7 @@ export default {
},
uploadsave() {
if (this.signPackage.healthManageId && this.attendingPhysicianlist?.length > 0) {
this.signPackage.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.signPackage.healthManageId).nickName
this.signPackage.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.signPackage.healthManageId)?.nickName
}
this.form.signPackage = this.signPackage
addsign(this.form).then(res => {

View File

@ -260,10 +260,10 @@ export default {
},
uploadsave() {
if (this.signPackage.servicePackageId && this.packagelist?.length > 0) {
this.signPackage.packageName = this.packagelist.find(e => e.id == this.signPackage.servicePackageId).packageName
this.signPackage.packageName = this.packagelist.find(e => e.id == this.signPackage.servicePackageId)?.packageName
}
if (this.form.record.healthManageId && this.attendingPhysicianlist?.length > 0) {
this.form.record.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.form.record.healthManageId).nickName
this.form.record.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.form.record.healthManageId)?.nickName
}
this.form.signPackage = this.signPackage
this.form.route = this.route

View File

@ -641,7 +641,7 @@ export default {
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
this.form.certificateIssuingDoctorName = this.form_attendingPhysicianlist.find(e => e.userId == this.form.certificateIssuingDoctorId)?.nickName
}
this.$refs["form"].validate(valid => {
if (valid) {

View File

@ -674,7 +674,7 @@ export default {
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
this.form.attendingPhysicianName = this.form_attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId)?.nickName
}
this.$refs["form"].validate(valid => {
if (valid) {

View File

@ -614,7 +614,7 @@ export default {
methods: {
addsignupload() {
if (this.addsignform.billingDoctorId && this.addsignattendingPhysicianlist?.length > 0) {
this.addsignform.billingDoctorName = this.addsignattendingPhysicianlist.find(e => e.userId == this.addsignform.billingDoctorId).nickName
this.addsignform.billingDoctorName = this.addsignattendingPhysicianlist.find(e => e.userId == this.addsignform.billingDoctorId)?.nickName
}
intentionalSign(this.addsignform).then(res => {
this.$modal.msgSuccess("意向签约成功");
@ -794,7 +794,7 @@ export default {
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
this.form.attendingPhysicianName = this.form_attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId)?.nickName
}
this.$refs["form"].validate(valid => {
if (valid) {

View File

@ -196,7 +196,7 @@ export default {
this.classificationform.diseaseTypeName = ''
},
changedepartment(e) {
this.classificationform.departmentName = this.departmentlist?.find(el => el.id == e).departmentName
this.classificationform.departmentName = this.departmentlist?.find(el => el.id == e)?.departmentName
let query = {
departmentId: e
}
@ -207,7 +207,7 @@ export default {
})
},
changediseaseType(e) {
this.classificationform.diseaseTypeName = this.diseaselist?.find(el => el.id == e).diseaseTypeName
this.classificationform.diseaseTypeName = this.diseaselist?.find(el => el.id == e)?.diseaseTypeName
},
//
switchstatus(e, item) {

View File

@ -535,7 +535,7 @@ export default {
},
//
changetaskSubdivision(code, type) {
this.form.taskSubdivisionName = this.taskPartitionList?.find(e => e.taskPartitionCode == code).taskPartitionName
this.form.taskSubdivisionName = this.taskPartitionList?.find(e => e.taskPartitionCode == code)?.taskPartitionName
this.taskPartitionList.forEach(el => {
if (code == el.taskPartitionCode) {
this.form.executionTime = el.executionTime