diff --git a/src/pages/shop/IncreaseStoreManager.vue b/src/pages/shop/IncreaseStoreManager.vue
index 091acb0..cbd6f20 100644
--- a/src/pages/shop/IncreaseStoreManager.vue
+++ b/src/pages/shop/IncreaseStoreManager.vue
@@ -43,10 +43,10 @@
-
-
+
+
-
+
@@ -319,7 +319,7 @@
},
mounted() {
this.setMenuName("门店推广","推广管理");
- // this.listOfStore();
+ this.listOfStore();
this.getSelectList();
// this.downBigRegionData();
// this.downRegionData();
@@ -333,7 +333,8 @@
let that = this;
let request = {
userId: that.userId,
- companyId: that.changeData(that.selectedRegion),
+ regionId: that.changeData(that.regionId),
+ companyId: that.changeData(that.companyId),
storeId: that.changeData(that.selectedStore),
pageNum: that.pageNum,
pageSize: that.pageSize,
@@ -381,6 +382,9 @@
if(this.companyList.length === 0 || this.companyList[0].id !== 0){
this.companyList.splice(0, 0, {"id":0, "name":"全部"});
}
+ if(this.shopList.length === 0 || this.shopList[0].id !== 0){
+ this.shopList.splice(0, 0, {"id":0, "name":"全部"});
+ }
},
/**基础数据:区域list、零售公司list、客户list*/
getSelectList:function(){
@@ -412,14 +416,15 @@
}
this.insertAllOption();
this.companyId = 0;
+ this.selectedStore = 0;
//加载店铺
this.downShopData();
},
//零售公司选择
- companySelect: function(value){
+ companySelect: function(){
//加载店铺
- this.selectedRegion = value;
- this.downShopData(value);
+ this.downShopData(this.companyId);
+ this.selectedStore = 0;
},
downCompanyChange: function (formValidate) {
this.downShopData(formValidate.departIds);
@@ -432,17 +437,20 @@
}
let regionId = that.regionId;
let customerIds = [];
+ this.customerList = [];
if(regionId === 0){
}else{
this.companyList = this.organizationalList.filter(item => item.parentId === regionId && item.level === 2);
let companyIds = this.companyList.map(item => item.id);
this.customerList = this.organizationalList.filter(item => companyIds.indexOf(item.parentId) !== -1 && item.level === 3);
+ this.insertAllOption();
}
if(companyId === 0){
}else{
this.customerList = this.organizationalList.filter(item => item.parentId === companyId && item.level === 3);
+ this.insertAllOption();
}
customerIds = this.customerList.map(item => item.id);
@@ -466,6 +474,7 @@
return value;
},
show: function (index) {
+ debugger
this.isShow = true;
this.showStoreName = index.name;
this.qrCodeImage = index.qrCodeAction;