chencc 1 年之前
父節點
當前提交
36ac8db7ef
共有 1 個文件被更改,包括 14 次插入1 次删除
  1. 14 1
      src/views/productionPlan/components/factoryAdd/index.vue

+ 14 - 1
src/views/productionPlan/components/factoryAdd/index.vue

@@ -168,7 +168,20 @@ export default {
 
         // this.type = val;
         this.title = !val.id ? '新增临时计划' : '编辑临时计划';
-        this.form = this.factoryObj;
+        // this.form = this.factoryObj;
+        this.form = val;
+        // 修改
+        this.$nextTick(() => {
+          if (val.id) {
+            console.log(111111,val.id);
+            this.bomListVersion();
+            if(val.bomCategoryId){
+              this.getPlanRouting();
+            }
+            
+          }
+        });
+
       }
     }
   },