|
|
|
@ -65,10 +65,11 @@ |
|
|
|
<el-input :value="prBase.mobileTelephone" style="width: 120px;" size="small" disabled /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 体检人员记录列表 --> |
|
|
|
<el-dialog title="体检人员列表" :visible.sync="dialogWin.PatientRegisterForChoose" width="800px" :show-close="false" |
|
|
|
:close-on-click-modal="false" :append-to-body="true"> |
|
|
|
<PatientRegisterForChoose :params="PatientRegisterForChooseParams" /> |
|
|
|
<PatientRegisterForChoose :params="PatientRegisterList" /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
@ -103,8 +104,8 @@ export default { |
|
|
|
nationId: '', //民族 |
|
|
|
mobileTelephone: '', //手机 |
|
|
|
}, |
|
|
|
prBaseInit:{}, |
|
|
|
PatientRegisterForChooseParams: {}, // 参数 |
|
|
|
prBaseInit: {}, |
|
|
|
PatientRegisterList: [], // 参数 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -132,7 +133,7 @@ export default { |
|
|
|
afterFind(rd) { |
|
|
|
// console.log('rd,this.doctorCheck.prBase',rd.id,this.doctorCheck.prBase.id) |
|
|
|
this.prBase = deepCopy(this.prBaseInit) |
|
|
|
objCopy(rd,this.prBase) |
|
|
|
objCopy(rd, this.prBase) |
|
|
|
this.doctorCheck.prBase = Object.assign({}, this.doctorCheck.prBase, rd) //待优化 |
|
|
|
setTimeout(() => { |
|
|
|
//触发检查医生诊台相关刷新 |
|
|
|
@ -144,7 +145,7 @@ export default { |
|
|
|
}, 10); |
|
|
|
|
|
|
|
//显示照片 |
|
|
|
this.patientRegister.photo = rd.photo |
|
|
|
this.patientRegister.photo = rd.photo || '' |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
@ -157,12 +158,11 @@ export default { |
|
|
|
isFilterPreRegistration: 'Y' //是否需要过滤预登记数据 Y=过滤预登记数据 N=不过滤 默认为N (备注:只有CompleteFlag参数的值不为0的情况才有效,null值也有效) |
|
|
|
} |
|
|
|
// console.log(`/api/app/patientregister/getpatientregisterorpatient`, body) |
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '' } |
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '', patientRegisterNo } |
|
|
|
postapi('/api/app/patientregister/getpatientregisterorpatient', body) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
|
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
|
if (res.data) this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
@ -179,11 +179,11 @@ export default { |
|
|
|
isFilterPreRegistration: 'Y' //是否需要过滤预登记数据 Y=过滤预登记数据 N=不过滤 默认为N (备注:只有CompleteFlag参数的值不为0的情况才有效,null值也有效) |
|
|
|
} |
|
|
|
// console.log(`/api/app/patientregister/getpatientregisterorpatient`, body) |
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '' } |
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '', patientNo } |
|
|
|
postapi('/api/app/patientregister/getpatientregisterorpatient', body) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
|
if (res.data) this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
@ -197,16 +197,35 @@ export default { |
|
|
|
patientName: v, |
|
|
|
isFilterPreRegistration: 'Y' //是否需要过滤预登记数据 Y=过滤预登记数据 N=不过滤 默认为N (备注:只有CompleteFlag参数的值不为0的情况才有效,null值也有效) |
|
|
|
} |
|
|
|
this.PatientRegisterForChooseParams = body // 传参 |
|
|
|
this.dialogWin.PatientRegisterForChoose = true // 弹窗 |
|
|
|
setTimeout(() => { |
|
|
|
//触发检查医生诊台相关刷新 |
|
|
|
this.dataTransOpts.refresh.register_check.M++ |
|
|
|
|
|
|
|
//触发总检医生诊台相关刷新 |
|
|
|
this.dataTransOpts.refresh.sumDoctor.M++ |
|
|
|
this.dataTransOpts.refresh.sum_diagnosis.M++ |
|
|
|
}, 20); |
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '', patientName: v } |
|
|
|
// |
|
|
|
postapi('/api/app/patientregister/getlistinfilter', body) |
|
|
|
.then(res => { |
|
|
|
if (res.code != -1) { |
|
|
|
if (res.data.items.length == 1) { |
|
|
|
this.dataTransOpts.tableS.patient_register.id = res.data.items[0].id |
|
|
|
setTimeout(() => { |
|
|
|
this.dataTransOpts.refresh.patient_register.S++ |
|
|
|
}, 10); |
|
|
|
// this.getPatientRegister(res.data.items[0].id) |
|
|
|
} else if (res.data.items.length > 1) { |
|
|
|
this.PatientRegisterList = res.data.items |
|
|
|
this.dialogWin.PatientRegisterForChoose = true // 弹窗 |
|
|
|
this.dataTransOpts.plus.PatientRegisterForChoose++ |
|
|
|
} else { |
|
|
|
this.afterFind(this.dataTransOpts.tableS.patient_register) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
// setTimeout(() => { |
|
|
|
// //触发检查医生诊台相关刷新 |
|
|
|
// this.dataTransOpts.refresh.register_check.M++ |
|
|
|
|
|
|
|
// //触发总检医生诊台相关刷新 |
|
|
|
// this.dataTransOpts.refresh.sumDoctor.M++ |
|
|
|
// this.dataTransOpts.refresh.sum_diagnosis.M++ |
|
|
|
// }, 20); |
|
|
|
}, |
|
|
|
|
|
|
|
//根据ID 获取 人员信息 |
|
|
|
@ -290,7 +309,7 @@ export default { |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 组合项目列表 newVal: ${newVal} oldVal: ${oldVal} patient_register.id: ${this.dataTransOpts.tableS.patient_register.id}`); |
|
|
|
this.getPatientRegister(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
this.dataTransOpts.refresh.register_check.M++ |
|
|
|
// this.dataTransOpts.refresh.register_check.M++ |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|