Commit f3e180e8 authored by youjie's avatar youjie

no message

parent 8b95fc29
......@@ -42,7 +42,7 @@
</span>
</li>
<li>
<span> <el-tooltip class="item" effect="dark" content="导入购物佣金数据的日期(需要选择导入日期的起始时间才有效)" placement="top">
<em>导入日期</em>
</el-tooltip>
......@@ -926,41 +926,55 @@
let leaderIds=[];
this.shopDataList.forEach((item) => {
if (item.IsCheck){
leaderIds.push(item.LeaderGuideIds);
item.PriceShopList.forEach(x=>{
x.ShopDetailsList.forEach(y=>{
let filter = leaderIds.filter(z=>{return z==y.LeaderId})
if(!y.LeaderCommissionFrId&&filter.length==0) leaderIds.push(y.LeaderId);
})
})
// leaderIds.push(item.LeaderGuideIds);
}
})
this.loading = true;
this.IsLGCommissionAccount=true;
this.apipost(
"dmcstatistics_post_GetShopLeaderGuideAccount",
{LeaderGuideIds:leaderIds.join(',')},
res => {
if (res.data.resultCode == 1) {
this.loading = false;
this.LeaderGuideDefault = res.data.data.BackAccountList;
this.IsJapan= res.data.data.IsJapan;
if(this.IsJapan==1){
this.nMsg.IsHaveFee=1;
}
this.LeaderGuideDefault.forEach(item=>{
if(item.IsAccount==0){
this.IsLGCommissionAccount=false;
console.log(leaderIds,'----1111')
if(leaderIds.length>0){
this.loading = true;
this.IsLGCommissionAccount=true;
this.apipost(
"dmcstatistics_post_GetShopLeaderGuideAccount",
{LeaderGuideIds:leaderIds.join(',')},
res => {
if (res.data.resultCode == 1) {
this.loading = false;
this.LeaderGuideDefault = res.data.data.BackAccountList;
this.IsJapan= res.data.data.IsJapan;
if(this.IsJapan==1){
this.nMsg.IsHaveFee=1;
}
this.LeaderGuideDefault.forEach(item=>{
if(item.IsAccount==0){
this.IsLGCommissionAccount=false;
}
});
this.saveMsg = [];
this.BOSSDialog = false;
this.BOSSDialogText = true;
} else {
this.$message.error(res.data.message);
this.loading = false;
this.BOSSDialog = false;
this.BOSSDialogText = false;
}
});
this.saveMsg = [];
this.BOSSDialog = false;
this.BOSSDialogText = true;
} else {
this.$message.error(res.data.message);
this.loading = false;
this.BOSSDialog = false;
this.BOSSDialogText = false;
}
},
err => {}
);
},
},
err => {}
);
}else{
this.IsJapan = this.nMsg.IsHaveFee = 0
this.saveMsg = [];
this.BOSSDialog = false;
this.BOSSDialogText = true;
}
},
MoreSureCreateBill() {
this.$confirm('是否批量生成财务单据?', this.$t('tips.tips'), {
......
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