From 06df2ca2748d6626b93d14819f4394750b707920 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Sat, 12 Oct 2024 16:07:21 +0800 Subject: [PATCH] plm BMM --- .../com_tsd_basicInformation.vue | 2 +- src/views/modules/tooling/searchToolApply.vue | 124 ++++++++++++++++-- 2 files changed, 117 insertions(+), 9 deletions(-) diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue index 3624d50..86d3089 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue @@ -156,7 +156,7 @@
- + diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue index b81f646..eb2d6f5 100644 --- a/src/views/modules/tooling/searchToolApply.vue +++ b/src/views/modules/tooling/searchToolApply.vue @@ -242,6 +242,12 @@ + + + + + + @@ -255,11 +261,17 @@ placeholder="结束日期"> - - + + 报价员 + - - + + TP + + + + 采购员 + @@ -448,6 +460,12 @@ status: '', rejectOpinion: '', nodeConclusion: '', + quoter: '', + quoterName: '', + tp: '', + tpName: '', + purchaser: '', + purchaserName: '', menuId: this.$route.meta.menuId, userName: this.$store.state.user.name, }, @@ -669,6 +687,60 @@ fixed: '', columnWidth: 60 }, + { + userId: this.$store.state.user.name, + functionId: 106002, + serialNumber: '106002Table1QuoterName', + tableId: "106002Table1", + tableName: "刀具申请主表", + columnProp: "quoterName", + headerAlign: "center", + align: "left", + columnLabel: "报价员", + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 60 + }, + { + userId: this.$store.state.user.name, + functionId: 106002, + serialNumber: '106002Table1TpName', + tableId: "106002Table1", + tableName: "刀具申请主表", + columnProp: "tpName", + headerAlign: "center", + align: "left", + columnLabel: "TP", + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 60 + }, + { + userId: this.$store.state.user.name, + functionId: 106002, + serialNumber: '106002Table1PurchaserName', + tableId: "106002Table1", + tableName: "刀具申请主表", + columnProp: "purchaserName", + headerAlign: "center", + align: "left", + columnLabel: "采购员", + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 60 + }, { userId: this.$store.state.user.name, functionId: 106002, @@ -1012,9 +1084,15 @@ this.tagNo2 = type this.$nextTick(() => { let strVal = '' - if (val === 1010) { + if (val === 103) { if(type==1) { - strVal = this.searchData.projectType + strVal = this.dataForm.quoter + } + if(type==2) { + strVal = this.dataForm.tp + } + if(type==3) { + strVal = this.dataForm.purchaser } } this.$refs.baseList.init(val, strVal) @@ -1022,9 +1100,27 @@ }, /* 列表方法的回调 */ getBaseData (val) { - if (this.tagNo === 1010) { + if (this.tagNo === 103) { if(this.tagNo2==1) { - this.searchData.projectType = val.Base_desc + this.dataForm.quoter = val.username + this.dataForm.quoterName = val.user_display + this.$nextTick(() => { + this.$triggerInputEvent(this.$refs.quoterName); + }); + } + if(this.tagNo2==2) { + this.dataForm.tp = val.username + this.dataForm.tpName = val.user_display + this.$nextTick(() => { + this.$triggerInputEvent(this.$refs.tpName); + }); + } + if(this.tagNo2==3) { + this.dataForm.purchaser = val.username + this.dataForm.purchaserName = val.user_display + this.$nextTick(() => { + this.$triggerInputEvent(this.$refs.purchaserName); + }); } } }, @@ -1196,6 +1292,12 @@ status: row.status, rejectOpinion: '', nodeConclusion: '', + quoter: row.quoter, + quoterName: row.quoterName, + tp: row.tp, + tpName: row.tpName, + purchaser: row.purchaser, + purchaserName: row.purchaserName, menuId: this.$route.meta.menuId, userName: this.$store.state.user.name, } @@ -1459,6 +1561,12 @@ this.dataList1[i].remark = this.dataForm.remark this.dataList1[i].applySumQty = this.dataForm.applySumQty this.dataList1[i].applyReason = this.dataForm.applyReason + this.dataList1[i].quoter = this.dataForm.quoter + this.dataList1[i].tp = this.dataForm.tp + this.dataList1[i].purchaser = this.dataForm.purchaser + this.dataList1[i].quoterName = this.dataForm.quoterName + this.dataList1[i].tpName = this.dataForm.tpName + this.dataList1[i].purchaserName = this.dataForm.purchaserName } } this.visible = false