From 742bb8e573059693829d38f537a2e1326d8a3aec Mon Sep 17 00:00:00 2001 From: jiayang yue Date: Mon, 12 May 2025 13:01:51 +0800 Subject: [PATCH] =?UTF-8?q?2025.05.10=20NPI=E7=B3=BB=E7=BB=9F=20=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=B7=BB=E5=8A=A0=E5=89=8D=E9=81=93=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E5=B8=88=E8=A7=92=E8=89=B2=20=E6=96=B0=E5=A2=9E=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20part=20=E8=87=AA=E5=8A=A8=E9=82=AE=E4=BB=B6?= =?UTF-8?q?=E6=8F=90=E9=86=92=E5=8A=9F=E8=83=BD=20=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=8E=89part=20type=E4=B8=BAOn=20hold=20=E7=9A=84part=E5=8F=8A?= =?UTF-8?q?=E5=85=B6=E6=96=87=E6=A1=A3=EF=BC=88=E6=89=93=E6=A0=B7=E3=80=81?= =?UTF-8?q?=E9=87=8F=E4=BA=A7=E3=80=81=E7=A1=AE=E8=AE=A4=E3=80=81=E6=89=93?= =?UTF-8?q?=E6=A0=B7=E5=8D=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/eam/eamProjectInfo.vue | 92 ++++++++++++ .../modules/eam/eamProjectInfoForConfirm.vue | 62 +++++++- .../modules/eam/eamProjectInfoForProof.vue | 39 +++++ .../modules/eam/eamProjectInfoForUploads.vue | 133 ++++++++++++++++++ src/views/modules/eam/eamProjectPartInfo.vue | 77 +++++++++- 5 files changed, 399 insertions(+), 4 deletions(-) diff --git a/src/views/modules/eam/eamProjectInfo.vue b/src/views/modules/eam/eamProjectInfo.vue index 692f82e..0aa2e08 100644 --- a/src/views/modules/eam/eamProjectInfo.vue +++ b/src/views/modules/eam/eamProjectInfo.vue @@ -400,6 +400,14 @@ + + + + 保存 @@ -1071,6 +1079,8 @@ import {updateColumnSize} from "../../../api/table"; engineerName:'', ipqcHardTag:'', ipqcHardTagName:'', + cQualityEngineer7:'', + cQualityEngineer7Name:'', //projectCreationDate为当前服务器的时间 projectCreationDate: new Date(), finalPartNo:'', @@ -1534,6 +1544,24 @@ import {updateColumnSize} from "../../../api/table"; fixed: '', columnWidth: 120, }, + { + userId: this.$store.state.user.name, + functionId: 401003, + serialNumber: '401003Table1CQualityEngineer7Name', + tableId: "401003Table1", + tableName: "项目信息表", + columnProp: 'cQualityEngineer7Name', + headerAlign: "center", + align: "left", + columnLabel: '前道工程师', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, { userId: this.$store.state.user.name, functionId: 401003, @@ -2005,6 +2033,24 @@ import {updateColumnSize} from "../../../api/table"; fixed: '', columnWidth: 120, }, + { + userId: this.$store.state.user.name, + functionId: 401003, + serialNumber: '401003Table2CQualityEngineer7Name', + tableId: "401003Table2", + tableName: "项目信息物料表", + columnProp: 'cQualityEngineer7Name', + headerAlign: "center", + align: "left", + columnLabel: '前道工程师', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, { userId: this.$store.state.user.name, functionId: 401003, @@ -2624,6 +2670,15 @@ import {updateColumnSize} from "../../../api/table"; } }) } + if (this.tagNo === 2012) { + this.modalData.cQualityEngineer7 = val.username + '-' + val.user_display + this.modalData.cQualityEngineer7Name = this.modalData.cQualityEngineer7.split('-')[1] + searchBusinessInfo7(this.searchBusinessData7).then(({data}) => { + if (data && data.code === 0){ + this.businessDataList7 = data.rows; + } + }) + } }, newCustomer () { @@ -2785,6 +2840,9 @@ import {updateColumnSize} from "../../../api/table"; if (item.ipqcHardTag !== null && item.ipqcHardTag !== '') { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]; } + if (item.cQualityEngineer7 !== null && item.cQualityEngineer7 !== '') { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]; + } }); for (let i = 0; i < this.exportList.length; i++) { @@ -2822,6 +2880,10 @@ import {updateColumnSize} from "../../../api/table"; if (this.exportList[i].ipqcHardTag !== null && this.exportList[i].ipqcHardTag !== '') { this.exportList[i].projectLeader = this.exportList[i].ipqcHardTag.split("-")[1]; } + } else if (this.exportList[i].responsibleDepartment === 'R016') { + if (this.exportList[i].cQualityEngineer7 !== null && this.exportList[i].cQualityEngineer7 !== '') { + this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer7.split("-")[1]; + } } } }) @@ -2888,6 +2950,9 @@ import {updateColumnSize} from "../../../api/table"; if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) // 获取全部人员信息用于下拉框 @@ -2960,6 +3025,9 @@ import {updateColumnSize} from "../../../api/table"; if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) // 获取全部人员信息用于下拉框 @@ -3109,6 +3177,8 @@ import {updateColumnSize} from "../../../api/table"; docEngineerName: '', ipqcHardTag: '', ipqcHardTagName: '', + cQualityEngineer7: '', + cQualityEngineer7Name: '', projectCreationDate:new Date(), createDate: '', // active: 'Y', @@ -3155,6 +3225,7 @@ import {updateColumnSize} from "../../../api/table"; cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名 docEngineer: row.docEngineer, ipqcHardTag: row.ipqcHardTag, + cQualityEngineer7: row.cQualityEngineer7, projectCreationDate: row.projectCreationDate, status: row.status, // active: row.active, @@ -3176,6 +3247,9 @@ import {updateColumnSize} from "../../../api/table"; if (row.ipqcHardTag != null && row.ipqcHardTag !== ''){ this.modalData.ipqcHardTagName= row.ipqcHardTag.split('-')[1] // 截取用户名 } + if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== ''){ + this.modalData.cQualityEngineer7Name= row.cQualityEngineer7.split('-')[1] // 截取用户名 + } this.modalDisableFlag = true this.modalPartDisableFlag = false this.modalFlag = true @@ -3332,6 +3406,7 @@ import {updateColumnSize} from "../../../api/table"; cManufactureEngineer: this.modalData.cManufactureEngineer, docEngineer: this.modalData.docEngineer, ipqcHardTag: this.modalData.ipqcHardTag, + cQualityEngineer7: this.modalData.cQualityEngineer7, projectCreationDate: this.modalData.projectCreationDate, createDate: this.modalData.createDate, createBy: this.modalData.createBy, @@ -3405,6 +3480,7 @@ import {updateColumnSize} from "../../../api/table"; cManufactureEngineer: this.modalData.cManufactureEngineer, docEngineer: this.modalData.docEngineer, ipqcHardTag: this.modalData.ipqcHardTag, + cQualityEngineer7: this.modalData.cQualityEngineer7, projectCreationDate: this.modalData.projectCreationDate, createDate: this.modalData.createDate, createBy: this.modalData.createBy, @@ -3482,6 +3558,7 @@ import {updateColumnSize} from "../../../api/table"; cManufactureEngineer: this.modalData.cManufactureEngineer, docEngineer: this.modalData.docEngineer, ipqcHardTag: this.modalData.ipqcHardTag, + cQualityEngineer7: this.modalData.cQualityEngineer7, projectCreationDate: this.modalData.projectCreationDate, createDate: this.modalData.createDate, createBy: this.modalData.createBy, @@ -3845,6 +3922,8 @@ import {updateColumnSize} from "../../../api/table"; this.modalData.docEngineerName = '' this.modalData.ipqcHardTag = '' this.modalData.ipqcHardTagName = '' + this.modalData.cQualityEngineer7 = '' + this.modalData.cQualityEngineer7Name = '' this.modalData.projectCreationDate = new Date() }, @@ -3885,6 +3964,9 @@ import {updateColumnSize} from "../../../api/table"; if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) } }) @@ -3926,6 +4008,7 @@ import {updateColumnSize} from "../../../api/table"; cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名 docEngineer: row.docEngineer, ipqcHardTag: row.ipqcHardTag, + cQualityEngineer7: row.cQualityEngineer7, projectCreationDate: row.projectCreationDate, status: '草稿', partType: 'Active', @@ -3958,6 +4041,11 @@ import {updateColumnSize} from "../../../api/table"; } else { this.modalData.ipqcHardTag = '' } + if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== ''){ + this.modalData.cQualityEngineer7Name = row.cQualityEngineer7.split('-')[1] // 截取用户名 + } else { + this.modalData.cQualityEngineer7 = '' + } this.modalDisableFlag = true this.modalPartDisableFlag = true this.modalFlag = true @@ -3999,6 +4087,7 @@ import {updateColumnSize} from "../../../api/table"; cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名 docEngineer: row.docEngineer, ipqcHardTag: row.ipqcHardTag, + cQualityEngineer7: row.cQualityEngineer7, projectCreationDate: row.buildDate, status: row.status, partType: row.partType, @@ -4021,6 +4110,9 @@ import {updateColumnSize} from "../../../api/table"; if (row.ipqcHardTag != null && row.ipqcHardTag !== ''){ this.modalData.ipqcHardTagName = row.ipqcHardTag.split('-')[1] // 截取用户名 } + if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== ''){ + this.modalData.cQualityEngineer7Name = row.cQualityEngineer7.split('-')[1] // 截取用户名 + } this.modalDisableFlag = true this.modalPartDisableFlag = true this.modalFlag = true diff --git a/src/views/modules/eam/eamProjectInfoForConfirm.vue b/src/views/modules/eam/eamProjectInfoForConfirm.vue index 09a58fb..205beb9 100644 --- a/src/views/modules/eam/eamProjectInfoForConfirm.vue +++ b/src/views/modules/eam/eamProjectInfoForConfirm.vue @@ -432,6 +432,8 @@ export default { docEngineerName:'', ipqcHardTag:'', ipqcHardTagName:'', + cQualityEngineer7:'', + cQualityEngineer7Name:'', //projectCreationDate为当前服务器的时间 projectCreationDate: new Date(), finalPartNo:'', @@ -893,6 +895,24 @@ export default { fixed: '', columnWidth: 120, }, + { + userId: this.$store.state.user.name, + functionId: 401007, + serialNumber: '401007Table1CQualityEngineer7', + tableId: "401007Table1", + tableName: "项目信息待文档确认表", + columnProp: 'cQualityEngineer7Name', + headerAlign: "center", + align: "left", + columnLabel: '前道工程师', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, { userId: this.$store.state.user.name, functionId: 401007, @@ -1213,6 +1233,9 @@ export default { if (item.ipqcHardTag !== null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]; } + if (item.cQualityEngineer7 !== null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]; + } }); for (let i = 0; i < this.exportList.length; i++) { @@ -1250,6 +1273,10 @@ export default { if (this.exportList[i].ipqcHardTag !== null && this.exportList[i].ipqcHardTag !== '') { this.exportList[i].projectLeader = this.exportList[i].ipqcHardTag.split("-")[1]; } + } else if (this.exportList[i].responsibleDepartment === 'R016') { + if (this.exportList[i].cQualityEngineer7 !== null && this.exportList[i].cQualityEngineer7 !== '') { + this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer7.split("-")[1]; + } } } }) @@ -1280,6 +1307,7 @@ export default { searchOverConfirmProgressList(this.searchData).then(({data}) => { if (data.code === 0) { this.dataList = data.page.list + console.log('list', this.dataList) this.allPersonnelInfoList = data.list this.pageIndex = data.page.currPage this.pageSize = data.page.pageSize @@ -1317,7 +1345,13 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) + console.log('list2', this.dataList) } // 获取全部人员信息用于下拉框 this.getAllPersonnelList() @@ -1363,6 +1397,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) } // 获取全部人员信息用于下拉框 @@ -1380,7 +1419,7 @@ export default { } } }) - if (pjmList.includes(this.$store.state.user.name)) { + if (pjmList.includes(this.$store.state.user.name) || this.$store.state.user.name === 'admin') { this.dataList = data.page.list this.allPersonnelInfoList = data.list this.pageIndex = data.page.currPage @@ -1419,12 +1458,16 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) } } else { this.$route.query.flag = '3' } - // 获取全部人员信息用于下拉框 this.getAllPersonnelList() }) @@ -1484,6 +1527,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) } // 获取全部人员信息用于下拉框 @@ -1530,6 +1578,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) } // 获取全部人员信息用于下拉框 @@ -1585,6 +1638,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) // } } else { diff --git a/src/views/modules/eam/eamProjectInfoForProof.vue b/src/views/modules/eam/eamProjectInfoForProof.vue index b3b85f6..b446960 100644 --- a/src/views/modules/eam/eamProjectInfoForProof.vue +++ b/src/views/modules/eam/eamProjectInfoForProof.vue @@ -649,6 +649,24 @@ export default { fixed: '', columnWidth: 120, }, + { + userId: this.$store.state.user.name, + functionId: 401008, + serialNumber: '401008Table1CQualityEngineer7', + tableId: "401008Table1", + tableName: "项目打样记录表", + columnProp: 'cQualityEngineer7Name', + headerAlign: "center", + align: "left", + columnLabel: '前道工程师', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, { userId: this.$store.state.user.name, functionId: 401008, @@ -986,6 +1004,9 @@ export default { if (item.ipqcHardTag !== null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]; } + if (item.cQualityEngineer7 !== null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]; + } }); for (let i = 0; i < this.exportList.length; i++) { @@ -1023,6 +1044,10 @@ export default { if (this.exportList[i].ipqcHardTag !== null && this.exportList[i].ipqcHardTag !== '') { this.exportList[i].projectLeader = this.exportList[i].ipqcHardTag.split("-")[1]; } + } else if (this.exportList[i].responsibleDepartment === 'R016') { + if (this.exportList[i].cQualityEngineer7 !== null && this.exportList[i].cQualityEngineer7 !== '') { + this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer7.split("-")[1]; + } } } }) @@ -1085,6 +1110,9 @@ export default { if (item.ipqcHardTag !== null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]; } + if (item.cQualityEngineer7 !== null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]; + } }); for (let i = 0; i < this.dataList.length; i++) { @@ -1122,6 +1150,10 @@ export default { if (this.dataList[i].ipqcHardTag !== null && this.dataList[i].ipqcHardTag !== '') { 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 = this.dataList[i].cQualityEngineer7.split("-")[1]; + } } } @@ -1263,6 +1295,9 @@ export default { if (item.ipqcHardTag !== null && item.ipqcHardTag !== '') { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]; } + if (item.cQualityEngineer7 !== null && item.cQualityEngineer7 !== '') { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]; + } }); for (let i = 0; i < this.dataList.length; i++) { @@ -1300,6 +1335,10 @@ export default { if (this.dataList[i].ipqcHardTag !== null && this.dataList[i].ipqcHardTag !== '') { 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 = this.dataList[i].cQualityEngineer7.split("-")[1]; + } } } diff --git a/src/views/modules/eam/eamProjectInfoForUploads.vue b/src/views/modules/eam/eamProjectInfoForUploads.vue index 47f910b..1aead63 100644 --- a/src/views/modules/eam/eamProjectInfoForUploads.vue +++ b/src/views/modules/eam/eamProjectInfoForUploads.vue @@ -859,6 +859,24 @@ export default { fixed: '', columnWidth: 120, }, + { + userId: this.$store.state.user.name, + functionId: 401006, + serialNumber: '401006Table1CQualityEngineer7', + tableId: "401006Table1", + tableName: "项目信息待上传文件表", + columnProp: 'cQualityEngineer7Name', + headerAlign: "center", + align: "left", + columnLabel: '前道工程师', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, { userId: this.$store.state.user.name, functionId: 401006, @@ -1751,6 +1769,9 @@ export default { if (item.ipqcHardTag !== null && item.ipqcHardTag !== '') { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]; } + if (item.cQualityEngineer7 !== null && item.cQualityEngineer7 !== '') { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]; + } }); for (let i = 0; i < this.exportList.length; i++) { @@ -1788,6 +1809,10 @@ export default { if (this.exportList[i].ipqcHardTag !== null && this.exportList[i].ipqcHardTag !== '') { this.exportList[i].projectLeader = this.exportList[i].ipqcHardTag.split("-")[1]; } + } else if (this.exportList[i].responsibleDepartment === 'R016') { + if (this.exportList[i].cQualityEngineer7 !== null && this.exportList[i].cQualityEngineer7 !== '') { + this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer7.split("-")[1]; + } } } }) @@ -1862,6 +1887,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) for (let i = 0; i < this.dataList.length; i++) { if (this.dataList[i].responsibleDepartment === 'R001'){ @@ -1908,6 +1938,12 @@ export default { } 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] + } } } if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ @@ -1957,6 +1993,12 @@ export default { } 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] + } } } this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); @@ -2009,6 +2051,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split("-")[1] + } }) for (let i = 0; i < this.dataList.length; i++) { if (this.dataList[i].responsibleDepartment === 'R001'){ @@ -2055,6 +2102,12 @@ export default { } 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] + } } } if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ @@ -2104,6 +2157,12 @@ export default { } 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] + } } } this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); @@ -2166,6 +2225,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split("-")[1] + } }) for (let i = 0; i < this.dataList.length; i++) { if (this.dataList[i].responsibleDepartment === 'R001') { @@ -2212,6 +2276,12 @@ export default { } 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] + } } } if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null) { @@ -2260,6 +2330,12 @@ export default { } 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] + } } } this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); @@ -2330,6 +2406,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split("-")[1] + } }) for (let i = 0; i < this.dataList.length; i++) { if (this.dataList[i].responsibleDepartment === 'R001'){ @@ -2376,6 +2457,12 @@ export default { } 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] + } } } if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ @@ -2425,6 +2512,12 @@ export default { } 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] + } } } this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); @@ -2477,6 +2570,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split("-")[1] + } }) for (let i = 0; i < this.dataList.length; i++) { if (this.dataList[i].responsibleDepartment === 'R001'){ @@ -2523,6 +2621,12 @@ export default { } 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] + } } } if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ @@ -2572,6 +2676,12 @@ export default { } 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] + } } } this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); @@ -2634,6 +2744,11 @@ export default { } else { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 === null || item.cQualityEngineer7 === ''){ + item.cQualityEngineer7Name = '' + } else { + item.cQualityEngineer7Name = item.cQualityEngineer7.split("-")[1] + } }) for (let i = 0; i < this.dataList.length; i++) { if (this.dataList[i].responsibleDepartment === 'R001') { @@ -2680,6 +2795,12 @@ export default { } 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] + } } } if (this.searchData.projectLeader !== '' && this.searchData.projectLeader !== null){ @@ -2729,6 +2850,12 @@ export default { } 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] + } } } this.dataList = this.dataList.filter(item => item.projectLeader === this.searchData.projectLeader); @@ -2805,6 +2932,12 @@ export default { } else { allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].ipqcHardTag.split("-")[1] } + } else if(allPersonnelInfoDataList[i].responsibleDepartment === 'R016'){ + if (allPersonnelInfoDataList[i].cQualityEngineer7 === null || allPersonnelInfoDataList[i].cQualityEngineer7 === ''){ + allPersonnelInfoDataList[i].projectLeader = '' + } else { + allPersonnelInfoDataList[i].projectLeader = allPersonnelInfoDataList[i].cQualityEngineer7.split("-")[1] + } } } diff --git a/src/views/modules/eam/eamProjectPartInfo.vue b/src/views/modules/eam/eamProjectPartInfo.vue index e5e8f9d..6e9afac 100644 --- a/src/views/modules/eam/eamProjectPartInfo.vue +++ b/src/views/modules/eam/eamProjectPartInfo.vue @@ -2007,6 +2007,8 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; engineerName:'', ipqcHardTag:'', ipqcHardTagName:'', + cQualityEngineer7:'', + cQualityEngineer7Name:'', //projectCreationDate为当前服务器的时间 projectCreationDate: new Date(), finalPartNo:'', @@ -2574,6 +2576,24 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; fixed: '', columnWidth: 120, }, + { + userId: this.$store.state.user.name, + functionId: 401004, + serialNumber: '401004Table1CQualityEngineer7', + tableId: "401004Table1", + tableName: "项目物料表", + columnProp: 'cQualityEngineer7Name', + headerAlign: "center", + align: "left", + columnLabel: '前道工程师', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + }, { userId: this.$store.state.user.name, functionId: 401004, @@ -3939,6 +3959,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (item.ipqcHardTag !== null && item.ipqcHardTag !== '') { item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]; } + if (item.projectManager !== null && item.projectManager !== '') { + item.projectManagerName = item.projectManager.split('-')[1]; + } }); for (let i = 0; i < this.exportList.length; i++) { @@ -3976,6 +3999,10 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (this.exportList[i].ipqcHardTag !== null && this.exportList[i].ipqcHardTag !== '') { this.exportList[i].projectLeader = this.exportList[i].ipqcHardTag.split("-")[1]; } + } else if (this.exportList[i].responsibleDepartment === 'R016') { + if (this.exportList[i].cQualityEngineer7 !== null && this.exportList[i].cQualityEngineer7 !== '') { + this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer7.split("-")[1]; + } } } }) @@ -4043,6 +4070,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) // 判断是否全部存在数据 if (this.totalPage > 0) { @@ -4085,6 +4115,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) // 获取全部人员信息用于下拉框 @@ -4146,6 +4179,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){ item.ipqcHardTagName = item.ipqcHardTag.split('-')[1] } + if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){ + item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1] + } }) // 获取全部人员信息用于下拉框 @@ -4341,6 +4377,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名 docEngineer: row.docEngineer, ipqcHardTag: row.ipqcHardTag, + ipqcHardTagName: row.ipqcHardTag.split('-')[1], // 截取用户名 + cQualityEngineer7: row.cQualityEngineer7, + cQualityEngineer7Name: row.cQualityEngineer7.split('-')[1], // 截取用户名 finalPartNo: row.finalPartNo, finalPartDesc: row.finalPartDesc, // active: row.active, @@ -4362,6 +4401,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (row.ipqcHardTag != null && row.ipqcHardTag !== ''){ this.modalData.ipqcHardTagName= row.ipqcHardTag.split('-')[1] // 截取用户名 } + if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== ''){ + this.modalData.cQualityEngineer7Name= row.cQualityEngineer7.split('-')[1] // 截取用户名 + } this.getFinalPartDesc() this.formalPartNoFlag = true }, @@ -4392,6 +4434,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; cManufactureEngineer: row.cManufactureEngineer, docEngineer: row.docEngineer, ipqcHardTag: row.ipqcHardTag, + cQualityEngineer7: row.cQualityEngineer7, remark: '', planStartDate : new Date(), proofingNo: '', @@ -4522,6 +4565,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名 docEngineer: row.docEngineer, ipqcHardTag: row.ipqcHardTag, + ipqcHardTagName: row.ipqcHardTag.split('-')[1], // 截取用户名 + cQualityEngineer7: row.cQualityEngineer7, + cQualityEngineer7Name: row.cQualityEngineer7.split('-')[1], // 截取用户名 buildDate: row.buildDate, status: row.status, partType: row.partType, @@ -4544,6 +4590,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (row.ipqcHardTag != null && row.ipqcHardTag !== '') { this.modalData.ipqcHardTagName = row.ipqcHardTag.split('-')[1] // 截取用户名 } + if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== '') { + this.modalData.cQualityEngineer7Name = row.cQualityEngineer7.split('-')[1] // 截取用户名 + } if (row.status === '草稿') { if (row.projectOwner.split('-')[0] === this.$store.state.user.name) { this.modalData.status = '进行中' @@ -4680,6 +4729,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名 docEngineer: row.docEngineer, ipqcHardTag: row.ipqcHardTag, + ipqcHardTagName: row.ipqcHardTag.split('-')[1], // 截取用户名 + cQualityEngineer7: row.cQualityEngineer7, + cQualityEngineer7Name: row.cQualityEngineer7.split('-')[1], // 截取用户名 buildDate: row.buildDate, status: row.status, partType: row.partType, @@ -4702,6 +4754,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (row.ipqcHardTag != null && row.ipqcHardTag !== '') { this.modalData.ipqcHardTagName = row.ipqcHardTag.split('-')[1] // 截取用户名 } + if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== '') { + this.modalData.cQualityEngineer7Name = row.cQualityEngineer7.split('-')[1] // 截取用户名 + } if (row.status === '已量产') { this.modalData.status = '进行中' this.modalData.closeDate = '' @@ -4753,6 +4808,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; cManufactureEngineer: this.proofingCurrentRow.cManufactureEngineer, docEngineer: this.proofingCurrentRow.docEngineer, ipqcHardTag: this.proofingCurrentRow.ipqcHardTag, + cQualityEngineer7: this.proofingCurrentRow.cQualityEngineer7, // username:this.$store.state.user.name, page: 1, limit: 1000 @@ -4789,6 +4845,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; cManufactureEngineer: this.proofingCurrentRow.cManufactureEngineer, docEngineer: this.proofingCurrentRow.docEngineer, ipqcHardTag: this.proofingCurrentRow.ipqcHardTag, + cQualityEngineer7: this.proofingCurrentRow.cQualityEngineer7, // username:this.$store.state.user.name, page: 1, limit: 1000 @@ -5036,7 +5093,12 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (this.proofingCurrentRow.ipqcHardTag != null && this.proofingCurrentRow.ipqcHardTag !== '') { this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.ipqcHardTag.split('-')[1] // 截取用户名 } - } else { + } else if (this.projectPartDocumentList[i].responsibleDepartment === '前道工程师') { + if (this.proofingCurrentRow.cQualityEngineer7 != null && this.proofingCurrentRow.cQualityEngineer7 !== '') { + this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer7.split('-')[1] // 截取用户名 + } + } + else { this.projectPartDocumentList[i].projectLeader = '' } this.projectPartDocumentList[i].buNo = inData.buNo @@ -5185,7 +5247,12 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (this.proofingCurrentRow.ipqcHardTag != null && this.proofingCurrentRow.ipqcHardTag !== '') { this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.ipqcHardTag.split('-')[1] // 截取用户名 } - } else { + } else if (this.projectOtherDocumentList[i].responsibleDepartment === '前道工程师') { + if (this.proofingCurrentRow.cQualityEngineer7 != null && this.proofingCurrentRow.cQualityEngineer7 !== '') { + this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer7.split('-')[1] // 截取用户名 + } + } + else { this.projectOtherDocumentList[i].projectLeader = '' } } @@ -5439,6 +5506,12 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; if (this.proofingCurrentRow.ipqcHardTag != null && this.proofingCurrentRow.ipqcHardTag !== '') { this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.ipqcHardTag.split('-')[1] // 截取用户名 } + } else if (this.projectAllDocumentList[i].responsibleDepartment === '前道工程师') { + if (this.proofingCurrentRow.cQualityEngineer7 != null && this.proofingCurrentRow.cQualityEngineer7 !== '') { + this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer7.split('-')[1] // 截取用户名 + } + } else { + this.projectAllDocumentList[i].projectLeader = '' } } }