| | |
| | | import { getDictOptions } from '#/packages/effects/hooks/src'; |
| | | |
| | | import { getDeptList } from '#/api/system/dept'; |
| | | import { getEmployeeSimpleList } from '#/api/hrm/employee'; |
| | | import { getSimplePostList } from '#/api/system/post'; |
| | | import { handleTree } from '#/packages/utils/src'; |
| | | |
| | |
| | | }, |
| | | }, |
| | | { |
| | | // 被调岗员工:原部门/原岗位由后端按员工档案自动带出,前端只需要选人 |
| | | fieldName: 'employeeId', |
| | | label: '被调岗员工', |
| | | component: 'ApiSelect', |
| | | componentProps: { |
| | | api: getEmployeeSimpleList, |
| | | labelField: 'name', |
| | | valueField: 'id', |
| | | placeholder: '请选择要调岗的员工', |
| | | showSearch: true, |
| | | filterOption: (input: string, option: any) => |
| | | String(option?.label ?? '') |
| | | .toLowerCase() |
| | | .includes(input.toLowerCase()), |
| | | // 查看/修改时不允许更换被调岗人 |
| | | disabled: formType !== 'create', |
| | | }, |
| | | rules: 'selectRequired', |
| | | }, |
| | | { |
| | | fieldName: 'currentDeptId', |
| | | component: 'Input', |
| | | dependencies: { |