Explorar o código

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

zhujindu hai 15 horas
pai
achega
1c21f93ab4
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/views/deviceWithin/taskPhotoTaking.vue

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

@@ -174,6 +174,7 @@ export default {
     this.insert = this.$route.query.insert;
     this.insert = this.$route.query.insert;
     // 授权
     // 授权
     // getTicketFun(['uploadImage']).then(() => {});
     // getTicketFun(['uploadImage']).then(() => {});
+    this.toastLoading(0, '加载中...', true);
     if (this.$route.query.source == 'historicalDetails') {
     if (this.$route.query.source == 'historicalDetails') {
       this.getVisitsDetailFun();
       this.getVisitsDetailFun();
     } else {
     } else {
@@ -253,7 +254,6 @@ export default {
       }
       }
     },
     },
     getVisitsDetailFun() {
     getVisitsDetailFun() {
-      this.toastLoading(0, '加载中...', true);
       getVisitsDetail({ visitsId: this.visitsId }).then((res) => {
       getVisitsDetail({ visitsId: this.visitsId }).then((res) => {
         this.toastLoading().clear();
         this.toastLoading().clear();
         if (res.data.sfaTaskList) {
         if (res.data.sfaTaskList) {
@@ -273,6 +273,7 @@ export default {
         id: this.visitsId,
         id: this.visitsId,
         taskIds: this.taskIds.split(','),
         taskIds: this.taskIds.split(','),
       }).then((res) => {
       }).then((res) => {
+        this.toastLoading().clear();
         if (res.data && res.data.length) {
         if (res.data && res.data.length) {
           this.dataList = res.data;
           this.dataList = res.data;
           this.formData = res.data[0];
           this.formData = res.data[0];
@@ -283,7 +284,7 @@ export default {
       });
       });
     },
     },
     isEditFun() {
     isEditFun() {
-      this.getTicketFunfun();
+      // this.getTicketFunfun();
     },
     },
     openDialog(item) {
     openDialog(item) {
       this.vanPopup = true;
       this.vanPopup = true;