|
@@ -168,7 +168,20 @@ export default {
|
|
|
|
|
|
|
|
// this.type = val;
|
|
// this.type = val;
|
|
|
this.title = !val.id ? '新增临时计划' : '编辑临时计划';
|
|
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();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|