Parcourir la source

测试多门店扫码

zhujindu il y a 1 an
Parent
commit
061420a261
2 fichiers modifiés avec 7 ajouts et 6 suppressions
  1. 3 2
      src/components/storeCode.vue
  2. 4 4
      src/views/deviceWithin/addStoreVisit.vue

+ 3 - 2
src/components/storeCode.vue

@@ -13,7 +13,7 @@ import axios from 'axios';
 import { getOptionByResult } from '@/api/index';
 
 export default {
-  name: 'uploadImg',
+  name: 'storeCode',
   props: {
     index: {
       type: Number,
@@ -76,6 +76,8 @@ export default {
       let that = this;
       let wx = this.wx;
       let qiyeData;
+      console.log(that.code);
+      debugger;
 
       const instance = axios.create();
       instance.defaults.headers.common['userId'] = localStorage.getItem('loginName');
@@ -106,7 +108,6 @@ export default {
                   console.log(res);
                   var result = res.resultStr;
                   console.log(result);
-                  console.log(that.code);
                   var success = false;
                   if (that.code == result && that.code != '' && that.code != null) {
                     success = true;

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

@@ -1737,11 +1737,11 @@ export default {
         // 调色机类型:buy-购买类调色机,place-放置类调色机
         let inspectionType = res.data.sfaTaskList[this.$route.query.ids].inspectionType;
         if (inspectionType == 'buy') {
-          this.equipmentCode = res.data.putInCode || '';
+          this.equipmentCode = res.data.sfaTaskList[this.$route.query.ids].putInCode || '';
           this.showCode = true;
         } else if (inspectionType == 'place') {
           this.equipmentCode = res.data.sfaTaskList[this.$route.query.ids].equipmentCode || '';
-          this.showCode = false;
+          this.showCode = true;
         }
         if (
           (res.data.sfaTaskList[this.$route.query.ids].processStatus == 3 &&
@@ -2422,8 +2422,8 @@ 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 || "", //投放编号
+              deviceCode: this.collectionItemList[b].deviceCode || '', //设备编号
+              putInCode: this.collectionItemList[b].putInCode || '', //投放编号
             });
           }
           if (