|
|
|
@ -79,6 +79,16 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'文档负责人'"> |
|
|
|
<el-select v-model="searchData.projectLeader" placeholder="请选择" clearable style="width: 130px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in projectProjectLeadersList" |
|
|
|
:key = "i.projectLeaderId" |
|
|
|
:label = "i.projectLeader" |
|
|
|
:value = "i.projectLeader"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'是否上传'"> |
|
|
|
<el-select filterable v-model="searchData.uploadedFlag" style="width: 130px"> |
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
@ -251,6 +261,9 @@ export default { |
|
|
|
finalPartNosList() { |
|
|
|
return this.allPersonnelInfoList.filter(item => item.finalPartNoId !== undefined); |
|
|
|
}, |
|
|
|
projectProjectLeadersList() { |
|
|
|
return this.allPersonnelInfoList.filter(item => item.projectLeaderId !== undefined); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
data() { |
|
|
|
@ -304,6 +317,7 @@ export default { |
|
|
|
finalPartNo: '', |
|
|
|
closeStartDate: '', |
|
|
|
closeEndDate: '', |
|
|
|
projectLeader: '', |
|
|
|
page: 1, |
|
|
|
limit: 10, |
|
|
|
}, |
|
|
|
@ -938,6 +952,24 @@ export default { |
|
|
|
fixed: '', |
|
|
|
columnWidth: 70, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 401006, |
|
|
|
serialNumber: '401006Table1ProofingPhase', |
|
|
|
tableId: "401006Table1", |
|
|
|
tableName: "项目信息待上传文件表", |
|
|
|
columnProp: 'proofingPhase', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: '打样阶段', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 70, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 401006, |
|
|
|
@ -1235,8 +1267,8 @@ export default { |
|
|
|
// 获取数据列表 |
|
|
|
getDataList (params) { |
|
|
|
this.selectTypeFlag = params |
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
this.searchData.page = this.pageIndex |
|
|
|
this.searchData.limit = 20 |
|
|
|
this.searchData.page = 1 |
|
|
|
if (this.$route.query.flag === '2') { |
|
|
|
searchProjectOverUploadsDocumentList(this.searchData).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
@ -1315,6 +1347,55 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ |
|
|
|
console.log('1',this.searchData.projectLeader) |
|
|
|
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] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
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() |
|
|
|
@ -1397,6 +1478,55 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ |
|
|
|
console.log('2',this.searchData.projectLeader) |
|
|
|
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] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
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() |
|
|
|
@ -1489,6 +1619,55 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null) { |
|
|
|
console.log('3',this.searchData.projectLeader) |
|
|
|
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] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
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' |
|
|
|
} |
|
|
|
@ -1589,6 +1768,54 @@ 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] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
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() |
|
|
|
@ -1671,6 +1898,54 @@ 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] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
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() |
|
|
|
@ -1763,6 +2038,54 @@ 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] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
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' |
|
|
|
} |
|
|
|
@ -1785,6 +2108,49 @@ export default { |
|
|
|
const projectManagersMap = new Map(); |
|
|
|
const engineersMap = new Map(); |
|
|
|
const finalPartNosMap = new Map(); |
|
|
|
const projectProjectLeadersMap = new Map(); |
|
|
|
|
|
|
|
for (let i = 0; i < allPersonnelInfoDataList.length; i++) { |
|
|
|
if (allPersonnelInfoDataList[i].responsibleDepartment === 'R001'){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].projectManager.split("-")[1] |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R002'){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].projectOwner.split("-")[1] |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R004'){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].engineer.split("-")[1] |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R005'){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].cQualityEngineer1.split("-")[1] |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R007'){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].cQualityEngineer2.split("-")[1] |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R008'){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].cQualityEngineer3.split("-")[1] |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R009'){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].cManufactureEngineer.split("-")[1] |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R012'){ |
|
|
|
if (allPersonnelInfoDataList[i].docEngineer === null || allPersonnelInfoDataList[i].docEngineer === ''){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = '' |
|
|
|
} else { |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].docEngineer.split("-")[1] |
|
|
|
} |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R011'){ |
|
|
|
if (allPersonnelInfoDataList[i].cQualityEngineer4 === null || allPersonnelInfoDataList[i].cQualityEngineer4 === ''){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = '' |
|
|
|
} else { |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].cQualityEngineer4.split("-")[1] |
|
|
|
} |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R013'){ |
|
|
|
if (allPersonnelInfoDataList[i].cQualityEngineer5 === null || allPersonnelInfoDataList[i].cQualityEngineer5 === ''){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = '' |
|
|
|
} else { |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].cQualityEngineer5.split("-")[1] |
|
|
|
} |
|
|
|
} else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R014'){ |
|
|
|
if (allPersonnelInfoDataList[i].cQualityEngineer6 === null || allPersonnelInfoDataList[i].cQualityEngineer6 === ''){ |
|
|
|
allPersonnelInfoDataList[i].projectLeader = '' |
|
|
|
} else { |
|
|
|
allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].cQualityEngineer6.split("-")[1] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
allPersonnelInfoDataList.forEach((item) => { |
|
|
|
// Handle project owners |
|
|
|
@ -1829,6 +2195,16 @@ export default { |
|
|
|
}); |
|
|
|
allPersonnelList.push(finalPartNosMap.get(item.finalPartNo)); |
|
|
|
} |
|
|
|
|
|
|
|
// Handle projectProjectLeaders |
|
|
|
if (!projectProjectLeadersMap.has(item.projectLeader) && item.projectLeader !== null && item.projectLeader !== '') { |
|
|
|
const projectLeaderId = projectProjectLeadersMap.size + 1; |
|
|
|
projectProjectLeadersMap.set(item.projectLeader, { |
|
|
|
projectLeaderId, |
|
|
|
projectLeader: item.projectLeader, |
|
|
|
}); |
|
|
|
allPersonnelList.push(projectProjectLeadersMap.get(item.projectLeader)); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.allPersonnelInfoList = allPersonnelList; |
|
|
|
|