| | |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { HrmResignationApi } from '#/api/hrm/resignation'; |
| | | |
| | | import { markRaw } from 'vue'; |
| | | |
| | | import { DICT_TYPE } from '#/packages/constants/src'; |
| | | import { getDictOptions } from '#/packages/effects/hooks/src'; |
| | | |
| | | import { getEmployeeSimpleList } from '#/api/hrm/employee'; |
| | | import { UserSelect } from '#/views/system/user/components'; |
| | | |
| | | /** 表单类型 */ |
| | | export type FormType = 'create' | 'detail' | 'update'; |
| | |
| | | triggerFields: [''], |
| | | show: () => false, |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'userId', |
| | | label: '离职申请人', |
| | | component: markRaw(UserSelect), |
| | | componentProps: { placeholder: '请选择离职申请人' }, |
| | | rules: 'selectRequired', |
| | | }, |
| | | { |
| | | fieldName: 'resignationType', |
| | |
| | | export function useGridColumns(): VxeTableGridOptions<HrmResignationApi.Resignation>['columns'] { |
| | | return [ |
| | | { field: 'id', title: '申请编号', width: 80 }, |
| | | { field: 'employeeName', title: '申请人', minWidth: 100 }, |
| | | { field: 'userName', title: '离职申请人', minWidth: 100 }, |
| | | { field: 'deptName', title: '部门', minWidth: 120 }, |
| | | { field: 'postName', title: '岗位', minWidth: 120 }, |
| | | { |
| | |
| | | }, |
| | | }, |
| | | ]; |
| | | } |
| | | } |