Commit 10b3784e authored by youjie's avatar youjie

no message

parent 72148235
......@@ -928,20 +928,30 @@
console.log(this.shopDataList,'----this.shopDataList')
this.shopDataList.forEach((item) => {
if (item.IsCheck){
item.PriceShopList.forEach(x=>{
x.ShopDetailsList.forEach(y=>{
let filter = leaderIds.filter(z=>{return z==y.LeaderId})
if((((y.LeaderCommissionFrId==''||y.LeaderCommissionFrId=='0')&&y.LeaderCommission!='0')||
(y.GuideCommissionFrId==''||y.GuideCommissionFrId=='0')&&y.GuideCommission!='0')&&(filter.length==0||!filter)) {
console.log(y.LeaderCommission,'-----'+y.GuideCommission,'-----'+y.LeaderId)
item.PriceShopList.forEach((x,i)=>{
x.ShopDetailsList.forEach((y,index)=>{
let filter = []
filter = leaderIds.filter(z=>{return z==y.LeaderId})
let filter2 = []
filter2 = leaderIds.filter(z=>{return z==y.GuideId})
// console.log(y.LeaderCommissionFrId,y.LeaderCommission,filter)
// console.log((y.LeaderCommissionFrId==''||y.LeaderCommissionFrId=='0'||!y.LeaderCommissionFrId)&&y.LeaderCommission!='0'&&(filter.length==0||!filter),'---111-',i,'---111-',index)
// console.log(y.GuideCommissionFrId,y.GuideCommission,filter2)
// console.log((y.GuideCommissionFrId==''||y.GuideCommissionFrId=='0'||!y.GuideCommissionFrId)&&y.GuideCommission!='0'&&(filter2.length==0||!filter2),'---222',i,'---222-',index)
if((y.LeaderCommissionFrId==''||y.LeaderCommissionFrId=='0'||!y.LeaderCommissionFrId)&&y.LeaderCommission!='0'&&(filter.length==0||!filter)){
leaderIds.push(y.LeaderId);
// console.log(y.LeaderId,'-----LeaderId')
}
if((y.GuideCommissionFrId==''||y.GuideCommissionFrId=='0'||!y.GuideCommissionFrId)&&y.GuideCommission!='0'&&(filter2.length==0||!filter2)){
leaderIds.push(y.GuideId);
// console.log(y.GuideId,'-----GuideId')
}
})
})
// leaderIds.push(item.LeaderGuideIds);
}
})
console.log(leaderIds,'----1111')
// console.log(leaderIds,'----1111')
if(leaderIds.length>0){
this.loading = true;
this.IsLGCommissionAccount=true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment