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();
+            }
+            
+          }
+        });
+
       }
     }
   },