@@ -379,13 +380,22 @@ const handleCellClick = (row: any, column: any) => {
// 强制刷新UI后聚焦
nextTick(() => {
const inputKey = `${row.id}-${field}`;
- const inputElement = inputRefs.value[inputKey]?.$el?.querySelector('input') ||
- inputRefs.value[inputKey]?.$el;
+ const inputComponent = inputRefs.value[inputKey];
+ if (!inputComponent) return;
- if (inputElement) {
- inputElement.focus();
+ // 不同组件的聚焦方式不同,做适配处理
+ if (inputComponent.focus) {
+ // 基础输入组件直接调用focus方法
+ inputComponent.focus();
+ } else if (inputComponent.$el) {
+ // 查找内部输入元素
+ const inputEl = inputComponent.$el.querySelector('input, textarea') ||
+ inputComponent.$el.querySelector('.el-select__input') ||
+ inputComponent.$el;
+ inputEl?.focus?.();
}
});
+
};
// 保存编辑
@@ -587,7 +597,6 @@ interface DictData {
// 字典数据存储
const dictData = ref
({});
onMounted(async () => {
- console.log('classCom ==>', classCom.decimalToHexColor("16777215"));
// 加载病人来源字典
const dictRefs = await comDict('BT', 'DP', 'LISGROUP1', 'LISGROUP2');
diff --git a/src/views/mzcx/reportRules/index.vue b/src/views/mzcx/reportRules/index.vue
new file mode 100644
index 0000000..0b22384
--- /dev/null
+++ b/src/views/mzcx/reportRules/index.vue
@@ -0,0 +1,557 @@
+
+
+
+
+ 查询
+ 新增
+ 保存
+
+ 新增明细
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+