tuqin
9 天以前 397218a689b159fa8018c249807326b195576f16
src/views/hrm/transfer/data.ts
@@ -6,6 +6,7 @@
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';
@@ -24,6 +25,26 @@
      },
    },
    {
      // 被调岗员工:原部门/原岗位由后端按员工档案自动带出,前端只需要选人
      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: {