49 lines
1.4 KiB
JavaScript
Raw Normal View History

2022-06-08 14:51:11 +08:00
/* 劳务管理-工资发放 */
import { post, get } from '../../http'
import axios from 'axios'
// 企业列表
export function enterpriseList (data) {
return post('xmgl/enterpriseInfo/selectHierarchyEnterpriseList', data)
}
// 班组列表
export function teamList(data) {
return post('xmgl/teamInfo/getTeamInfoList', data);
}
// 部门列表
export function departmentList(data) {
return post('xmgl/departmentInfo/getDepartmentInfoList', data);
}
// 分页查询工资发放记录信息
export function payrollRecord(data) {
return post('xmgl/workerWagesPayment/selectWorkerWagesPaymentPageList', data);
}
// 通过id查询工资发放详情信息
export function payrollRecordDetailById(data) {
return post('xmgl/workerWagesPayment/queryById', data);
}
// 导出人员工资pdf
export function exportSalaryPdf(projectSn) {
window.location.href = axios.defaults.baseURL +`xmgl/workerWagesPayment/salaryPdf?projectSn=${projectSn}`;
}
// 导出工资列表excel
export function exportSalaryExcel(projectSn) {
window.location.href = axios.defaults.baseURL +`xmgl/workerWagesPayment/excelProjectWages?projectSn=${projectSn}`;
}
// 导入工资列表excel
export function importWagesPaymentExcel(data) {
return post('xmgl/workerWagesPayment/uploadWagesPaymentExcel', data);
}
// 编辑工资发放记录信息
export function updateWorkerWagesPayment(data) {
return post('xmgl/workerWagesPayment/updateWorkerWagesPayment', data);
}