Browse Source

feature_20260425_完美门店陈列奖励案图片上传方式修改

zhujindu 6 hours ago
parent
commit
ffb4a50932

+ 1 - 1
src/components/deleteUploadImgTaskPhoto.vue

@@ -135,9 +135,9 @@ export default {
   },
   methods: {
     deleteImg(index, fileIdList) {
+      this.toastLoading(0, '请稍候...', true);
       removePhotoBatch({ fileIdList: fileIdList.split(',') }).then((res) => {
         if (res.code == 200) {
-          this.$toast('删除成功!');
           this.$emit('upDataDetail');
         } else {
           this.$toast('删除失败!');

+ 17 - 17
src/views/deviceOutside/suishenbangOutstoreVisit.vue

@@ -630,24 +630,24 @@ export default {
       localStorage.setItem('getRequestFlage', 'false');
       console.log(this.visitId);
       if (val.taskType == '5') {
-        getCljlaToDBLabel({ visitsId: this.visitId }).then((res) => {
-          if (res.code == 200) {
-            this.$router.push({
-              path: '/taskPhotoTaking',
-              query: {
-                storeCode: this.urlParameter.storeCode,
-                visitsId: this.visitId,
-                taskIds: val.taskIds.join(','),
-                storeGroupId: this.storeGroupId,
-                photoType: val.photoType,
-                insert: true,
-                storeId: this.storeId,
-              },
-            });
-          } else {
-            this.$toast(res.msg);
-          }
+        // getCljlaToDBLabel({ visitsId: this.visitId }).then((res) => {
+        //   if (res.code == 200) {
+        this.$router.push({
+          path: '/taskPhotoTaking',
+          query: {
+            storeCode: this.urlParameter.storeCode,
+            visitsId: this.visitId,
+            taskIds: val.taskIds.join(','),
+            storeGroupId: this.storeGroupId,
+            photoType: val.photoType,
+            insert: true,
+            storeId: this.storeId,
+          },
         });
+        //   } else {
+        //     this.$toast(res.msg);
+        //   }
+        // });
       } else {
         this.$router.push({
           path: '/addStoreVisit',

+ 17 - 17
src/views/deviceWithin/storeVisit.vue

@@ -791,24 +791,24 @@ export default {
         }, 2000);
         localStorage.setItem('getRequestFlage', 'false');
         if (val.taskType == '5') {
-          getCljlaToDBLabel({ visitsId: this.visitId }).then((res) => {
-            if (res.code == 200) {
-              this.$router.push({
-                path: '/taskPhotoTaking',
-                query: {
-                  storeCode: this.urlParameter.storeCode,
-                  visitsId: this.visitId,
-                  taskIds: val.taskIds.join(','),
-                  storeGroupId: this.storeGroupId,
-                  photoType: val.photoType,
-                  insert: this.insert,
-                  storeId: this.storeId,
-                },
-              });
-            } else {
-              this.$toast(res.msg);
-            }
+          // getCljlaToDBLabel({ visitsId: this.visitId }).then((res) => {
+          //   if (res.code == 200) {
+          this.$router.push({
+            path: '/taskPhotoTaking',
+            query: {
+              storeCode: this.urlParameter.storeCode,
+              visitsId: this.visitId,
+              taskIds: val.taskIds.join(','),
+              storeGroupId: this.storeGroupId,
+              photoType: val.photoType,
+              insert: this.insert,
+              storeId: this.storeId,
+            },
           });
+          //   } else {
+          //     this.$toast(res.msg);
+          //   }
+          // });
         } else {
           this.$router.push({
             path: '/addStoreVisit',

+ 1 - 2
src/views/deviceWithin/taskPhotoTaking.vue

@@ -305,8 +305,6 @@ export default {
         deviceCode: '',
         putInCode: '',
         equipmentCode: '',
-        collectionItemId: taskPhoto ? taskPhoto.collectionItemId : '',
-        objectType: this.$route.query.photoType,
       };
       this.addCollection(formData);
     },
@@ -336,6 +334,7 @@ export default {
     },
     addCollection(formData) {
       addCollectionAnswerBatch(formData).then((res) => {
+        this.toastLoading().clear();
         if (res.code == 200) {
           localStorage.setItem('getRequestFlage', 'true');
           this.$router.go(-1);