|
@@ -71,7 +71,7 @@
|
|
|
<el-table-column align="center" prop="name" label="人员" min-width="250"></el-table-column>
|
|
|
<el-table-column v-for="(item, index) in personWorkHoursWagesHead" :key="index" :label="item" align="center" min-width="250">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-for="(items, indexs) in scope.row.personWorkHoursWages" :key="indexs" @click="showReportDetail(scope.row)" class="colorText">
|
|
|
+ <div v-for="(items, indexs) in scope.row.personWorkHoursWages" :key="indexs" @click="showReportDetail(scope.row,item)" class="colorText">
|
|
|
<div v-if="items.crateDate == item">
|
|
|
{{items.workTime}}分钟 {{items.cost}}元
|
|
|
</div>
|
|
@@ -551,11 +551,11 @@ export default {
|
|
|
this.taskName=item.taskName
|
|
|
this.getPlanDetail(item);
|
|
|
},
|
|
|
- showReportDetail(item){
|
|
|
+ showReportDetail(row,item){
|
|
|
console.log(item)
|
|
|
this.reportDetailDialog=true
|
|
|
- this.detailUserId=item.id
|
|
|
- this.getPersonWorkHoursWagesDetail()
|
|
|
+ this.detailUserId=row.id
|
|
|
+ this.getPersonWorkHoursWagesDetail(item)
|
|
|
},
|
|
|
authorityToJudge() {
|
|
|
// if(this.permissions.reportProject || this.permissions.reportAllProject) {this.ssl(0);this.defaultActive = '1-1';return} else
|
|
@@ -691,28 +691,29 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//点击详情(人员工时工价表)
|
|
|
- getPersonWorkHoursWagesDetail(){
|
|
|
- this.http.post( "/report/getPersonWorkHoursWagesDetail", {
|
|
|
- date: this.simpleDateChoose.substring(0,4)+"-"+this.simpleDateChoose.substring(4,6)+"-"+this.simpleDateChoose.substring(6,this.simpleDateChoose.length),
|
|
|
- userId:this.detailUserId
|
|
|
- },
|
|
|
- res => {
|
|
|
- if (res.code == "ok") {
|
|
|
- this.personWorkHoursWagesDetail=res.data.record
|
|
|
- this.totalCost=res.data.totalCost
|
|
|
- this.totalWorkingTime=res.data.totalWorkingTime
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: "error"
|
|
|
- });
|
|
|
- }
|
|
|
- },error => {
|
|
|
+ getPersonWorkHoursWagesDetail(item){
|
|
|
+ this.simpleDateChoose=item
|
|
|
+ this.http.post( "/report/getPersonWorkHoursWagesDetail", {
|
|
|
+ date: this.simpleDateChoose.substring(0,4)+"-"+this.simpleDateChoose.substring(4,6)+"-"+this.simpleDateChoose.substring(6,this.simpleDateChoose.length),
|
|
|
+ userId:this.detailUserId
|
|
|
+ },
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.personWorkHoursWagesDetail=res.data.record
|
|
|
+ this.totalCost=res.data.totalCost
|
|
|
+ this.totalWorkingTime=res.data.totalWorkingTime
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
- message: error,
|
|
|
+ message: res.msg,
|
|
|
type: "error"
|
|
|
});
|
|
|
+ }
|
|
|
+ },error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
});
|
|
|
+ });
|
|
|
},
|
|
|
//计划实际工时表
|
|
|
getPlanRealTimeProgressList(){
|