修改患者

This commit is contained in:
shidongli 2024-12-31 17:01:55 +08:00
parent 9f3ec67e1b
commit 1200a83f93

View File

@ -944,7 +944,14 @@ export default {
console.log(id); console.log(id);
getPatientInfo(id).then((response) => { getPatientInfo(id).then((response) => {
this.form = response.data; this.form = response.data;
this.form = response.data; if( this.form.dischargeTime && ! this.form.visitDate){
this.form.dischargeTime = response.data.dischargeTime
}else if(this.form.visitDate && ! this.form.dischargeTime){
this.form.dischargeTime = response.data.visitDate
}else if(this.form.visitDate && this.form.dischargeTime){
this.form.dischargeTime = response.data.visitDate
}
if (this.form.hospitalAgencyId) { if (this.form.hospitalAgencyId) {
this.changehospitalAgency(this.form.hospitalAgencyId, 1, 2); this.changehospitalAgency(this.form.hospitalAgencyId, 1, 2);
} }