|
|
@@ -166,13 +166,6 @@ 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();
|
|
|
} else {
|
|
|
@@ -258,6 +251,7 @@ export default {
|
|
|
if (res.data.sfaTaskList) {
|
|
|
this.dataList = res.data.sfaTaskList.filter((val) => val.taskType == '5');
|
|
|
this.formData = this.dataList[0];
|
|
|
+ this.isEditFun();
|
|
|
} else {
|
|
|
this.formData = null;
|
|
|
}
|
|
|
@@ -274,11 +268,21 @@ export default {
|
|
|
if (res.data && res.data.length) {
|
|
|
this.dataList = res.data;
|
|
|
this.formData = res.data[0];
|
|
|
+ this.isEditFun();
|
|
|
} else {
|
|
|
this.formData = null;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ isEditFun() {
|
|
|
+ // processStatus 是否有权限编辑,displayRewardTaskEditable 只能编辑一次,
|
|
|
+ if (
|
|
|
+ (this.insert == 'false' && this.formData.processStatus != 1) ||
|
|
|
+ this.formData.displayRewardTaskEditable
|
|
|
+ ) {
|
|
|
+ this.getTicketFunfun();
|
|
|
+ }
|
|
|
+ },
|
|
|
openDialog(item) {
|
|
|
this.vanPopup = true;
|
|
|
console.log(item);
|