|
|
|
@ -423,21 +423,18 @@
|
|
|
|
|
if (!selected){
|
|
|
|
|
companyId = that.companyId;
|
|
|
|
|
}
|
|
|
|
|
let customerIds = null;
|
|
|
|
|
let customerIds = [];
|
|
|
|
|
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,customerId: customerIds};
|
|
|
|
|
{userId: that.userId,customerIds: customerIds};
|
|
|
|
|
staff.downShopData(request, function (data) {
|
|
|
|
|
data = data.data.results;
|
|
|
|
|
if(data){
|
|
|
|
|