|
@@ -178,6 +178,11 @@
|
|
|
<el-select v-if="(screeningCondition.staff.includes(ins)) && user.userNameNeedTranslate != '1'" v-model="userId" :placeholder="$t('pleaseselectpersonnel')" @change="selcts()" clearable filterable size="small" style="width:100px">
|
|
|
<el-option v-for="(item, index) in selUserList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
+ <!-- 人员兹自定义配置 员工类型筛选 只针对优立科技 -->
|
|
|
+ <el-select v-if="user.companyId==4374&&ins == 21" v-model="subUserCustomName" :placeholder="'请选择员工类型'" clearable filterable size="small" @change="selcts()" style="margin-left:10px">
|
|
|
+ <el-option v-for="(item) in subUserCustom" :key="item.id" :label="item.name" :value="item.name">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
|
|
|
<selectCat :subject="selUserList" :filterable="true" :searchBoxTop="'1'" :subjectId="userId" :clearable="true" :size="mini" @selectCal="selectCal" v-if="(screeningCondition.staff.includes(ins)) && user.userNameNeedTranslate == '1'"></selectCat>
|
|
|
|
|
@@ -1501,7 +1506,7 @@ export default {
|
|
|
months: [14, 15], // 月份筛选条件 (等于)
|
|
|
monthRange: [19], // 月份区间筛选条件 (等于)
|
|
|
staff: [6, 8, 9, 19, 11, 14, 18, 23, 25, 26], // 人员筛选条件 (等于)
|
|
|
- departments: [14, 15, 23, 26], // 部门筛选条件 (等于)
|
|
|
+ departments: [14, 15, 23,21,26], // 部门筛选条件 (等于)
|
|
|
timePeriod: [5, 6, 8, 9, 10, 11, 12, 16, 17, 18, 20, 21, 22, 24, 25, 26], // 时间段筛选条件 (等于)
|
|
|
},
|
|
|
efficentList:[],
|
|
@@ -1700,6 +1705,8 @@ export default {
|
|
|
taskCompletionSheet: [], // 员工任务进度表
|
|
|
},
|
|
|
projectEstimatedWorkData: [], // 项目预估工时表
|
|
|
+ subUserCustom:[],
|
|
|
+ subUserCustomName:null,
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -1729,6 +1736,7 @@ export default {
|
|
|
// this.getcusProjectList()
|
|
|
this.authorityToJudge()
|
|
|
this.getProjectSort()
|
|
|
+ this.getSubUserCustom()
|
|
|
},
|
|
|
filters: {
|
|
|
numberToCurrency(value) {
|
|
@@ -2305,6 +2313,8 @@ export default {
|
|
|
sl.onlyShowWarning=0
|
|
|
sl.startDate = this.rangeDatas[0]
|
|
|
sl.endDate = this.rangeDatas[1]
|
|
|
+ sl.departmentId = this.departmentIdArray.length > 0 ? this.departmentIdArray[this.departmentIdArray.length - 1] : ''
|
|
|
+ sl.subUserCustomName = this.subUserCustomName ? this.subUserCustomName: null
|
|
|
} else if(this.ins == 22) {
|
|
|
fName = '分类工时明细表' + '.xlsx'
|
|
|
url = "/report/exportUserWorkTimeByCategory"
|
|
@@ -2457,6 +2467,26 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ // 获取人员自定义 员工类型下的下拉数据
|
|
|
+ getSubUserCustom() {
|
|
|
+ this.http.post('/sub-user-custom/listWithName',{userCustomName:'员工类型'},
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.subUserCustom=res.data
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
// 获取EFT报表的数据
|
|
|
getETF() {
|
|
|
this.getCustomName();
|
|
@@ -3708,6 +3738,12 @@ export default {
|
|
|
endDate: this.rangeDatas[1],
|
|
|
onlyShowWarning: 0
|
|
|
}
|
|
|
+ if(this.departmentIdArray.length != 0){
|
|
|
+ params.departmentId = this.departmentIdArray[this.departmentIdArray.length - 1]
|
|
|
+ }
|
|
|
+ if(this.subUserCustomName){
|
|
|
+ params.subUserCustomName=this.subUserCustomName
|
|
|
+ }
|
|
|
this.listLoading = true
|
|
|
let { data } = await this.postData('/project/getMembProjectCateRatio', params)
|
|
|
let { categoryList, userList } = data
|