|
|
|
@ -103,14 +103,13 @@ export default { |
|
|
|
nationId: '', //民族 |
|
|
|
mobileTelephone: '', //手机 |
|
|
|
}, |
|
|
|
prBaseInit: {}, |
|
|
|
prBaseInit:{}, |
|
|
|
PatientRegisterForChooseParams: {}, // 参数 |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
this.prBaseInit = Object.assign({}, this.prBase) |
|
|
|
this.prBaseInit = deepCopy(this.prBase) |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
@ -129,13 +128,12 @@ export default { |
|
|
|
...mapMutations(['doctorCheckPrBaseInit', 'sumPREditInit']), |
|
|
|
dddw, moment, |
|
|
|
|
|
|
|
//查询找到相关信息处理 |
|
|
|
findPR(rd) { |
|
|
|
// debugger |
|
|
|
//查询后触发相关信息处理 |
|
|
|
afterFind(rd) { |
|
|
|
// console.log('rd,this.doctorCheck.prBase',rd.id,this.doctorCheck.prBase.id) |
|
|
|
objCopy(rd, this.prBase) |
|
|
|
this.dataTransOpts.tableS.patient_register.id = rd.id |
|
|
|
this.doctorCheck.prBase = Object.assign({}, this.doctorCheck.prBase, rd) |
|
|
|
this.prBase = deepCopy(this.prBaseInit) |
|
|
|
objCopy(rd,this.prBase) |
|
|
|
this.doctorCheck.prBase = Object.assign({}, this.doctorCheck.prBase, rd) //待优化 |
|
|
|
setTimeout(() => { |
|
|
|
//触发检查医生诊台相关刷新 |
|
|
|
this.dataTransOpts.refresh.register_check.M++ |
|
|
|
@ -143,41 +141,12 @@ export default { |
|
|
|
//触发总检医生诊台相关刷新 |
|
|
|
this.dataTransOpts.refresh.sumDoctor.M++ |
|
|
|
this.dataTransOpts.refresh.sum_diagnosis.M++ |
|
|
|
}, 20); |
|
|
|
// objCopy(rd,this.doctorCheck.prBase) |
|
|
|
|
|
|
|
// this.sumPREditInit() |
|
|
|
this.sumDoctorCheck.sumPREdit = Object.assign({}, this.sumDoctorCheck.sumPREdit, rd) |
|
|
|
// objCopy(rd,this.sumDoctorCheck.sumPREdit) |
|
|
|
}, 10); |
|
|
|
|
|
|
|
//显示照片 |
|
|
|
this.patientRegister.photo = rd.photo |
|
|
|
}, |
|
|
|
|
|
|
|
//查询未找到相关信息处理 |
|
|
|
unfindPR(queryType) { |
|
|
|
|
|
|
|
this.$message.warning("没有找到相应的数据") |
|
|
|
let val = this.prBase[queryType] |
|
|
|
|
|
|
|
this.doctorCheckPrBaseInit() |
|
|
|
this.dataTransOpts.tableS.patient_register.id = '' |
|
|
|
setTimeout(() => { |
|
|
|
//触发检查医生诊台相关刷新 |
|
|
|
this.dataTransOpts.refresh.register_check.M++ |
|
|
|
|
|
|
|
//触发总检医生诊台相关刷新 |
|
|
|
this.dataTransOpts.refresh.sumDoctor.M++ |
|
|
|
this.dataTransOpts.refresh.sum_diagnosis.M++ |
|
|
|
}, 20); |
|
|
|
|
|
|
|
this.sumPREditInit() |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
this.prBase[queryType] = val |
|
|
|
}, 100); |
|
|
|
|
|
|
|
this.patientRegister.photo = '' |
|
|
|
}, |
|
|
|
|
|
|
|
//按条码号查个人数据 |
|
|
|
onQueryByPatientRegisterNo() { |
|
|
|
@ -187,16 +156,17 @@ export default { |
|
|
|
patientRegisterNo, |
|
|
|
isFilterPreRegistration: 'Y' //是否需要过滤预登记数据 Y=过滤预登记数据 N=不过滤 默认为N (备注:只有CompleteFlag参数的值不为0的情况才有效,null值也有效) |
|
|
|
} |
|
|
|
console.log(`/api/app/patientregister/getpatientregisterorpatient`, body) |
|
|
|
// console.log(`/api/app/patientregister/getpatientregisterorpatient`, body) |
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '' } |
|
|
|
postapi('/api/app/patientregister/getpatientregisterorpatient', body) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
if (res.data) { |
|
|
|
this.findPR(res.data) |
|
|
|
} else { |
|
|
|
this.unfindPR('patientRegisterNo') |
|
|
|
} |
|
|
|
|
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
this.afterFind(this.dataTransOpts.tableS.patient_register) |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -208,16 +178,16 @@ export default { |
|
|
|
patientNo, |
|
|
|
isFilterPreRegistration: 'Y' //是否需要过滤预登记数据 Y=过滤预登记数据 N=不过滤 默认为N (备注:只有CompleteFlag参数的值不为0的情况才有效,null值也有效) |
|
|
|
} |
|
|
|
console.log(`/api/app/patientregister/getpatientregisterorpatient`, body) |
|
|
|
// console.log(`/api/app/patientregister/getpatientregisterorpatient`, body) |
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '' } |
|
|
|
postapi('/api/app/patientregister/getpatientregisterorpatient', body) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
if (res.data) { |
|
|
|
this.findPR(res.data) |
|
|
|
} else { |
|
|
|
this.unfindPR('patientRegisterNo') |
|
|
|
} |
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
this.afterFind(this.dataTransOpts.tableS.patient_register) |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -242,21 +212,18 @@ export default { |
|
|
|
//根据ID 获取 人员信息 |
|
|
|
getPatientRegister(patientRegisterId) { |
|
|
|
if (!patientRegisterId) { |
|
|
|
this.prBase = deepCopy(this.prBaseInit) |
|
|
|
this.afterFind({ id: '' }) |
|
|
|
return |
|
|
|
} |
|
|
|
postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${patientRegisterId}`) |
|
|
|
.then(res => { |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
this.prBase = res.data |
|
|
|
//触发检查医生诊台相关刷新 |
|
|
|
this.dataTransOpts.refresh.register_check.M++ |
|
|
|
|
|
|
|
//触发总检医生诊台相关刷新 |
|
|
|
this.dataTransOpts.refresh.sumDoctor.M++ |
|
|
|
this.dataTransOpts.refresh.sum_diagnosis.M++ |
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
this.afterFind(this.dataTransOpts.tableS.patient_register) |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|