Browse Source

feature_20260413_陈列照片提交后修改

zhujindu 1 day ago
parent
commit
25bb1cc488
1 changed files with 13 additions and 3 deletions
  1. 13 3
      src/views/deviceWithin/taskPhotoTaking.vue

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

@@ -157,6 +157,7 @@ export default {
       spanArr: [],
       pos: 0,
       mediaIds: [],
+      editFlag: true,
     };
   },
   activated() {
@@ -165,9 +166,15 @@ export default {
     this.storeGroupId = this.$route.query.storeGroupId || '';
     this.objectType = this.$route.query.photoType || '';
     this.insert = this.$route.query.insert;
+    // processStatus 是否有权限编辑,displayRewardTaskEditable 只能编辑一次,
+    if (
+      (this.insert == 'false' && this.formData.processStatus != 1) ||
+      this.formData.displayRewardTaskEditable
+    ) {
+      this.getTicketFunfun();
+    }
     if (this.$route.query.source == 'historicalDetails') {
       this.getVisitsDetailFun();
-      this.getTicketFunfun();
     } else {
       this.getDetaile();
     }
@@ -205,8 +212,11 @@ export default {
         lon: TXisBD.lon, //	String	经度
         lat: TXisBD.lat, //	String	纬度
       }).then((res) => {
-        if (res.data) {
-          this.$toast(`您距离门店还有${res.data}米`);
+        if (res.code == 200) {
+          this.editFlag = true;
+        } else {
+          this.editFlag = true;
+          this.$toast(res.msg);
         }
       });
     },