Преглед изворни кода

多个调色机设备同时扫码传参优化

zhujindu пре 1 година
родитељ
комит
e2f309de56
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/views/deviceWithin/addStoreVisit.vue

+ 3 - 3
src/views/deviceWithin/addStoreVisit.vue

@@ -2377,7 +2377,7 @@ export default {
       } else {
         checkUnManage = 'N';
       }
-
+      // taskType:3物料,2产品类型,1常规类型
       if (this.$route.query.taskType == 3) {
         formData = {
           storeId: this.storeId,
@@ -2400,6 +2400,8 @@ export default {
           insert: this.insert,
           collectionAnswers: [],
           checkUnManage: checkUnManage,
+          deviceCode: this.deviceCode || '', //设备编号
+          putInCode: this.putInCode || '', //投放编号
         };
       }
 
@@ -2422,8 +2424,6 @@ export default {
               firstCollectionId: this.collectionItemList[b].firstCollectionId,
               answerType: this.collectionItemList[b].answerType,
               answerValue: this.collectionItemList[b].answerValue,
-              deviceCode: this.collectionItemList[b].deviceCode || '', //设备编号
-              putInCode: this.collectionItemList[b].putInCode || '', //投放编号
             });
           }
           if (