From 808a559d295959f65603b4290b0b67088c11401e Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 24 Apr 2025 09:56:17 +0800 Subject: [PATCH] 2025-04-24 plmPartNo ifsPartNo --- src/views/modules/part/bomManagement.vue | 20 +++++++++--------- src/views/modules/part/partInformation.vue | 2 +- src/views/modules/part/routingManagement.vue | 22 ++++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index 01a2214..2c1d513 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -2656,10 +2656,10 @@ export default { activated() { if (this.$route.params && this.$route.params.type && this.$route.params.type === 'quote'){ this.handleQueryBomByQuote(); - }else if (this.$route.params.partNo) { - this.searchData.partNo = this.$route.params.partNo + } else if (this.$route.params.partNo) { + this.searchData.plmPartNo = this.$route.params.partNo this.getDataList() - }else if (this.initPage === false){ + } else if (this.initPage === false) { this.getDataList() } this.initPage = true @@ -2669,14 +2669,14 @@ export default { methods: { // === 报价查询 === - handleQueryBomByQuote(){ + handleQueryBomByQuote () { let params = { - site:this.$store.state.user.site, - partNo:this.$route.params.partNo, - bomType:this.$route.params.bomType, - engChgLevel:this.$route.params.engChgLevel, - page:this.pageIndex, - limit:this.pageSize + site: this.$store.state.user.site, + plmPartNo: this.$route.params.partNo, + bomType: this.$route.params.bomType, + engChgLevel: this.$route.params.engChgLevel, + page: this.pageIndex, + limit: this.pageSize } this.queryLoading = true bomManagementSearch(params).then(({data})=>{ diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 5bac791..bdc7e02 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -5782,7 +5782,7 @@ if (this.$router.resolve(`/part-${path}Management`).resolved.name === '404') { this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',}) } else { - this.$router.push({name:`part-${path}Management`,params:{partNo:row.partNo},}) + this.$router.push({name:`part-${path}Management`,params:{partNo: row.partNo},}) } }, diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue index 7a7b64e..661d1de 100644 --- a/src/views/modules/part/routingManagement.vue +++ b/src/views/modules/part/routingManagement.vue @@ -2686,12 +2686,12 @@ export default { }, activated() { - if (this.$route.params && this.$route.params.type && this.$route.params.type === 'quote'){ - this.handleQueryRoutingByQuote(); - }else if (this.$route.params.partNo) { - this.searchData.partNo = this.$route.params.partNo + if (this.$route.params && this.$route.params.type && this.$route.params.type === 'quote') { + this.handleQueryRoutingByQuote() + } else if (this.$route.params.partNo) { + this.searchData.plmPartNo = this.$route.params.partNo this.getDataList() - }else if (this.initPage === false){ + } else if (this.initPage === false) { this.getDataList() } this.initPage = true @@ -2702,12 +2702,12 @@ export default { // === 报价查询 === handleQueryRoutingByQuote(){ let params = { - site:this.$store.state.user.site, - partNo:this.$route.params.partNo, - routingType:this.$route.params.routingType, - engChgLevel:this.$route.params.engChgLevel, - page:this.pageIndex, - limit:this.pageSize + site: this.$store.state.user.site, + plmPartNo: this.$route.params.partNo, + routingType: this.$route.params.routingType, + engChgLevel: this.$route.params.engChgLevel, + page: this.pageIndex, + limit: this.pageSize } this.queryLoading = true routingManagementSearch(params).then(({data})=>{