hr-system/wwwroot/hr-org/ui/org_contract_company_crud.ui.json

33 lines
1.6 KiB
JSON

{
"name": "org_contract_company_crud",
"title": "合同公司",
"type": "crud",
"api": {
"list": "/hr-org/api/org_contract_company.list.dspy",
"get": "/hr-org/api/org_contract_company.get.dspy",
"save": "/hr-org/api/org_contract_company.save.dspy",
"delete": "/hr-org/api/org_contract_company.delete.dspy"
},
"columns": [
{"field": "company_code", "title": "公司编码", "sortable": true},
{"field": "company_name", "title": "公司名称", "sortable": true},
{"field": "credit_code", "title": "统一社会信用代码"},
{"field": "legal_person", "title": "法人"},
{"field": "contact_info", "title": "联系方式"},
{"field": "status", "title": "状态"}
],
"filters": [
{"field": "company_code", "label": "公司编码", "type": "text"},
{"field": "company_name", "label": "公司名称", "type": "text"},
{"field": "status", "label": "状态", "type": "select", "options": [{"value": "active", "label": "启用"}, {"value": "inactive", "label": "停用"}]}
],
"form": [
{"field": "company_code", "label": "公司编码", "type": "text", "required": true},
{"field": "company_name", "label": "公司名称", "type": "text", "required": true},
{"field": "credit_code", "label": "统一社会信用代码", "type": "text", "maxlength": 18},
{"field": "legal_person", "label": "法人", "type": "text"},
{"field": "contact_info", "label": "联系方式", "type": "text"},
{"field": "status", "label": "状态", "type": "select", "options": [{"value": "active", "label": "启用"}, {"value": "inactive", "label": "停用"}]}
]
}