695593266@qq.com před 10 měsíci
rodič
revize
95e5037e0c
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5 2
      pages/pda/feeding/details.vue

+ 5 - 2
pages/pda/feeding/details.vue

@@ -224,17 +224,18 @@ export default {
       clientEnvironmentId: null,
       operateBtn: true,
       cloneListNum: "",
-      feedNeedEquipment: 1, ////投料是否要添加生产设备1是0否
+      feedNeedEquipment: null, ////投料是否要添加生产设备1是0否
     };
   },
   onLoad(options) {
+    console.log(options, "options");
     this.title = options.taskName ? options.taskName + "-投料" : "投料";
     let queryArray = decodeURIComponent(options.arr);
     this.idsList = JSON.parse(queryArray);
     this.taskId = options.taskId;
     this.taskName = options.taskName;
     this.type = options.type;
-    this.feedNeedEquipment = options.feedNeedEquipment;
+    // this.feedNeedEquipment = options.feedNeedEquipment;
 
     console.log(this.idsList, "onLoad");
 
@@ -514,6 +515,8 @@ export default {
           });
 
           this.cloneList = JSON.parse(JSON.stringify(this.List));
+          this.feedNeedEquipment =
+            this.List[0].currentTaskDiagram.feedNeedEquipment;
         })
         .finally(() => {
           this.getCacheFn();