|
@@ -981,7 +981,7 @@
|
|
|
|
|
|
<!-- 分类工时明细表 -->
|
|
|
<el-table v-if="ins == 22" :key="hoursDetailClassListKey" border :data="hoursDetailClassList.record" highlight-current-row v-loading="listLoading" :height="+tableHeight -1" style="width: 100%;" >
|
|
|
- <el-table-column align="center" prop="categoryName" label="生产项目号" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="categoryName" :label="`${projectSortName}项目号`" min-width="150"></el-table-column>
|
|
|
<el-table-column align="center" prop="userName" label="姓名" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
@@ -1017,7 +1017,7 @@
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" prop="allWorkingTime" label="总工时" min-width="150"></el-table-column>
|
|
|
- <el-table-column align="center" prop="targetWorkingTime" label="生产工时" min-width="150"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="targetWorkingTime" :label="`${projectSortName}工时`" min-width="150"></el-table-column>
|
|
|
|
|
|
<!-- 渲染日期 -->
|
|
|
<el-table-column align="center" :label="item.titleName" min-width="150" v-for="(item, index) in hoursDetailClassList.header" :key="index">
|
|
@@ -1465,6 +1465,7 @@ export default {
|
|
|
hoursDetailClassListKey: 500,
|
|
|
dateSelect: '', // 日期选择
|
|
|
projectSortId: '', // 项目分类选中的id
|
|
|
+ projectSortName: '', // 项目分类选中的Name
|
|
|
projectSortList: [], // 项目分类
|
|
|
};
|
|
|
},
|
|
@@ -3075,6 +3076,8 @@ export default {
|
|
|
this.getProjectWoekScale()
|
|
|
}
|
|
|
if(this.ins == 22) {
|
|
|
+ this.projectSortName = this.projectSortList.filter((item) => item.id == this.projectSortId)[0].name
|
|
|
+ console.log(this.projectSortName)
|
|
|
this.getHoursDetailClass()
|
|
|
}
|
|
|
},
|
|
@@ -3389,6 +3392,7 @@ export default {
|
|
|
dataList.push({id: 'null', name: '未分类'})
|
|
|
this.projectSortList = dataList
|
|
|
this.projectSortId = dataList[0].id
|
|
|
+ this.projectSortName = dataList[0].name
|
|
|
}
|
|
|
},
|
|
|
};
|