Commit 2deb4908 authored by youjie's avatar youjie

no message

parent 8b1c2d35
...@@ -529,9 +529,13 @@ export default { ...@@ -529,9 +529,13 @@ export default {
); );
}, },
settStartDates() { settStartDates() {
let date = moment().format('yyyy-MM-DD') if(this.$route.query.tStartDates){
let start = moment().subtract(1, 'months').format('yyyy-MM-DD') this.msg.tStartDates = this.$route.query.tStartDates
this.msg.tStartDates = [start, date] }else{
let date = moment().format('yyyy-MM-DD')
let start = moment().subtract(1, 'months').format('yyyy-MM-DD')
this.msg.tStartDates = [start, date]
}
}, },
handleClick(tab, event) { handleClick(tab, event) {
this.msg.EnterID = 0; this.msg.EnterID = 0;
......
...@@ -60,8 +60,11 @@ ...@@ -60,8 +60,11 @@
<div class="p_name"> <div class="p_name">
<span>{{data.emName}}</span> <span>{{data.emName}}</span>
<span>{{data.postName}}</span> <span>{{data.postName}}</span>
<div style="padding: 5px 0 0 0;font-size: 14px;color: #333333;" v-if="rankingNum"> <div style="padding: 5px 0 0 0;font-size: 14px;color: #333333;cursor: pointer;" v-if="rankingNum" @click="goAnticipate(5)">
<a style="color: #FF8C00;margin-left: 3px;margin-right: 3px;font-size: 18px;font-weight: bold;">{{rankingNum}}</a> <a style="color: #FF8C00;margin-left: 3px;margin-right: 3px;
font-size: 18px;font-weight: bold;">{{rankingNum}}</a
>
<a style="color: #666666;">( {{SumPreferPrice}} )</a>
</div> </div>
</div> </div>
<div style="display: flex;justify-content: space-between;"> <div style="display: flex;justify-content: space-between;">
...@@ -75,7 +78,7 @@ ...@@ -75,7 +78,7 @@
<p style="margin-bottom: 3px;"> <p style="margin-bottom: 3px;">
<el-tag <el-tag
v-if="data.peopelBonus" size="mini" type="danger" v-if="data.peopelBonus" size="mini" type="danger"
effect="dark" style="color: #ffff;position: absolute;right: -10px;bottom: 22px;">奖+{{data.peopelBonus}}</el-tag> effect="dark" style="color: #ffff;position: absolute;right: -10px;bottom: 23px;">奖+{{data.peopelBonus}}</el-tag>
<span style="color: #BDBDBD;font-size: 13px; <span style="color: #BDBDBD;font-size: 13px;
padding: 0 0 5px 0;font-weight: 100;">{{data.periodsName}}</span> padding: 0 0 5px 0;font-weight: 100;">{{data.periodsName}}</span>
</p> </p>
...@@ -658,8 +661,12 @@ ...@@ -658,8 +661,12 @@
}, },
methods: { methods: {
settStartDates() { settStartDates() {
let date = moment().format('yyyy-MM-DD') let nowdays = new Date()
let start = moment().subtract(1, 'months').format('yyyy-MM-DD') let Year = new Date().getFullYear()
let MonthTime = new Date().getMonth() + 1
let MonthDayNum = new Date(Year, 12, 0).getDate();
let date = Year+'-12-'+(MonthDayNum>10?MonthDayNum:'0'+MonthDayNum)
let start = Year+'-01-01'
this.PMMsg.tStartDates = [start, date] this.PMMsg.tStartDates = [start, date]
}, },
initData() { initData() {
...@@ -702,6 +709,7 @@ ...@@ -702,6 +709,7 @@
tableData.forEach((item,index)=>{ tableData.forEach((item,index)=>{
if(item.EnterID==Number(userInfo.EmployeeId)){ if(item.EnterID==Number(userInfo.EmployeeId)){
this.rankingNum = index+1 this.rankingNum = index+1
this.SumPreferPrice = item.SumPreferPrice
} }
}) })
}); });
...@@ -719,15 +727,27 @@ ...@@ -719,15 +727,27 @@
name = 'ServiceCommissionUser' name = 'ServiceCommissionUser'
}else if(type==4){ }else if(type==4){
name = 'saleExpectedCommission' name = 'saleExpectedCommission'
}else if(type==5){
name = 'salesVolumeRank'
this.$router.push({
name: name,
query: {
tStartDates: this.PMMsg.tStartDates,
blank: 'y'
}
});
} }
this.$router.push({ if(type!=5){
name: name, this.$router.push({
query: { name: name,
UserId: Number(userInfo.EmployeeId), query: {
isSale: 1, UserId: Number(userInfo.EmployeeId),
blank: 'y' isSale: 1,
} blank: 'y'
}); }
});
}
}, },
iWorkbench() { iWorkbench() {
this.apipost('customerIndex_post_GetMySelfSellInfo', {}, res => { this.apipost('customerIndex_post_GetMySelfSellInfo', {}, res => {
......
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