| | |
| | | |
| | | import { getDeptList } from '#/api/system/dept'; |
| | | import { getSimplePostList } from '#/api/system/post'; |
| | | import { getEmployeeSimpleList } from '#/api/hrm/employee'; |
| | | import { handleTree } from '#/packages/utils/src'; |
| | | |
| | | /** 表单类型 */ |
| | |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'userId', |
| | | label: '调岗人', |
| | | component: 'ApiSelect', |
| | | componentProps: { |
| | | api: getEmployeeSimpleList, |
| | | labelField: 'name', |
| | | valueField: 'id', |
| | | showSearch: true, |
| | | filterOption: (input: string, option: any) => |
| | | `${option?.label ?? ''}`.toLowerCase().includes(input.toLowerCase()), |
| | | allowClear: true, |
| | | placeholder: '请选择要调岗的员工(选择后自动带出原部门/原岗位)', |
| | | }, |
| | | rules: 'selectRequired', |
| | | formItemClass: 'col-span-2', |
| | | }, |
| | | { |
| | | fieldName: 'currentDeptName', |
| | | label: '原部门', |
| | | component: 'Input', |
| | | componentProps: { |
| | | disabled: true, |
| | | placeholder: '自动获取', |
| | | placeholder: '选择调岗人后自动带出', |
| | | }, |
| | | }, |
| | | { |
| | |
| | | component: 'Input', |
| | | componentProps: { |
| | | disabled: true, |
| | | placeholder: '自动获取', |
| | | placeholder: '选择调岗人后自动带出', |
| | | }, |
| | | }, |
| | | { |
| | |
| | | export function useGridColumns(): VxeTableGridOptions<HrmTransferApi.Transfer>['columns'] { |
| | | return [ |
| | | { field: 'id', title: '申请编号', width: 80 }, |
| | | { field: 'employeeName', title: '申请人', minWidth: 100 }, |
| | | { field: 'userName', title: '调岗人', minWidth: 100 }, |
| | | { field: 'currentDeptName', title: '原部门', minWidth: 120 }, |
| | | { field: 'currentPostName', title: '原岗位', minWidth: 120 }, |
| | | { field: 'targetDeptName', title: '目标部门', minWidth: 120 }, |