联动修改

master
wangweijia 6 years ago
parent 4662425db2
commit 0d64c89f98

@ -423,18 +423,21 @@
if (!selected){ if (!selected){
companyId = that.companyId; companyId = that.companyId;
} }
let customerIds = []; let customerIds = null;
this.customerList = []; this.customerList = [];
if(companyId === 0){ if(companyId === 0){
// //
}else{ }else{
this.customerList = this.organizationalList.filter(item => item.parentId === companyId && item.level === 3); this.customerList = this.organizationalList.filter(item => item.parentId === companyId && item.level === 3);
this.insertAllOption(); this.insertAllOption();
customerIds = "-1";
this.customerList.forEach(function (data) {
customerIds = customerIds + ","+data.id;
})
} }
customerIds = this.customerList.map(item => item.id);
let request = let request =
{userId: that.userId,customerIds: customerIds}; {userId: that.userId,customerId: customerIds};
staff.downShopData(request, function (data) { staff.downShopData(request, function (data) {
data = data.data.results; data = data.data.results;
if(data){ if(data){
@ -450,12 +453,18 @@
}, },
// //
companySelect: function(){ companySelect: function(){
// //
this.downShopData(this.companyId); this.downShopData(this.companyId);
this.selectedStore = 0; this.selectedStore = 0;
let that = this;
that.downSellerData();
}, },
downShopChange: function () { downShopChange: function () {
let that = this; let that = this;
that.downSellerData(); that.downSellerData();
}, },

Loading…
Cancel
Save