From fb3c371312a5301ba252c6a4a806872a1692716e Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 6 Jun 2025 13:12:44 +0800 Subject: [PATCH] =?UTF-8?q?2025-06-05=20=E9=85=8D=E6=96=B9BOM=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=AF=A6=E6=83=85=E6=8C=89=E9=92=AE=E6=94=BE=E5=88=B0?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8E=88=E6=9D=83=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/partInformation.vue | 1 + src/views/modules/part/recipeManagement.vue | 38 ++++++++++++++++--- .../com_bm_bom.vue | 31 ++++++++------- 3 files changed, 51 insertions(+), 19 deletions(-) diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 42786e6..657860b 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -5625,6 +5625,7 @@ return { 'background-color': '#E8F7F6', cursor: 'pointer' } } }, + toPartMenu (ifsPartNo) { if (this.$router.resolve(`/part-partCatalogInformation`).resolved.name === '404') { this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',}) diff --git a/src/views/modules/part/recipeManagement.vue b/src/views/modules/part/recipeManagement.vue index 3ee367d..f1c2b05 100644 --- a/src/views/modules/part/recipeManagement.vue +++ b/src/views/modules/part/recipeManagement.vue @@ -24,8 +24,8 @@ 查询 - 新增 - 删除 + 新增 + 删除 @@ -164,7 +165,8 @@ - + + 新增 删除 编辑 @@ -213,7 +215,8 @@ - + + 新增 删除 @@ -244,6 +247,7 @@ { + if (data && data.code === 0) { + this.detailDataList = data.rows.detailList + this.subDetailList = data.rows.componentList + this.detailData = data.rows.detailData + this.modalDisableFlag = true + this.modalFlag = true + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }, + // 替代新增模态框 saveRecipeDetail () { if (this.modalData.partNo === '' || this.modalData.partNo == null) { diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue index f20fb2b..b51ad41 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue @@ -535,29 +535,32 @@ } }) }, - jumpBom(){ - if(this.bomData.engChgLevel!=null||this.bomData.engChgLevel!==''){ + + jumpBom () { + if (this.bomData.engChgLevel != null || this.bomData.engChgLevel !== '') { this.$message.error("bom明细不存在") } - let inData={ - site:this.searchData.site, - partNo:this.bomData.partNo, - bomType:this.bomData.bomType, - engChgLevel:this.bomData.engChgLevel, + let inData = { + site: this.searchData.site, + partNo: this.bomData.partNo, + bomType: this.bomData.bomType, + engChgLevel: this.bomData.engChgLevel, } localStorage.setItem('bomData', JSON.stringify(inData)) - window.open('#/part-bomManagement'); + window.open('#/part-bomManagement') }, - jumpPeifang(row){ - let inData={ - site:row.site, - partNo:row.componentPart, - bomType:'Manufacturing', + + jumpPeifang (row) { + let inData = { + site: row.site, + partNo: row.componentPart, + bomType: 'Manufacturing', } localStorage.setItem('recipeData', JSON.stringify(inData)) - window.open('#/part-recipeManagement'); + window.open('#/part-recipeManagement') }, + // 获取流程的配置权限 getNodeAuthority (row) { getBMStatusDesc(this.searchData).then(({data}) => {