chencc 1 год назад
Родитель
Сommit
834802b045
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      src/views/productionPlan/components/factoryAdd/index.vue

+ 6 - 5
src/views/productionPlan/components/factoryAdd/index.vue

@@ -509,7 +509,8 @@ export default {
         timeDimensionPlanType: 3,
         categoryId: '',
         productName: '',
-        planType: 1,
+        planType: '',
+
         moCount: '', // 模具数量
         blockCount: 0, // 块数
         noWordCount: '',// 无字数量
@@ -571,12 +572,12 @@ export default {
     async getFactoryList() {
       this.factoryList = await getFactoryList();
     },
-    open(val) {
-      this.getFactoryList();
+    async open(val) {
+     await this.getFactoryList(); 
+
       if (val) {
         this.title = !val.id ? '新增临时生产计划' : '编辑临时生产计划';
-
-       
+        val.planType = String(val.planType);
         this.form = val;
         // 修改
         if (val.id) {