From 3581998129cf89f8f0a8c39efa7fce3c8781cbec Mon Sep 17 00:00:00 2001
From: LegnaYet <1023868505@qq.com>
Date: Fri, 24 Apr 2020 20:24:12 +0800
Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E5=8F=B7=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/shop/IncreaseStoreManager.vue | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
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;