Przeglądaj źródła

feature_20250811_拜访拍照任务连拍

zhujindu 3 miesięcy temu
rodzic
commit
344ce4689d

+ 6 - 3
src/components/uploadVNormal.vue

@@ -131,7 +131,7 @@ export default {
       type: String,
       default: '',
     },
-    isContinuousShooting: {
+    continuousShoot: {
       // 是否允许连拍/相册多选 1:允许;0:不允许
       type: String,
       default: '0',
@@ -261,8 +261,11 @@ export default {
               });
               console.log(that.pictureSource);
               let sourceType = that.pictureSource == '1' ? ['album', 'camera'] : ['camera'];
-              let count = 0;
-              this.isContinuousShooting == '1' ? 5 : 1; //是否允许连拍/相册多选 最多5张
+              let count = 1;
+              // 1:店招内容识别(不能连拍和多选),3:调色机识别(不能连拍和多选)
+              if (this.photoIdentifyType != 1 && this.photoIdentifyType != 3) {
+                count = this.continuousShoot == '1' ? 5 : 1; //是否允许连拍/相册多选 最多5张
+              }
               wx.chooseImage({
                 count: count,
                 sizeType: ['original'], // 可以指定是原图还是压缩图,默认二者都有

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

@@ -2926,7 +2926,7 @@
             @typeshow="typeshow"
             :photoIdentifyType="photoIdentifyType"
             :pictureSource="pictureSource"
-            :isContinuousShooting="isContinuousShooting"
+            :continuousShoot="continuousShoot"
             ref="uploadVNormal"></upload-img>
         </template>
       </van-cell>
@@ -3146,7 +3146,7 @@ export default {
       minDate: new Date(1945, 0, 1),
       maxDate: new Date(),
       currentDate: new Date(1945, 0, 1),
-      isContinuousShooting: '0',
+      continuousShoot: '0',
     };
   },
   beforeRouteLeave(to, from, next) {
@@ -4279,7 +4279,7 @@ export default {
       this.thirdCollectionId = val.thirdCollectionId;
       this.fourthCollectionId = val.fourthCollectionId;
       this.pictureSource = val.pictureSource; //是否允许从相册选择图片
-      this.isContinuousShooting = val.isContinuousShooting; //是否允许连拍/相册多选
+      this.continuousShoot = val.continuousShoot; //是否允许连拍/相册多选
       this.indeximg = index;
       this.childIndex = childIndex;
       this.childIndex1 = childIndex1;