| | |
| | | remark?: string; |
| | | createTime?: string; |
| | | } |
| | | |
| | | /** 审批流程 */ |
| | | export interface ApproveProcess { |
| | | key: string; |
| | | name: string; |
| | | } |
| | | } |
| | | |
| | | /** 查询调岗申请分页列表 */ |
| | |
| | | } |
| | | |
| | | /** 提交调岗申请(发起审批) */ |
| | | export function submitTransfer(id: number) { |
| | | return requestClient.post(`/hrm/transfer/submit?id=${id}`); |
| | | export function submitTransfer(id: number, processDefinitionKey: string) { |
| | | return requestClient.post('/hrm/transfer/submit', null, { |
| | | params: { id, processDefinitionKey }, |
| | | }); |
| | | } |
| | | |
| | | /** 撤销调岗申请 */ |
| | |
| | | |
| | | /** 获取可用流程定义列表 */ |
| | | export function getTransferApproveProcessDefinitionList() { |
| | | return requestClient.get<any[]>('/hrm/transfer/approve-process-definition-list'); |
| | | return requestClient.get<HrmTransferApi.ApproveProcess[]>( |
| | | '/hrm/transfer/approve-process-definition-list', |
| | | ); |
| | | } |