|
|
@@ -580,6 +580,7 @@ export default {
|
|
|
lon: '',
|
|
|
timeData: '',
|
|
|
customerVisits: true,
|
|
|
+ abnormalTsjStoreIds: null,
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -651,8 +652,17 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
activated() {
|
|
|
- if (this.$route.query.tabVal != undefined) {
|
|
|
+ debugger;
|
|
|
+ console.log('abnormalTsjStoreIds=' + this.$route.query.abnormalTsjStoreIds);
|
|
|
+ // 如果是从首页-扫码异常门店列表跳转过来
|
|
|
+ if (
|
|
|
+ this.$route.query.tabVal != undefined &&
|
|
|
+ this.$route.query.abnormalTsjStoreIds &&
|
|
|
+ localStorage.getItem('abnormalTsjStoreIds') == ''
|
|
|
+ ) {
|
|
|
+ this.abnormalTsjStoreIds = this.$route.query.abnormalTsjStoreIds;
|
|
|
this.tabVal = this.$route.query.tabVal;
|
|
|
+ localStorage.setItem('abnormalTsjStoreIds', '扫码异常门店');
|
|
|
} else {
|
|
|
if (localStorage.getItem('tabVal') == null || this.$route.query.info != 'y') {
|
|
|
if (this.$route.query.info != undefined) {
|
|
|
@@ -1034,14 +1044,11 @@ export default {
|
|
|
storeName: this.storeName.trim(),
|
|
|
genDate: this.genDate,
|
|
|
};
|
|
|
- console.log('abnormalTsjStoreIds=' + this.$route.query.abnormalTsjStoreIds);
|
|
|
- // 如果是从首页-扫码异常门店列表跳转过来
|
|
|
- if (this.$route.query.abnormalTsjStoreIds) {
|
|
|
- params.storeIds = this.$route.query.abnormalTsjStoreIds;
|
|
|
+ if (this.abnormalTsjStoreIds) {
|
|
|
+ params.storeIds = this.abnormalTsjStoreIds;
|
|
|
}
|
|
|
getUserOrgStoreList(params).then((res) => {
|
|
|
- delete this.$route.query.abnormalTsjStoreIds;
|
|
|
- console.log('abnormalTsjStoreIds=' + this.$route.query.abnormalTsjStoreIds);
|
|
|
+ this.abnormalTsjStoreIds = null;
|
|
|
this.disabled = false;
|
|
|
if (res.code == 200) {
|
|
|
loading2.clear();
|
|
|
@@ -1121,14 +1128,11 @@ export default {
|
|
|
storeName: this.storeName.trim(),
|
|
|
genDate: this.genDate,
|
|
|
};
|
|
|
- console.log('abnormalTsjStoreIds=' + this.$route.query.abnormalTsjStoreIds);
|
|
|
- // 如果是从首页-扫码异常门店列表跳转过来
|
|
|
- if (this.$route.query.abnormalTsjStoreIds) {
|
|
|
- params.storeIds = this.$route.query.abnormalTsjStoreIds;
|
|
|
+ if (this.abnormalTsjStoreIds) {
|
|
|
+ params.storeIds = this.abnormalTsjStoreIds;
|
|
|
}
|
|
|
getUserOutPlaList(params).then((res) => {
|
|
|
- delete this.$route.query.abnormalTsjStoreIds;
|
|
|
- console.log('abnormalTsjStoreIds=' + this.$route.query.abnormalTsjStoreIds);
|
|
|
+ this.abnormalTsjStoreIds = null;
|
|
|
this.disabled = false;
|
|
|
if (res.code == 200) {
|
|
|
loading3.clear();
|