| | |
| | | rules: z.number().default(1), |
| | | }, |
| | | { |
| | | fieldName: 'employeeCategory', |
| | | label: '员工类别', |
| | | component: 'RadioGroup', |
| | | componentProps: { |
| | | buttonStyle: 'solid', |
| | | optionType: 'button', |
| | | options: getDictOptions(DICT_TYPE.HRM_EMPLOYEE_CATEGORY, 'number'), |
| | | }, |
| | | rules: z.number().default(1), |
| | | help: '普通员工按岗位加班时薪;技工加班按 1:1;管理不计加班工资', |
| | | }, |
| | | { |
| | | fieldName: 'birthday', |
| | | label: '出生日期', |
| | | component: 'DatePicker', |
| | |
| | | placeholder: '请输入居住地址', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'blobIds', |
| | | label: '附件', |
| | | component: 'FileUpload', |
| | | componentProps: { |
| | | valueKey: 'id', |
| | | maxNumber: 10, |
| | | multiple: true, |
| | | help: '可上传身份证、学历证书、体检报告等资料作为留档', |
| | | }, |
| | | formItemClass: 'col-span-2', |
| | | }, |
| | | ]; |
| | | } |
| | | |
| | |
| | | placeholder: '请选择员工状态', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'employeeCategory', |
| | | label: '员工类别', |
| | | component: 'Select', |
| | | componentProps: { |
| | | allowClear: true, |
| | | options: getDictOptions(DICT_TYPE.HRM_EMPLOYEE_CATEGORY, 'number'), |
| | | placeholder: '请选择员工类别', |
| | | }, |
| | | }, |
| | | ]; |
| | | } |
| | | |
| | |
| | | default: 'employeeStatus', |
| | | }, |
| | | }, |
| | | { |
| | | field: 'employeeCategory', |
| | | title: '员工类别', |
| | | width: 100, |
| | | slots: { |
| | | default: 'employeeCategory', |
| | | }, |
| | | }, |
| | | { field: 'hireDate', title: '入职日期', width: 110 }, |
| | | { |
| | | field: 'createTime', |