fix: 78+16个项目验收问题全部解决

This commit is contained in:
严妍 2023-07-13 14:41:24 +08:00
parent 105165fc92
commit 6c63d016a3
2 changed files with 9 additions and 4 deletions

View File

@ -30,12 +30,12 @@ export function payrollRecordDetailById(data) {
// 导出人员工资pdf
export function exportSalaryPdf(params) {
window.location.href = axios.defaults.baseURL +`xmgl/workerWagesPayment/salaryPdf?projectSn=${params.projectSn}&teamId=${params.teamId||''}&departmentId=${params.departmentId||''}`;
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||''}`;
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

View File

@ -111,6 +111,7 @@
<el-button @click="handleExportExcel">导出 Excel</el-button>
<el-upload
style="display: inline-block; margin-left: 15px"
ref="upload"
class="upload-demo"
name="excelFile"
:action="
@ -512,7 +513,8 @@ export default {
teamId: this.queryParams.teamId,
departmentId: this.queryParams.departmentId,
payStatus:this.queryParams.payStatus,
payMonth: this.queryParams.payMonth
payMonth: this.queryParams.payMonth,
enterpriseId: this.queryParams.enterpriseId
}
exportSalaryPdf(params)
},
@ -523,15 +525,18 @@ export default {
teamId: this.queryParams.teamId,
departmentId: this.queryParams.departmentId,
payStatus:this.queryParams.payStatus,
payMonth: this.queryParams.payMonth
payMonth: this.queryParams.payMonth,
enterpriseId: this.queryParams.enterpriseId
}
// console.log('',params)
exportSalaryExcel(params)
},
handleUploadSuccess(res) {
console.log('导入成功')
if (res.code == 200) {
this.$message.success(res.message);
this.getEnterpriseList()
this.$refs.upload.clearFiles();
} else {
this.$message.error(res.message);
}