feat(gerp): 联系方式新增 Github/电报 类型,设备选项新增「平板」

成员问卷里联系方式有 Github、电报两类,设备有平板;CONTACT_TYPE_OPTIONS 补 8=Github / 9=电报(EmployeeContact.ContactType 为 SmallInteger,无需迁移),Devices 的 tags 选项补「平板」,并同步模型注释。列定义由后端下发,前端无需改动。
This commit is contained in:
TermiNexus committed 2026-10-01 20:22:28 +08:00
1 parent c55ea4cf0a
commit 19b9360d57
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ class EmployeeContact(QModel):
与 EmployeeProfile 一对多(每次保存档案时整体重写该档案的联系方式明细)。
ContactType 取值见 form_service.CONTACT_TYPE_OPTIONS(1=微信 2=QQ 3=邮箱
4=企业微信 5=X 6=个人网站 7=手机号)。
4=企业微信 5=X 6=个人网站 7=手机号 8=Github 9=电报)。
"""
EmployeeContactUUID = UUIDField(primary_key=True, verbose_name='联系方式UUID')
+3 -1
View File
@@ -559,7 +559,7 @@ class FormService(FormServiceBase):
#: 档案里的多选字段(tags 类型:选项固定 + 允许自定义,逗号分隔字符串存储)
EMPLOYEE_PROFILE_TAGS_OPTIONS = {
'Devices': ['电脑', '手机', '云服务器'],
'Devices': ['电脑', '手机', '云服务器', '平板'],
'PhysicalIllness': [
'无', '先天发育畸形', '纹身', '内分泌、营养、代谢疾病', '泌尿生殖系统疾病',
'心血管疾病', '神经科疾病', '残疾', '消化系统疾病', '其他',
@@ -597,6 +597,8 @@ class FormService(FormServiceBase):
{'value': 5, 'label': 'X'},
{'value': 6, 'label': '个人网站'},
{'value': 7, 'label': '手机号'},
{'value': 8, 'label': 'Github'},
{'value': 9, 'label': '电报'},
]
#: 档案表单里「联系方式」子表的虚拟列名(值 = 明细行数组,随档案一并提交)