修改
This commit is contained in:
parent
4c9e0c891d
commit
160ac410a4
@ -629,16 +629,16 @@ export default {
|
|||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
if (this.form.hospitalAgencyId && this.hospitalAgencylist?.length > 0) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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
|
||||||
|
|||||||
@ -662,16 +662,16 @@ export default {
|
|||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
if (this.form.hospitalAgencyId && this.hospitalAgencylist?.length > 0) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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
|
||||||
|
|||||||
@ -664,7 +664,6 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.queryParams.patientType = 'OUTPATIENT_DISCHARGE'
|
this.queryParams.patientType = 'OUTPATIENT_DISCHARGE'
|
||||||
console.log(this.queryParams)
|
|
||||||
listPatientInfo(this.queryParams).then(response => {
|
listPatientInfo(this.queryParams).then(response => {
|
||||||
response.rows.forEach(e => {
|
response.rows.forEach(e => {
|
||||||
e.birthDate ? e.age = getAge(e.birthDate) : ''
|
e.birthDate ? e.age = getAge(e.birthDate) : ''
|
||||||
@ -783,16 +782,16 @@ export default {
|
|||||||
this.form.patientType = 'OUTPATIENT'
|
this.form.patientType = 'OUTPATIENT'
|
||||||
}
|
}
|
||||||
if (this.form.hospitalAgencyId && this.hospitalAgencylist?.length > 0) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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
|
||||||
|
|||||||
@ -395,10 +395,10 @@ export default {
|
|||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
if (this.form.departmentId && this.adddepartmentlist?.length > 0) {
|
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) {
|
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) {
|
if (this.form.servicePackageId?.length > 0 && this.addpackagelist?.length > 0) {
|
||||||
let routePackageList = []
|
let routePackageList = []
|
||||||
|
|||||||
@ -206,10 +206,10 @@ export default {
|
|||||||
// 保存新增
|
// 保存新增
|
||||||
submitForm() {
|
submitForm() {
|
||||||
if (this.form.departmentId && this.departmentlist?.length > 0) {
|
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) {
|
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) {
|
if (this.form.id) {
|
||||||
updateVisitRecord(this.form).then(res => {
|
updateVisitRecord(this.form).then(res => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user