fix: 修复两个前端 Bug — 诊疗类医嘱执行科室回显 + diagnosis.vue 未定义函数报错
## Bug #631: 诊疗类医嘱"药房/科室"列未回显
- 文件: openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/index.vue
- 根因: 表格"药房/科室"列只显示 positionName 字段,但诊疗类医嘱(adviceType==3)
的执行科室名称存储在 orgName 字段中,positionName 专用于药品类药房场景
- 修复: 列模板回退逻辑 `positionName || orgName`,药品类优先 positionName,
诊疗类回退到 orgName
## diagnosis.vue: loadTcmSyndromeOptions is not defined
- 文件: openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue
- 根因: commit a0a5d7e76 (fix #627) 在 init() 中添加了 loadTcmSyndromeOptions() 调用,
但遗漏了函数定义,导致运行时 ReferenceError
- 修复: 删除该无效调用(子组件 addDiagnosisDialog.vue、index.vue 各自独立加载证候选项)
This commit is contained in:
@@ -451,7 +451,6 @@ function getList() {
|
|||||||
|
|
||||||
init();
|
init();
|
||||||
function init() {
|
function init() {
|
||||||
loadTcmSyndromeOptions();
|
|
||||||
diagnosisInit().then((res) => {
|
diagnosisInit().then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
diagnosisOptions.value = res.data.verificationStatusOptions;
|
diagnosisOptions.value = res.data.verificationStatusOptions;
|
||||||
|
|||||||
@@ -287,7 +287,7 @@
|
|||||||
<el-table-column label="药房/科室" align="center" prop="" width="240">
|
<el-table-column label="药房/科室" align="center" prop="" width="240">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">
|
<span v-if="!scope.row.isEdit">
|
||||||
{{ scope.row.positionName }}
|
{{ scope.row.positionName || scope.row.orgName }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
Reference in New Issue
Block a user