ysy hai 1 ano
pai
achega
51a166c9b7

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

@@ -2,6 +2,7 @@
   <div class="ele-body">
     <el-card shadow="never">
       <!-- 数据表格 -->
+  
       <ele-pro-table
         ref="table"
         :columns="columns"
@@ -131,6 +132,7 @@
     },
     methods: {
       add() {
+    
         this.$refs.routingDialogRef.open(this.taskParam, this.tableData);
       },
       search() {

+ 5 - 3
src/views/material/BOMmanage/components/routingDialog.vue

@@ -247,19 +247,21 @@
         this.visible = false;
       },
       open(treeData, tableData) {
+
         this.treeData = treeData;
-        console.log(tableData);
+
 
         if (
+          Object.prototype.hasOwnProperty.call(tableData, 'processRoute') &&
           Object.prototype.hasOwnProperty.call(tableData.processRoute, 'list')
         ) {
           this.tableData = tableData;
         } else {
           this.tableData = tableData;
-          this.tableData.processRoute.list = [];
+          this.tableData['processRoute'] = { list: [] }
         }
-
         this.visible = true;
+       
       },
       selected() {
         let routingId = this.selection.map((it) => it.id);