diff --git a/src/views/modules/eam/eamProjectInfoForUploads.vue b/src/views/modules/eam/eamProjectInfoForUploads.vue index ad2dc94..87d555a 100644 --- a/src/views/modules/eam/eamProjectInfoForUploads.vue +++ b/src/views/modules/eam/eamProjectInfoForUploads.vue @@ -101,8 +101,8 @@ - - + + @@ -505,7 +505,7 @@ export default { userId: this.$store.state.user.id, projectId: '', projectNo: '', - uploadedFlag: 'N', + uploadedFlag: '未上传', projectDesc: '', projectPartId: '', testPartNo: '', @@ -2075,72 +2075,6 @@ export default { } } } - if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ - this.dataList = data.list - for (let i = 0; i < this.dataList.length; i++) { - if (this.dataList[i].responsibleDepartment === 'R001'){ - this.dataList[i].projectLeader = this.dataList[i].projectManager.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R002'){ - this.dataList[i].projectLeader = this.dataList[i].projectOwner.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R004'){ - this.dataList[i].projectLeader = this.dataList[i].engineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R005'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer1.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R007'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer2.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R008'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer3.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R009'){ - this.dataList[i].projectLeader = this.dataList[i].cManufactureEngineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R012'){ - if (this.dataList[i].docEngineer === null || this.dataList[i].docEngineer === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R011'){ - if (this.dataList[i].cQualityEngineer4 === null || this.dataList[i].cQualityEngineer4 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer4.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R013'){ - if (this.dataList[i].cQualityEngineer5 === null || this.dataList[i].cQualityEngineer5 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer5.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R014'){ - if (this.dataList[i].cQualityEngineer6 === null || this.dataList[i].cQualityEngineer6 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer6.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R015'){ - if (this.dataList[i].ipqcHardTag === null || this.dataList[i].ipqcHardTag === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].ipqcHardTag.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R016'){ - if (this.dataList[i].cQualityEngineer7 === null || this.dataList[i].cQualityEngineer7 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer7.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R017'){ - if (this.dataList[i].docEngineer2 === null || this.dataList[i].docEngineer2 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer2.split("-")[1] - } - } - } - this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); - this.pageIndex = 1 - this.pageSize = this.dataList.length + 1 - this.totalPage = this.dataList.length + 1 - } } // 获取全部人员信息用于下拉框 this.getAllPersonnelList() @@ -2257,72 +2191,6 @@ export default { } } } - if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ - this.dataList = data.list - for (let i = 0; i < this.dataList.length; i++) { - if (this.dataList[i].responsibleDepartment === 'R001'){ - this.dataList[i].projectLeader = this.dataList[i].projectManager.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R002'){ - this.dataList[i].projectLeader = this.dataList[i].projectOwner.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R004'){ - this.dataList[i].projectLeader = this.dataList[i].engineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R005'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer1.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R007'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer2.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R008'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer3.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R009'){ - this.dataList[i].projectLeader = this.dataList[i].cManufactureEngineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R012'){ - if (this.dataList[i].docEngineer === null || this.dataList[i].docEngineer === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R011'){ - if (this.dataList[i].cQualityEngineer4 === null || this.dataList[i].cQualityEngineer4 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer4.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R013'){ - if (this.dataList[i].cQualityEngineer5 === null || this.dataList[i].cQualityEngineer5 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer5.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R014'){ - if (this.dataList[i].cQualityEngineer6 === null || this.dataList[i].cQualityEngineer6 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer6.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R015'){ - if (this.dataList[i].ipqcHardTag === null || this.dataList[i].ipqcHardTag === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].ipqcHardTag.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R016'){ - if (this.dataList[i].cQualityEngineer7 === null || this.dataList[i].cQualityEngineer7 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer7.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R017') { - if (this.dataList[i].docEngineer2 === null || this.dataList[i].docEngineer2 === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer2.split("-")[1] - } - } - } - this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); - this.pageIndex = 1 - this.pageSize = this.dataList.length + 1 - this.totalPage = this.dataList.length + 1 - } } // 获取全部人员信息用于下拉框 this.getAllPersonnelList() @@ -2448,71 +2316,6 @@ export default { } } } - if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null) { - for (let i = 0; i < this.dataList.length; i++) { - if (this.dataList[i].responsibleDepartment === 'R001') { - this.dataList[i].projectLeader = this.dataList[i].projectManager.split("-")[1] - } else if (this.dataList[i].responsibleDepartment === 'R002') { - this.dataList[i].projectLeader = this.dataList[i].projectOwner.split("-")[1] - } else if (this.dataList[i].responsibleDepartment === 'R004') { - this.dataList[i].projectLeader = this.dataList[i].engineer.split("-")[1] - } else if (this.dataList[i].responsibleDepartment === 'R005') { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer1.split("-")[1] - } else if (this.dataList[i].responsibleDepartment === 'R007') { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer2.split("-")[1] - } else if (this.dataList[i].responsibleDepartment === 'R008') { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer3.split("-")[1] - } else if (this.dataList[i].responsibleDepartment === 'R009') { - this.dataList[i].projectLeader = this.dataList[i].cManufactureEngineer.split("-")[1] - } else if (this.dataList[i].responsibleDepartment === 'R012') { - if (this.dataList[i].docEngineer === null || this.dataList[i].docEngineer === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer.split("-")[1] - } - } else if (this.dataList[i].responsibleDepartment === 'R011') { - if (this.dataList[i].cQualityEngineer4 === null || this.dataList[i].cQualityEngineer4 === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer4.split("-")[1] - } - } else if (this.dataList[i].responsibleDepartment === 'R013') { - if (this.dataList[i].cQualityEngineer5 === null || this.dataList[i].cQualityEngineer5 === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer5.split("-")[1] - } - } else if (this.dataList[i].responsibleDepartment === 'R014') { - if (this.dataList[i].cQualityEngineer6 === null || this.dataList[i].cQualityEngineer6 === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer6.split("-")[1] - } - } else if (this.dataList[i].responsibleDepartment === 'R015') { - if (this.dataList[i].ipqcHardTag === null || this.dataList[i].ipqcHardTag === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].ipqcHardTag.split("-")[1] - } - } else if (this.dataList[i].responsibleDepartment === 'R016') { - if (this.dataList[i].cQualityEngineer7 === null || this.dataList[i].cQualityEngineer7 === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer7.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R017'){ - if (this.dataList[i].docEngineer2 === null || this.dataList[i].docEngineer2 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer2.split("-")[1] - } - } - } - this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); - this.pageIndex = 1 - this.pageSize = this.dataList.length + 1 - this.totalPage = this.dataList.length + 1 - } } else { this.$route.query.flag = '1' } @@ -2646,72 +2449,6 @@ export default { } } } - if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ - this.dataList = data.list - for (let i = 0; i < this.dataList.length; i++) { - if (this.dataList[i].responsibleDepartment === 'R001'){ - this.dataList[i].projectLeader = this.dataList[i].projectManager.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R002'){ - this.dataList[i].projectLeader = this.dataList[i].projectOwner.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R004'){ - this.dataList[i].projectLeader = this.dataList[i].engineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R005'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer1.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R007'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer2.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R008'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer3.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R009'){ - this.dataList[i].projectLeader = this.dataList[i].cManufactureEngineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R012'){ - if (this.dataList[i].docEngineer === null || this.dataList[i].docEngineer === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R011'){ - if (this.dataList[i].cQualityEngineer4 === null || this.dataList[i].cQualityEngineer4 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer4.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R013'){ - if (this.dataList[i].cQualityEngineer5 === null || this.dataList[i].cQualityEngineer5 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer5.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R014'){ - if (this.dataList[i].cQualityEngineer6 === null || this.dataList[i].cQualityEngineer6 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer6.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R015'){ - if (this.dataList[i].ipqcHardTag === null || this.dataList[i].ipqcHardTag === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].ipqcHardTag.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R016'){ - if (this.dataList[i].cQualityEngineer7 === null || this.dataList[i].cQualityEngineer7 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer7.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R017') { - if (this.dataList[i].docEngineer2 === null || this.dataList[i].docEngineer2 === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer2.split("-")[1] - } - } - } - this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); - this.pageIndex = 1 - this.pageSize = -1 - this.totalPage = this.dataList.length + 1 - } } // 获取全部人员信息用于下拉框 this.getAllPersonnelList() @@ -2827,72 +2564,6 @@ export default { } } } - if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ - this.dataList = data.list - for (let i = 0; i < this.dataList.length; i++) { - if (this.dataList[i].responsibleDepartment === 'R001'){ - this.dataList[i].projectLeader = this.dataList[i].projectManager.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R002'){ - this.dataList[i].projectLeader = this.dataList[i].projectOwner.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R004'){ - this.dataList[i].projectLeader = this.dataList[i].engineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R005'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer1.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R007'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer2.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R008'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer3.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R009'){ - this.dataList[i].projectLeader = this.dataList[i].cManufactureEngineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R012'){ - if (this.dataList[i].docEngineer === null || this.dataList[i].docEngineer === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R011'){ - if (this.dataList[i].cQualityEngineer4 === null || this.dataList[i].cQualityEngineer4 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer4.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R013'){ - if (this.dataList[i].cQualityEngineer5 === null || this.dataList[i].cQualityEngineer5 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer5.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R014'){ - if (this.dataList[i].cQualityEngineer6 === null || this.dataList[i].cQualityEngineer6 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer6.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R015'){ - if (this.dataList[i].ipqcHardTag === null || this.dataList[i].ipqcHardTag === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].ipqcHardTag.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R016'){ - if (this.dataList[i].cQualityEngineer7 === null || this.dataList[i].cQualityEngineer7 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer7.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R017') { - if (this.dataList[i].docEngineer2 === null || this.dataList[i].docEngineer2 === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer2.split("-")[1] - } - } - } - this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); - this.pageIndex = 1 - this.pageSize = -1 - this.totalPage = this.dataList.length + 1 - } } // 获取全部人员信息用于下拉框 this.getAllPersonnelList() @@ -3018,72 +2689,6 @@ export default { } } } - if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ - this.dataList = data.list - for (let i = 0; i < this.dataList.length; i++) { - if (this.dataList[i].responsibleDepartment === 'R001'){ - this.dataList[i].projectLeader = this.dataList[i].projectManager.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R002'){ - this.dataList[i].projectLeader = this.dataList[i].projectOwner.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R004'){ - this.dataList[i].projectLeader = this.dataList[i].engineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R005'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer1.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R007'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer2.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R008'){ - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer3.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R009'){ - this.dataList[i].projectLeader = this.dataList[i].cManufactureEngineer.split("-")[1] - } else if(this.dataList[i].responsibleDepartment === 'R012'){ - if (this.dataList[i].docEngineer === null || this.dataList[i].docEngineer === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R011'){ - if (this.dataList[i].cQualityEngineer4 === null || this.dataList[i].cQualityEngineer4 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer4.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R013'){ - if (this.dataList[i].cQualityEngineer5 === null || this.dataList[i].cQualityEngineer5 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer5.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R014'){ - if (this.dataList[i].cQualityEngineer6 === null || this.dataList[i].cQualityEngineer6 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer6.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R015'){ - if (this.dataList[i].ipqcHardTag === null || this.dataList[i].ipqcHardTag === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].ipqcHardTag.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R016'){ - if (this.dataList[i].cQualityEngineer7 === null || this.dataList[i].cQualityEngineer7 === ''){ - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].cQualityEngineer7.split("-")[1] - } - } else if(this.dataList[i].responsibleDepartment === 'R017') { - if (this.dataList[i].docEngineer2 === null || this.dataList[i].docEngineer2 === '') { - this.dataList[i].projectLeader = '' - } else { - this.dataList[i].projectLeader = this.dataList[i].docEngineer2.split("-")[1] - } - } - } - this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); - this.pageIndex = 1 - this.pageSize = -1 - this.totalPage = this.dataList.length + 1 - } } else { this.$route.query.flag = '1' } @@ -3400,7 +3005,7 @@ export default { this.dataList.map(item => { item.id = item.documentDefinitionListId }) - return this.dataList.filter(item => item.uploadedFlag !== 'Y') + return this.dataList.filter(item => item.uploadedFlag !== '已上传') }, projectAllDocumentClickRow (row) { this.projectAllDocumentCurrentRow = JSON.parse(JSON.stringify(row)) @@ -3592,7 +3197,7 @@ export default { this.authDelete = !deleteFlag }, tableRowClassName ({row, rowIndex}) { - if (row.status === '正式量产' || row.uploadedFlag === 'Y') { + if (row.status === '正式量产' || row.uploadedFlag === '已上传') { return 'row-production' } return ''