ysy 1 tahun lalu
induk
melakukan
b7a08f406b

+ 5 - 0
src/views/material/BOMmanage/detailsPop.vue

@@ -430,6 +430,11 @@
     methods: {
       open(row) {
         this.searchObj = row;
+
+        if (Object.prototype.hasOwnProperty.call(row, 'bomType')) {
+          this.currentNodeData.bomType = row.bomType;
+
+        }
         this.drawer = true;
         this.getTreeData();
         this.getVersion();

+ 2 - 1
src/views/material/BOMmanage/index.vue

@@ -290,7 +290,8 @@
           versions: row.versions,
           rootPathIdParent: row.categoryLevelPathIdParent,
           isProduct:true,
-          isTemp: 1
+          bomType: Number(this.activeName),
+          isTemp: row.isTemp
         };
         this.$refs.bomDrawer.open(rowData);