Просмотр исходного кода

Merge branch 'uat(dev)' of http://git.dgtis.com/tongym/storevisit-ui-mobile into uat(dev)

sunny недель назад: 2
Родитель
Сommit
15aac338ad
1 измененных файлов с 3 добавлено и 107 удалено
  1. 3 107
      src/components/uploadVNormalTaskPhoto.vue

+ 3 - 107
src/components/uploadVNormalTaskPhoto.vue

@@ -89,58 +89,6 @@ export default {
       type: [String, Number],
       default: '',
     },
-    // uploadid: {
-    //   type: String,
-    //   default: '',
-    // },
-    // secondCollectionId: {
-    //   type: [String, Number],
-    //   default: '',
-    // },
-    // firstCollectionId: {
-    //   type: String,
-    //   default: '',
-    // },
-    // fourthCollectionId: {
-    //   type: String,
-    //   default: '',
-    // },
-    // thirdCollectionId: {
-    //   type: String,
-    //   default: '',
-    // },
-    // type: {
-    //   type: Number,
-    //   default: 1,
-    // },
-    // imgArr: {
-    //   type: Array,
-    //   default() {
-    //     return [];
-    //   },
-    // },
-    // visitModel: {
-    //   type: String,
-    //   default: '1',
-    // },
-    // deviceCode: {
-    //   type: String,
-    //   default: '',
-    // },
-    // putInCode: {
-    //   type: String,
-    //   default: '',
-    // },
-    // equipmentCode: {
-    //   // 当前任务对应的资产编号
-    //   type: String,
-    //   default: '',
-    // },
-    // inStore: {
-    //   // 调色机是否在店
-    //   type: String,
-    //   default: '否',
-    // },
   },
   computed: {
     ...mapState({
@@ -271,25 +219,8 @@ export default {
                 success: function (res) {
                   let localIds = res.localIds;
                   that.localIdsArr = [];
-                  that.syncUpload(localIds);
-                  // var localIds = '';
-                  // if (res.localIds != undefined) {
-                  //   localIds = res.localIds[0];
-                  // } else {
-                  //   localIds = res.localId;
-                  // }
-                  // wx.uploadImage({
-                  //   localId: localIds, // 需要上传的图片的本地ID,由chooseImage接口获得
-                  //   isShowProgressTips: 0, // 默认为1,显示进度提示
-                  //   success: function (res) {
-                  //     that.mediaId = res.serverId;
-                  //     that.uploadImagev(addressesRemark);
-                  //   },
-                  //   fail: (err) => {
-                  //     that.$toast(err.errMsg);
-                  //     that.$toast(err.errCode);
-                  //   },
-                  // });
+                  console.log('localIds', localIds);
+                  // that.syncUpload(localIds);
                 },
               });
             });
@@ -306,7 +237,7 @@ export default {
           isShowProgressTips: 1, // 默认为1,显示进度提示
           success: (res) => {
             this.localIdsArr.push(res.serverId);
-            this.syncUpload(localIds);
+            // this.syncUpload(localIds);
           },
         });
       }
@@ -315,19 +246,6 @@ export default {
       this.close();
       var that = this;
       var form = {
-        // mediaIds: [],
-        // fileUrl: '',
-        // objectType: that.objectType,
-        // storeGroupId: that.storeGroupId,
-        // taskList: that.taskList,
-        // visitsId: that.visitsId,
-        // visitSource: '1',
-        // locationRemark: that.addressesRemark,
-        // deviceCode: that.deviceCode, //设备编号
-        // putInCode: that.putInCode, //投放编号
-        // equipmentCode: that.equipmentCode,
-        // inStore: that.inStore,
-
         mediaIds: [], //	是	List<String>	图片素材id集合
         visitSource: '1', //	是	Long	拜访模式
         storeGroupId: that.storeGroupId, //	是	string	门店任务组,多个用逗号隔开
@@ -417,9 +335,6 @@ export default {
       });
       this.$emit('newimgarr', {
         fileInfoList: fileInfoList,
-        // fileUrl: res.data.url,
-        // id: res.data.fileId,
-        // type: 2,
         photoIdentifyType: this.photoIdentifyType,
       });
     },
@@ -431,23 +346,6 @@ export default {
         (this.photoIdentifyType != '6' || this.photoIdentifyType != '7')
       ) {
         var form = {
-          // mediaIds: [],
-          // fileUrl: '',
-          // objectType: that.objectType,
-          // visitSource: '1', //	Long	拜访模式
-          // storeGroupId: this.storeGroupId, //	string	门店任务组,多个用逗号隔开
-          // visitsId: that.visitsId,
-          // taskList: this.taskList, //	string	任务id
-          // locationRemark: this.addressesRemark, //	String	当前地址信息
-          // // firstCollectionId: this.firstCollectionId, //	Long	第一级采集项id,取当前采集项的字段就行
-          // // secondCollectionId: this.secondCollectionId, //	Long	第二级采集项id,取当前采集项的字段就行
-          // // putInCode: this.putInCode, //	String	当前任务对应的投放编号
-          // // deviceCode: this.deviceCode, //	String	当前任务对应的设备编号
-          // url: res.data.url, //	String	当前拍摄图片的url
-          // businessId: res.data.businessId, // 当前拍摄图片id
-          // feedbackMessage: res.feedbackMessage,
-          // equipmentCode: this.equipmentCode,
-          // inStore: this.inStore,
           mediaIds: [], //	是	List<String>	图片素材id集合
           visitSource: '1', //	是	Long	拜访模式
           storeGroupId: this.storeGroupId, //	是	string	门店任务组,多个用逗号隔开
@@ -506,8 +404,6 @@ export default {
 .questionNamep {
   font-size: 16px;
   color: #484848;
-  // line-height: 40px;
-  // padding: 0 15px;
   box-sizing: border-box;
   position: relative;