import { FieldProps } from '../../../components/form-item/field-props' import { AccountDept } from '../../../entity/account/account-dept' const fields: Array> = [ { name: 'deptName', label: '部门名称', type: 'input', rules: [ { required: true, message: '请输入部门名称' } ] }, { name: 'deptCode', label: '部门编号', type: 'input', rules: [ { required: true, message: '请输入部门编号' } ] }, { name: 'fkOrgId', label: '所属单位', type: 'select', typeValue: { fieldNames: { label: 'orgName', value: 'id', children: 'children' } } }, { name: 'fkParentId', label: '上级部门', type: 'select', typeValue: { fieldNames: { label: 'deptName', value: 'id', children: 'children' } } }, { name: 'deptLeader', label: '部门领导', type: 'input' }, { name: 'contacts', label: '部门联系人', type: 'input' }, { name: 'phone', label: '部门联系电话', type: 'input' }, { name: 'phoneCornet', label: '电话短号', type: 'input' }, { name: 'address', label: '部门地址', type: 'input' }, { name: 'deptLevel', label: '部门级别', type: 'input-number' }, { name: 'deptType', label: '部门类型', type: 'input' }, { name: 'email', label: '部门邮箱', type: 'input' }, { name: 'fax', label: '部门传真', type: 'input' }, { name: 'sortCode', label: '排序', type: 'input-number' }, { name: 'memo', label: '备注', type: 'textarea' } ] export default fields