Commit f8c257ad authored by 罗超's avatar 罗超

no message

parent 4523f0b1
...@@ -119,6 +119,11 @@ ...@@ -119,6 +119,11 @@
this.msg.PeriodId = this.$route.query.Id; this.msg.PeriodId = this.$route.query.Id;
this.getList(); this.getList();
} }
if(this.$route.query.UserId){
this.msg.EmployeeId = this.$route.query.UserId
this.msg.YearNum = this.$route.query.Periods.slice(0,4)
this.msg.MonthNum = this.$route.query.Periods.slice(5,7)
}
}, },
methods: { methods: {
//获取分页列表 //获取分页列表
......
...@@ -113,6 +113,14 @@ ...@@ -113,6 +113,14 @@
height: 40px; height: 40px;
background-color: rgb(238, 238, 239); background-color: rgb(238, 238, 239);
} }
.color_text{
color: #2961fe;
}
.color_text:hover{
text-decoration: underline;
cursor:pointer;
}
</style> </style>
<template> <template>
<div class="page-body studentTracking"> <div class="page-body studentTracking">
...@@ -223,22 +231,27 @@ ...@@ -223,22 +231,27 @@
> >
<div v-if="item.MonthList[x.index]"> <div v-if="item.MonthList[x.index]">
<div v-if="x.Id == 1"> <div v-if="x.Id == 1">
<span>{{ item.MonthList[x.index].Achievement }}</span> <span :class="item.RoleName=='小计'? '' : 'color_text'"
@click="item.RoleName=='小计'?'':clickDataDetails(item.EmpId,item.MonthList[x.index],'1')">{{ item.MonthList[x.index].Achievement }}</span>
</div> </div>
<div v-if="x.Id == 2" style="padding: 7px;"> <div v-if="x.Id == 2" style="padding: 7px;">
<span>{{ item.MonthList[x.index].Rate }}</span> <span>{{ item.MonthList[x.index].Rate }}</span>
</div> </div>
<div v-if="x.Id == 3" style="padding: 3px;"> <div v-if="x.Id == 3" style="padding: 3px;">
<span>{{ item.MonthList[x.index].Rebate }}</span> <span :class="item.RoleName=='小计'? '' : 'color_text'"
@click="item.RoleName=='小计'?'':clickDataDetails(item.EmpId,item.MonthList[x.index],'1')">{{ item.MonthList[x.index].Rebate }}</span>
</div> </div>
<div v-if="x.Id == 4" style="padding: 3px;"> <div v-if="x.Id == 4" style="padding: 3px;">
<span>{{ item.MonthList[x.index].Commission }}</span> <span :class="item.RoleName=='小计'? '' : 'color_text'"
@click="item.RoleName=='小计'?'':clickDataDetails(item.EmpId,item.MonthList[x.index],'2')">{{ item.MonthList[x.index].Commission }}</span>
</div> </div>
<div v-if="x.Id == 5" style="padding: 3px;"> <div v-if="x.Id == 5" style="padding: 3px;">
<span>{{ item.MonthList[x.index].Brokerage }}</span> <span :class="item.RoleName=='小计'? '' : 'color_text'"
@click="item.RoleName=='小计'?'':clickDataDetails(item.EmpId,item.MonthList[x.index],'3')">{{ item.MonthList[x.index].Brokerage }}</span>
</div> </div>
<div v-if="x.Id == 6" style="padding: 3px;"> <div v-if="x.Id == 6" style="padding: 3px;">
<span>{{ item.MonthList[x.index].Bonus }}</span> <span :class="item.RoleName=='小计'? '' : 'color_text'"
@click="item.RoleName=='小计'?'':clickDataDetails(item.EmpId,item.MonthList[x.index],'4')">{{ item.MonthList[x.index].Bonus }}</span>
</div> </div>
<div v-if="x.Id == 7" style="padding: 3px;"> <div v-if="x.Id == 7" style="padding: 3px;">
<span>{{ item.MonthList[x.index].Total }}</span> <span>{{ item.MonthList[x.index].Total }}</span>
...@@ -302,13 +315,58 @@ export default { ...@@ -302,13 +315,58 @@ export default {
mounted() { mounted() {
var d = new Date(); var d = new Date();
var currentY = d.getFullYear(); var currentY = d.getFullYear();
var currentM = d.getMonth(); var currentM = d.getMonth() - 1;
var month = d.getMonth() + 1; var month = d.getMonth() + 1;
this.msg.StartMonth = currentY + "-" + currentM; this.msg.StartMonth = currentY + "-" + currentM;
this.msg.EndMonth = currentY + "-" + month; this.msg.EndMonth = currentY + "-" + month;
this.dateArray.push(this.msg.StartMonth)
this.dateArray.push(this.msg.EndMonth)
this.getList(); //获取数据 this.getList(); //获取数据
}, },
methods: { methods: {
// 数据详情
clickDataDetails(UserId,item,type){
if(type==2){//提现
const routeData = this.$router.resolve({
path: '/financial/market/marketStatistics',
query: {
UserId: UserId,
Periods: item.Month
}
});
window.open(routeData.href, '_blank')
}
if(type==3){//返佣金额
const routeData = this.$router.resolve({
path: '/financial/returnPassbook/returnpassbookStatistics',
query: {
UserId: UserId,
Periods: item.Month
}
});
window.open(routeData.href, '_blank')
}
if(type==4){//人头奖励
const routeData = this.$router.resolve({
path: '/financial/market/empBonusDetail',
query: {
UserId: UserId,
Periods: item.Month
}
});
window.open(routeData.href, '_blank')
}
if(type==1){//业绩、订单返佣
const routeData = this.$router.resolve({
path: '/sale/orderStatistics',
query: {
UserId: UserId,
Periods: item.Month
}
});
window.open(routeData.href, '_blank')
}
},
tcexport(){//导出 tcexport(){//导出
var msg = JSON.parse(JSON.stringify(this.msg)); var msg = JSON.parse(JSON.stringify(this.msg));
EduDownLoad("/SellAchievements/GetSellAchievementsRankStatToExcel", msg, "业绩提成排名.xls") EduDownLoad("/SellAchievements/GetSellAchievementsRankStatToExcel", msg, "业绩提成排名.xls")
......
...@@ -312,6 +312,7 @@ ...@@ -312,6 +312,7 @@
} }
}, },
mounted() { mounted() {
this.getPeriodList()//周期
if (this.$route.query && this.$route.query.OrderId) { if (this.$route.query && this.$route.query.OrderId) {
this.msg.OrderId = this.$route.query.OrderId this.msg.OrderId = this.$route.query.OrderId
} }
...@@ -340,10 +341,14 @@ ...@@ -340,10 +341,14 @@
this.isNormal = false; this.isNormal = false;
this.msg.Q_SelectNormal = '-1' this.msg.Q_SelectNormal = '-1'
} }
if (this.$route.query && this.$route.query.UserId) {
this.msg.OrderSourceId = this.$route.query.UserId-0;
this.msg.OrderSourceType = 1
}
this.getList() this.getList()
this.setClass() this.setClass()
this.getBranchList() this.getBranchList()
this.getPeriodList()
this.getCustomFrom() //来源 this.getCustomFrom() //来源
this.getEmployeeList() this.getEmployeeList()
this.getStudentDorpDown() this.getStudentDorpDown()
...@@ -538,7 +543,16 @@ ...@@ -538,7 +543,16 @@
BatchName: '不限', BatchName: '不限',
Id: '0' Id: '0'
} }
this.PeriodsList.unshift(obj) this.PeriodsList.unshift(obj)
// 从业绩表跳转带参
if(this.$route.query.Periods){
let dataTime = this.$route.query.Periods.slice(0,4)+this.$route.query.Periods.slice(5,7)
this.PeriodsList.forEach(item=>{
if(item.BatchName.slice(0,6)==dataTime){
this.msg.BatchId = item.Id
}
})
}
} }
}) })
}, },
......
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