- 添加员工转正API和页面 - 新增员工转岗功能及相关API和页面 - 实现员工离职功能及相关API和页面 - 在员工信息页面添加在职天数显示 - 调整接收报表页面分页大小 - 完善员工入职补录表单
75 lines
1.4 KiB
JavaScript
75 lines
1.4 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询员工异动(入职/离职)列表
|
|
export function listEmployeeChange(query) {
|
|
return request({
|
|
url: '/wms/employeeChange/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询员工异动(入职/离职)详细
|
|
export function getEmployeeChange(changeId) {
|
|
return request({
|
|
url: '/wms/employeeChange/' + changeId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增员工异动(入职/离职)
|
|
export function addEmployeeChange(data) {
|
|
return request({
|
|
url: '/wms/employeeChange',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改员工异动(入职/离职)
|
|
export function updateEmployeeChange(data) {
|
|
return request({
|
|
url: '/wms/employeeChange',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除员工异动(入职/离职)
|
|
export function delEmployeeChange(changeId) {
|
|
return request({
|
|
url: '/wms/employeeChange/' + changeId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 员工入职
|
|
export function employeeEntry(data) {
|
|
return request({
|
|
url: '/wms/employeeChange/entry',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 员工离职
|
|
*/
|
|
export function employeeLeave(data) {
|
|
return request({
|
|
url: '/wms/employeeChange/leave',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 员工转正
|
|
*/
|
|
export function employeeRegular(data) {
|
|
return request({
|
|
url: '/wms/employeeChange/regular',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
} |