整合前端
This commit is contained in:
62
ruoyi-ui/src/api/oa/finance/employeeTemplateBinding.js
Normal file
62
ruoyi-ui/src/api/oa/finance/employeeTemplateBinding.js
Normal file
@@ -0,0 +1,62 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user