|
|
@@ -158,6 +158,7 @@ export default {
|
|
|
spanArr: [],
|
|
|
pos: 0,
|
|
|
mediaIds: [],
|
|
|
+ editFlag: true,
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
|
@@ -166,9 +167,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();
|
|
|
}
|
|
|
@@ -206,8 +213,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);
|
|
|
}
|
|
|
});
|
|
|
},
|