/* 劳务管理-工资发放 */ 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(params) { window.location.href = axios.defaults.baseURL +`xmgl/workerWagesPayment/salaryPdf?projectSn=${params.projectSn}&teamId=${params.teamId||''}&departmentId=${params.departmentId||''}&payMonth=${params.payMonth||''}&payStatus=${params.payStatus||''}&userEnterpriseId=${params.enterpriseId||''}`; } // 导出工资列表excel export function exportSalaryExcel(params) { window.location.href = axios.defaults.baseURL +`xmgl/workerWagesPayment/excelProjectWages?projectSn=${params.projectSn}&teamId=${params.teamId||''}&departmentId=${params.departmentId||''}&payMonth=${params.payMonth||''}&payStatus=${params.payStatus||''}&userEnterpriseId=${params.enterpriseId||''}`; } // 导入工资列表excel export function importWagesPaymentExcel(data) { return post('xmgl/workerWagesPayment/uploadWagesPaymentExcel', data); } // 编辑工资发放记录信息 export function updateWorkerWagesPayment(data) { return post('xmgl/workerWagesPayment/updateWorkerWagesPayment', data); }