diff --git a/healthlink-his-ui/src/views/doctorstation/components/prescription/prescriptionlist.vue b/healthlink-his-ui/src/views/doctorstation/components/prescription/prescriptionlist.vue
index 3b6d1f8d5..7a5324004 100755
--- a/healthlink-his-ui/src/views/doctorstation/components/prescription/prescriptionlist.vue
+++ b/healthlink-his-ui/src/views/doctorstation/components/prescription/prescriptionlist.vue
@@ -69,19 +69,13 @@
删除
诊断:
-
-
-
+ readonly
+ disabled
+ />
费用性质:
-
@@ -419,15 +410,12 @@
class="required-field"
data-prop="doseQuantity"
>
-
@@ -455,11 +443,9 @@
class="required-field"
data-prop="dose"
>
-
-
天
-
+
-
@@ -666,13 +647,11 @@
class="required-field"
data-prop="quantity"
>
-
@@ -753,13 +732,11 @@
class="required-field"
data-prop="quantity"
>
-
@@ -848,13 +825,11 @@
class="required-field"
data-prop="quantity"
>
-
@@ -2220,7 +2195,6 @@ function getListInfo(addNewRow) {
// 关键:先等待处方列表数据获取完成
isAdding.value = false;
const res = await getPrescriptionList(props.patientInfo.encounterId);
-
// 🔧 BugFix: 过滤掉已作废(statusEnum=5)的会诊医嘱
const filteredData = res.data.filter(item => {
// 防止 contentJson 为空或 undefined 导致 JSON.parse 报错
@@ -2329,13 +2303,6 @@ function getDiagnosisInfo() {
encounterDiagnosisId.value = diagnosisInfo[0].encounterDiagnosisId;
diagnosisName.value = diagnosisInfo[0].name;
console.log('getDiagnosisInfo - 已设置主诊断:', diagnosisInfo[0]);
- } else if (diagnosisList.value.length > 0) {
- // 如果没有主诊断,使用第一个诊断
- conditionDefinitionId.value = diagnosisList.value[0].definitionId;
- conditionId.value = diagnosisList.value[0].conditionId;
- encounterDiagnosisId.value = diagnosisList.value[0].encounterDiagnosisId;
- diagnosisName.value = diagnosisList.value[0].name;
- console.log('getDiagnosisInfo - 已设置第一个诊断:', diagnosisList.value[0]);
}
return res;
}).catch((error) => {
@@ -2668,15 +2635,15 @@ function selectAdviceBase(key, row) {
const lastExpandedRow = expandedRows[expandedRows.length - 1];
// 查找doseQuantity输入框(优先)
- let targetInput = lastExpandedRow.querySelector('[data-prop="doseQuantity"] .el-input-number__inner');
-
+ let targetInput = lastExpandedRow.querySelector('[data-prop="doseQuantity"] .el-input__inner');
+
// 如果没找到,尝试其他方式
if (!targetInput && row.adviceType == 1) {
- // 西药的情况:找第一个el-input-number
- targetInput = lastExpandedRow.querySelector('.el-input-number__inner');
+ // 西药的情况:找第一个el-input
+ targetInput = lastExpandedRow.querySelector('.el-input__inner');
} else if (!targetInput) {
// 诊疗/耗材的情况:找quantity输入框
- targetInput = lastExpandedRow.querySelector('[data-prop="quantity"] .el-input-number__inner');
+ targetInput = lastExpandedRow.querySelector('[data-prop="quantity"] .el-input__inner');
}
// 最后的备用方案
diff --git a/healthlink-his-ui/src/views/doctorstation/index.vue b/healthlink-his-ui/src/views/doctorstation/index.vue
index e3e6c39da..2283c5ed1 100755
--- a/healthlink-his-ui/src/views/doctorstation/index.vue
+++ b/healthlink-his-ui/src/views/doctorstation/index.vue
@@ -718,6 +718,7 @@ function handleClick(tab) {
diagnosisRef.value.getDetail(patientInfo.value.encounterId);
break;
case 'prescription':
+ prescriptionRef.value.getListInfo();
prescriptionRef.value.getDiagnosisInfo();
break;
case 'tcm':
@@ -848,7 +849,7 @@ function handleCardClick(item, index) {
updatePatientInfo(item);
activeTab.value = 'hospitalizationEmr';
nextTick(() => {
- prescriptionRef.value.getListInfo();
+ // 医嘱数据改为切换到对应tab时才加载
tcmRef.value.getListInfo();
inspectionRef.value.getList();
if(examinationRef.value) examinationRef.value.getList();