门诊医生站-》医嘱:诊疗开具医嘱点击项目选择下拉框,获取时间过慢40多秒,解决了之后正常情况获取4秒

This commit is contained in:
weixin_45799331
2026-01-21 17:27:28 +08:00
parent a0b546266d
commit 34dd969cb4
2 changed files with 12 additions and 8 deletions

View File

@@ -741,7 +741,7 @@
check-strictly
default-expand-all
:ref="(el) => (inputRefs.orgId = el)"
@change="(value) => handleOrgChange(value, scope.$index)"
@change="(value) => handleOrgChange(value, scope.$index, scope.row)"
placeholder="请选择执行科室"
/>
</el-form-item>
@@ -1104,6 +1104,10 @@ const isAdding = ref(false);
const isSaving = ref(false);
const prescriptionRef = ref();
const expandOrder = ref([]); //目前的展开行
// 更新展开行的函数
const updateExpandOrder = (keys) => {
expandOrder.value = keys;
};
const stockList = ref([]);
const contractList = ref([]);
const conditionId = ref('');
@@ -2261,7 +2265,7 @@ function handleSaveSign(row, index, prescriptionId) {
return;
}
const formRefName = 'formRef_' + targetPrescriptionId + '_' + actualIndex;
const formRefName = 'formRef' + actualIndex;
let formRef = proxy.$refs[formRefName];
console.log('handleSaveSign - 查找表单引用:', formRefName, '是否找到:', !!formRef, '类型:', typeof formRef, 'formRef:', formRef);
@@ -2663,7 +2667,7 @@ const handleEnter = (currentProp, row, rowIndex, prescriptionId) => {
return;
}
const formRefName = 'formRef_' + targetPrescriptionId + '_' + actualIndex;
const formRefName = 'formRef' + actualIndex;
let formRef = proxy.$refs[formRefName];
// 如果 formRef 是数组,取第一个元素