diff --git a/src/views/modules/rohs/rohsRecord.vue b/src/views/modules/rohs/rohsRecord.vue index 96596a1..6d3ccad 100644 --- a/src/views/modules/rohs/rohsRecord.vue +++ b/src/views/modules/rohs/rohsRecord.vue @@ -508,7 +508,13 @@ style="width: 100%"> - + + + @@ -1534,7 +1540,13 @@ :height="secondHeight" style="width: 100%"> - + + + @@ -3548,6 +3560,31 @@ export default { }) return fields }, + toPartMenu (ifsPartNo) { + const targetPartNo = String(ifsPartNo || '').trim() + if (!targetPartNo) { + this.$message.warning('IFS物料编码为空,无法跳转') + return + } + if (this.$router.resolve(`/part-partInformation`).resolved.name === '404') { + this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定'}) + } else { + // 先关闭当前页面所有可能产生全局遮罩的弹窗,避免跳转后残留遮罩层 + this.modalFlag = false + this.chooseProjectListFlag = false + this.projectMaterialDialogFlag = false + this.rohsCreatePartDialogFlag = false + this.rohsCharacteristicDialogFlag = false + this.hsfApproverFlag = false + this.relatedPeopleFlag = false + this.submitModalFlag = false + this.rohsRemarkFlag = false + this.rohsMaterialDescFlag = false + this.$nextTick(() => { + this.$router.push({name: `part-partInformation`, params: {ifsPartNo: targetPartNo}}) + }) + } + }, // 单选可取消 radioClick (field, value) { if (this.modalData[field] === value) {