695593266@qq.com 9 месяцев назад
Родитель
Сommit
368910ce81

+ 5 - 1
src/views/material/BOMmanage/components/baseInfo.vue

@@ -74,7 +74,11 @@
       <el-button
         type="primary"
         size="medium"
-        v-if="dataInfo.parentId != '0' && dataInfo.resourceBomId"
+        v-if="
+          dataInfo.parentId != '0' &&
+          dataInfo.resourceBomId &&
+          dataInfo.id != dataInfo.resourceBomId
+        "
         @click="bomConfig"
         >跳转来源版本</el-button
       >

+ 16 - 2
src/views/material/BOMmanage/components/routing.vue

@@ -11,9 +11,16 @@
         row-key="id"
       >
         <!-- 表头工具栏 -->
+        <!-- v-if="attributeData.status != 1 && !isWt" -->
         <template v-slot:toolbar>
           <el-button
-            v-if="attributeData.status != 1 && !isWt"
+            v-if="
+              attributeData.approvalStatus != 1 &&
+              attributeData.approvalStatus != 2 &&
+              !isWt &&
+              attributeData.parentId == '0' &&
+              attributeData.id != attributeData.resourceBomId
+            "
             size="small"
             type="primary"
             icon="el-icon-plus"
@@ -45,7 +52,9 @@
             @click="handleDel(row)"
             v-if="
               attributeData.approvalStatus != 1 &&
-              attributeData.approvalStatus != 2
+              attributeData.approvalStatus != 2 &&
+              attributeData.parentId == '0' &&
+              attributeData.id != attributeData.resourceBomId
             "
             >删除</el-link
           >
@@ -170,6 +179,11 @@
         loading: false
       };
     },
+
+    created() {
+      console.log(this.attributeData, 'attributeDataattributeData');
+    },
+
     methods: {
       add() {
         console.log(this.taskParam, this.tableData);