From 0d64c89f98c427601f27e61149245864d3e127e0 Mon Sep 17 00:00:00 2001 From: wangweijia <495720349@qq.com> Date: Mon, 27 Apr 2020 18:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E5=8A=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/CustomerDetail.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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(); },