diff --git a/src/pages/CustomerDetail.vue b/src/pages/CustomerDetail.vue index 4a54103..30bee91 100644 --- a/src/pages/CustomerDetail.vue +++ b/src/pages/CustomerDetail.vue @@ -423,18 +423,21 @@ if (!selected){ companyId = that.companyId; } - let customerIds = []; + let customerIds = null; this.customerList = []; if(companyId === 0){ // }else{ this.customerList = this.organizationalList.filter(item => item.parentId === companyId && item.level === 3); this.insertAllOption(); + customerIds = "-1"; + this.customerList.forEach(function (data) { + customerIds = customerIds + ","+data.id; + }) } - customerIds = this.customerList.map(item => item.id); let request = - {userId: that.userId,customerIds: customerIds}; + {userId: that.userId,customerId: customerIds}; staff.downShopData(request, function (data) { data = data.data.results; if(data){ @@ -450,12 +453,18 @@ }, //零售公司选择 companySelect: function(){ + //加载店铺 this.downShopData(this.companyId); + this.selectedStore = 0; + + let that = this; + that.downSellerData(); }, downShopChange: function () { + let that = this; that.downSellerData(); },