diff --git a/gvsds/apps/gerp/form_service.py b/gvsds/apps/gerp/form_service.py index a7559bb6..f5b802a7 100644 --- a/gvsds/apps/gerp/form_service.py +++ b/gvsds/apps/gerp/form_service.py @@ -549,6 +549,13 @@ class FormService(FormServiceBase): # 指定表隐藏主键 UUID 列(公司/部门/工作组列表页表格不显示 UUID,仅前端隐藏) if is_pk and table_name in self.HIDE_PK_UUID_IN_TABLE: col['visible'] = False + # 「介绍」类字段统一按多行输入(textarea)渲染: + # 介绍/说明类内容较长,CharField 默认只映射为单行 text + # (如 WorkgroupIntroduction 工作组介绍、DepartmentIntroduction 部门介绍) + if field_type != 'textarea' and ( + pascal_name.endswith('Introduction') or '介绍' in str(getattr(f, 'verbose_name', '') or '') + ): + col['type'] = 'textarea' # 强公司隔离:CompanyUUID 由后端自动注入,前端不可编辑 if self.company_scope and f.name == 'CompanyUUID': col['editable'] = False