|
|
|
@ -63,8 +63,9 @@ export default { |
|
|
|
this.doctorCheck.RegisterCheckId = row.id |
|
|
|
this.dataTransOpts.tableS.register_check.id = row.id |
|
|
|
setTimeout(() => { // 不管值是否改变,点击就强制刷新 |
|
|
|
this.dataTransOpts.refresh.register_check_item.S++ |
|
|
|
}, 100); |
|
|
|
this.dataTransOpts.refresh.register_check.S++ |
|
|
|
this.dataTransOpts.refresh.register_check_item.M++ |
|
|
|
}, 10); |
|
|
|
// this.doctorCheck.RegisterCheckEdit = row |
|
|
|
}, |
|
|
|
|
|
|
|
@ -85,15 +86,19 @@ export default { |
|
|
|
//查询出来 默认显示第1条记录明细、小结等 |
|
|
|
if(res.data.length > 0) { |
|
|
|
this.doctorCheck.RegisterCheckId = res.data[0].id |
|
|
|
this.dataTransOpts.tableS.register_check.id = res.data[0].id |
|
|
|
setTimeout(() => { // 不管值是否改变,点击就强制刷新 |
|
|
|
this.dataTransOpts.refresh.register_check_item.S++ |
|
|
|
}, 100); |
|
|
|
this.dataTransOpts.tableS.register_check.id = res.data[0].id |
|
|
|
// this.doctorCheck.RegisterCheckEdit = res.data[0] |
|
|
|
|
|
|
|
this.$refs['doctorCheck_RegisterCheckList'].setCurrentRow(res.data[0]) |
|
|
|
|
|
|
|
}else{ |
|
|
|
this.dataTransOpts.tableS.register_check.id = '' |
|
|
|
} |
|
|
|
|
|
|
|
setTimeout(() => { // 不管值是否改变,点击就强制刷新 |
|
|
|
this.dataTransOpts.refresh.register_check.S++ //刷新检查医生 |
|
|
|
this.dataTransOpts.refresh.register_check_item.M++ //刷新检查明细 |
|
|
|
}, 10); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
@ -105,15 +110,14 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//监听事件 |
|
|
|
watch: { |
|
|
|
//体检人员未切换时 也可以强制刷新数据 |
|
|
|
"dataTransOpts.refresh.register_check.S":{ |
|
|
|
"dataTransOpts.refresh.register_check.M":{ |
|
|
|
immediate:true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log("watch doctorCheck.prBase.id newVal:", newVal, " oldVal:", oldVal); |
|
|
|
this.registerCheckList(this.doctorCheck.prBase.id) |
|
|
|
console.log(`watch 组合项目列表 newVal: ${newVal} oldVal: ${oldVal} patient_register.id: ${this.dataTransOpts.tableS.patient_register.id}`); |
|
|
|
this.registerCheckList(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
|