62 lines
1.4 KiB
JavaScript
62 lines
1.4 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询员工模板绑定及月度发放记录列表
|
|
export function listEmployeeTemplateBinding(query) {
|
|
return request({
|
|
url: '/oa/employeeTemplateBinding/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询员工模板绑定及月度发放记录详细
|
|
export function getEmployeeTemplateBinding(bindingId) {
|
|
return request({
|
|
url: '/oa/employeeTemplateBinding/' + bindingId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增员工模板绑定及月度发放记录
|
|
export function addEmployeeTemplateBinding(data) {
|
|
return request({
|
|
url: '/oa/employeeTemplateBinding',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改员工模板绑定及月度发放记录
|
|
export function updateEmployeeTemplateBinding(data) {
|
|
return request({
|
|
url: '/oa/employeeTemplateBinding',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除员工模板绑定及月度发放记录
|
|
export function delEmployeeTemplateBinding(bindingId) {
|
|
return request({
|
|
url: '/oa/employeeTemplateBinding/' + bindingId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 根据上月记录批量生成发放记录
|
|
export function calculateRecord(data) {
|
|
return request({
|
|
url: '/oa/employeeTemplateBinding/calculate',
|
|
method: 'post' ,
|
|
data
|
|
})
|
|
}
|
|
|
|
// 确认发薪
|
|
export function finalizeSalary(data) {
|
|
return request({
|
|
url: '/oa/employeeTemplateBinding/finalize',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
} |