Commit 617e6e5d authored by youjie's avatar youjie

no message

parent 80c698dc
...@@ -260,17 +260,23 @@ ...@@ -260,17 +260,23 @@
// 点击制单 // 点击制单
YijianZD(item) { YijianZD(item) {
let Money let Money
if(this.msg.OutBranchId>-1){ // if(this.msg.OutBranchId>-1){
if(item.BranchCommission>0){ // if(item.BranchCommission>0){
Money=item.BranchCommission // Money=item.BranchCommission
}else{ // }else{
this.Error("公司提成为0,不能制单!") // this.Error("公司提成为0,不能制单!")
return; // return;
} // }
}else{ // }else{
Money=item.SumPrice // Money=item.SumPrice
} // }
if(item.BranchCommission>0){
Money=item.BranchCommission
}else{
this.Error("公司提成为0,不能制单!")
return;
}
let obj = { let obj = {
CostType: 16, CostType: 16,
Money: Money, Money: Money,
...@@ -278,7 +284,8 @@ ...@@ -278,7 +284,8 @@
XSTC: 1, XSTC: 1,
OtherType:72, OtherType:72,
ReFinanceId:item.Id, ReFinanceId:item.Id,
isRB_Branch_Id: true isRB_Branch_Id: true,
RB_Branch_Id: this.msg.OutBranchId
} }
let query = { let query = {
blank: "y", blank: "y",
......
...@@ -164,6 +164,7 @@ ...@@ -164,6 +164,7 @@
<li> <li>
<em>部门</em> <em>部门</em>
<el-select filterable size="mini" v-model='msg.RB_Department_Id' <el-select filterable size="mini" v-model='msg.RB_Department_Id'
:disabled="disabled"
@change='getEmployee();handleCurrentChange(1)'> @change='getEmployee();handleCurrentChange(1)'>
<el-option label="不限" :value="-1"></el-option> <el-option label="不限" :value="-1"></el-option>
<el-option v-for='item in departmentList' <el-option v-for='item in departmentList'
......
...@@ -2326,6 +2326,9 @@ ...@@ -2326,6 +2326,9 @@
} else { } else {
this.orderObj = this.$route.query.orderObj ? JSON.parse(this.$route.query.orderObj) : null; this.orderObj = this.$route.query.orderObj ? JSON.parse(this.$route.query.orderObj) : null;
} }
if(this.orderObj.RB_Branch_Id){
this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id
}
this.isFrompassenger = this.orderObj ? this.orderObj.isFromPassenger : undefined; this.isFrompassenger = this.orderObj ? this.orderObj.isFromPassenger : undefined;
let TCID = (this.orderObj && this.orderObj.TCIDList && this.orderObj.TCIDList.length > 0) ? this.orderObj let TCID = (this.orderObj && this.orderObj.TCIDList && this.orderObj.TCIDList.length > 0) ? this.orderObj
.TCIDList[0] : 0 .TCIDList[0] : 0
......
...@@ -92,14 +92,32 @@ ...@@ -92,14 +92,32 @@
color: red; color: red;
margin-right: 20px; margin-right: 20px;
} }
/deep/.ExpectedCommission-table .cell{
padding: 0 !important;
text-indent: 10px;
}
/deep/.ExpectedCommission-table .el-table .el-table__cell{
padding: 0 !important;
}
/deep/.ExpectedCommission-table .has-gutter .el-table__cell{
padding: 7px 0 !important;
}
.tableTd{
line-height: 30px;
border-bottom: 1px solid #DEE1E6;
}
.tableTd+ div{
line-height: 30px;
}
</style> </style>
<template> <template>
<div style="height: 92vh;overflow-y: scroll;"> <div style="height: 92vh;overflow-y: scroll;">
<div style="display: flex;align-items: center; justify-content: space-between;background: #fff; <div style="display: flex;align-items: center; justify-content: space-between;background: #fff;
height: 40px;padding: 0 20px;"> height: 40px;padding: 0 20px;">
<div class="headerTitle"> <div class="headerTitle">
<template v-if="CommissionInfor"> <template v-if="CommissionInfor.TotalCMoney">
<p>总提成:<span>{{CommissionInfor.TotalCMoney}}</span></p> <!-- <p>总提成:<span>{{CommissionInfor.TotalCMoney}}</span></p> -->
<p>总订单数:<span>{{CommissionInfor.SalesOrderNum+CommissionInfor.JapanOrderNum+CommissionInfor.EuropeOrderNum+GNOrderNum}}</span></p> <p>总订单数:<span>{{CommissionInfor.SalesOrderNum+CommissionInfor.JapanOrderNum+CommissionInfor.EuropeOrderNum+GNOrderNum}}</span></p>
<p>总人头数:<span>{{CommissionInfor.PeopleNum+CommissionInfor.EuropePNum+CommissionInfor.SalesPeopleNum+CommissionInfor.JapanPeopleNum+CommissionInfor.EuropePeopleNum+GNEopleNum}}</span></p> <p>总人头数:<span>{{CommissionInfor.PeopleNum+CommissionInfor.EuropePNum+CommissionInfor.SalesPeopleNum+CommissionInfor.JapanPeopleNum+CommissionInfor.EuropePeopleNum+GNEopleNum}}</span></p>
<p>总预期奖金:<span>{{CommissionInfor.PeopleMoney+CommissionInfor.EuropeMoney}}</span></p> <p>总预期奖金:<span>{{CommissionInfor.PeopleMoney+CommissionInfor.EuropeMoney}}</span></p>
...@@ -240,7 +258,7 @@ ...@@ -240,7 +258,7 @@
</div> </div>
<p style="padding: 0 0 10px 0;text-align: left;"><span style="font-size: 13px;color: red;">注:年终奖励从每年3月起始</span></p> <p style="padding: 0 0 10px 0;text-align: left;"><span style="font-size: 13px;color: red;">注:年终奖励从每年3月起始</span></p>
<div class="CommissionInfor"> <div class="CommissionInfor">
<span>连续达标 <span style="margin-left: 10px;">{{CommissionInfor.BonusNum}}</span></span> <span>达标 <span style="margin-left: 10px;">{{CommissionInfor.BonusNum}}</span></span>
<span><span>每月人数35人以上</span></span> <span><span>每月人数35人以上</span></span>
</span> </span>
</div> </div>
...@@ -257,8 +275,8 @@ ...@@ -257,8 +275,8 @@
<detailsButtom :type="5" :obj="detailsInfor"/> <detailsButtom :type="5" :obj="detailsInfor"/>
</div> </div>
</div> </div>
<p style="padding: 0 0 10px 0;text-align: left;"><span style="font-size: 13px;color: red;">注:国内提成需结团后方可发放提成,以实际结团为准,此只提供参考</span></p> <p style="padding: 0 0 10px 0;text-align: left;"><span style="font-size: 13px;color: red;">注:国内提成需结团后方可发放提成,以实际结团为准,此只提供参考</span></p>
<div> <div class="ExpectedCommission-table">
<el-table border ref="multipleTable" :data="DomesticLine.Rlist"> <el-table border ref="multipleTable" :data="DomesticLine.Rlist">
<el-table-column width="80" prop="RuleName" <el-table-column width="80" prop="RuleName"
label="团队类型" show-overflow-tooltip> label="团队类型" show-overflow-tooltip>
...@@ -268,15 +286,27 @@ ...@@ -268,15 +286,27 @@
</el-table-column> </el-table-column>
<el-table-column width="70" prop="OrderNum" <el-table-column width="70" prop="OrderNum"
label="订单数"> label="订单数">
<template slot-scope="scope">{{scope.row.OrderNum?scope.row.OrderNum:'-'}}</template> <template slot-scope="scope">
<div class="tableTd">{{scope.row.OrderNum?scope.row.OrderNum:'-'}}</div>
<div>
{{scope.row.WaitOrderNum?scope.row.WaitOrderNum:'-'}}
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column width="70" prop="PeopleNum" <el-table-column width="70" prop="PeopleNum"
label="报名数"> label="报名数">
<template slot-scope="scope">{{scope.row.PeopleNum?scope.row.PeopleNum:'-'}}</template> <template slot-scope="scope">
<div class="tableTd">{{scope.row.PeopleNum?scope.row.PeopleNum:'-'}}</div>
<div>
{{scope.row.WaitPeopleNum?scope.row.WaitPeopleNum:'-'}}
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="Way" <el-table-column prop="Way"
label="提成方式"> label="提成方式">
<template slot-scope="scope">{{scope.row.Way==2?'利润提成':'人头奖励'}}</template> <template slot-scope="scope">
{{scope.row.Way==2?'利润提成':'人头奖励'}}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="ProfitRate" <el-table-column prop="ProfitRate"
label="提成" width="150"> label="提成" width="150">
...@@ -295,11 +325,21 @@ ...@@ -295,11 +325,21 @@
<el-table-column prop="Profit" <el-table-column prop="Profit"
label="预期利润" show-overflow-tooltip> label="预期利润" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.Way==2&&scope.row.Profit?scope.row.Profit:'-'}} <div class="tableTd">{{scope.row.Way==2&&scope.row.Profit?scope.row.Profit:'-'}}</div>
<div>
{{scope.row.WaitProfit?scope.row.WaitProfit:'-'}}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="Commission" <el-table-column prop="Commission"
label="预期提成" show-overflow-tooltip><template slot-scope="scope">{{scope.row.Commission}}</template></el-table-column> label="预期提成" show-overflow-tooltip>
<template slot-scope="scope">
<div class="tableTd">{{scope.row.Commission}}</div>
<div>
{{scope.row.WaitCommission?scope.row.WaitCommission:'-'}}
</div>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
...@@ -543,7 +583,7 @@ ...@@ -543,7 +583,7 @@
// 年终奖 // 年终奖
this.AnnualBonus.AvfOrderNum = this.CommissionInfor.BonusNum?this.CommissionInfor.BonusNum:0 this.AnnualBonus.AvfOrderNum = this.CommissionInfor.BonusNum?this.CommissionInfor.BonusNum:0
this.AnnualBonus.Commission = this.CommissionInfor.BonusPeriods?this.CommissionInfor.BonusPeriods:0 this.AnnualBonus.Commission = this.CommissionInfor.BonusPeriods?this.CommissionInfor.BonusPeriods:0
// console.log(this.CommissionInfor,'----') console.log(this.CommissionInfor,'----')
}else { }else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -75,13 +75,17 @@ ...@@ -75,13 +75,17 @@
:percentage="setItemProgress(item)" :percentage="setItemProgress(item)"
:status="setItemStatus(item)" :status="setItemStatus(item)"
:format="setItemText(item)" :format="setItemText(item)"
:color="commissionratioList.AvgLureNum>item.StartValue?customColor[0]:customColor[1]"> :color="commissionratioList.CommissionRate>=item.Rate||
commissionratioList.AvgLureNum>item.StartValue?customColor[0]:customColor[1]">
</el-progress> </el-progress>
<div class="rate-box"> <div class="rate-box">
<div class="sanjiao" <div class="sanjiao"
:style="{'border-bottom-color':commissionratioList.AvgLureNum>item.StartValue?'#33B3FF':'#CACACA'}"></div> :style="{'border-bottom-color':commissionratioList.CommissionRate>=item.Rate||
commissionratioList.AvgLureNum>item.StartValue
?'#33B3FF':'#CACACA'}"></div>
<div class="rate full-width" <div class="rate full-width"
:class="{'active-rate':commissionratioList.AvgLureNum>item.StartValue}"> :class="{'active-rate':commissionratioList.CommissionRate>=item.Rate||
commissionratioList.AvgLureNum>item.StartValue}">
<i class="el-icon-check" style="font-size:8px"></i> <i class="el-icon-check" style="font-size:8px"></i>
{{item.Rate}}{{commissionratioList.type==2?'%':''}} {{item.Rate}}{{commissionratioList.type==2?'%':''}}
</div> </div>
...@@ -155,18 +159,18 @@ ...@@ -155,18 +159,18 @@
methods: { methods: {
// 设置进度 // 设置进度
setItemProgress(data) { setItemProgress(data) {
if(this.commissionratioList.AvgLureNum>=data.StartValue&&this.commissionratioList.AvfOrderNum>=data.EndValue){ if(this.commissionratioList.AvgLureNum>=data.StartValue&&this.commissionratioList.AvfOrderNum>=data.EndValue){
return 100 return 100
}else{ }else{
return 100 return 100
} }
}, },
// 自定义进度条文字 // 自定义进度条文字
setItemText(row) { setItemText(row) {
if(this.commissionratioList.type==2){ if(this.commissionratioList.type==2){
this.formatProgress(row) this.formatProgress(row)
return () => { return () => {
return row.StartValue2 + ' - ' + `${row.EndValue2>9999?'9999':row.EndValue2}`+`${row.StartValue>=10000||row.EndValue>=10000?'w':''}` return `${row.EndValue2>9999?'>'+row.StartValue2:row.StartValue2+' - '+row.EndValue2}w`
} }
}else if(this.commissionratioList.type==1){ }else if(this.commissionratioList.type==1){
return () => { return () => {
...@@ -188,14 +192,17 @@ ...@@ -188,14 +192,17 @@
formatProgress(data){ formatProgress(data){
let obj = JSON.parse(JSON.stringify(data)) let obj = JSON.parse(JSON.stringify(data))
if(obj.StartValue>=10000) { if(obj.StartValue>=10000) {
data.StartValue2 = Math.floor(obj.StartValue/10000) data.StartValue2 = (obj.StartValue/1000).toFixed(1)>0?(obj.StartValue/10000).toFixed(1):0 //Math.floor(obj.StartValue/10000)
if(data.StartValue2.indexOf('.0')!=-1){
data.StartValue2 = data.StartValue2.slice(0,1)
}
}else{ }else{
data.StartValue2 = obj.StartValue data.StartValue2 = (obj.StartValue/10000).toFixed(1)>0?(obj.StartValue/10000).toFixed(1):0
} }
if(obj.EndValue>=10000) { if(obj.EndValue>=10000) {
data.EndValue2 = obj.EndValue/10000 data.EndValue2 = obj.EndValue/10000
}else{ }else{
data.EndValue2 = obj.EndValue data.EndValue2 = (obj.EndValue/1000).toFixed(1)>0?(obj.EndValue/10000).toFixed(1):0
} }
}, },
} }
......
...@@ -69,8 +69,11 @@ ...@@ -69,8 +69,11 @@
<span></span> <span></span>
<span>{{data.totalCommission}}</span> <span>{{data.totalCommission}}</span>
</p> </p>
<p v-if="data.peopelBonus">人头奖励:{{data.peopelBonus}}</p> <p >
<p style="color: #BDBDBD;font-size: 13px;padding: 0 0 5px 0;">{{data.periodsName}}</p> <span v-if="data.peopelBonus" style="margin-right: 10px;">人头奖励:+{{data.peopelBonus}}</span>
<span style="color: #BDBDBD;font-size: 13px;
padding: 0 0 5px 0;">{{data.periodsName}}</span>
</p>
</div> </div>
<!-- <span><p class="tc">{{data.totalCommission}}</p></span>--> <!-- <span><p class="tc">{{data.totalCommission}}</p></span>-->
<div stye="font-size: 16px;color: #666666;display: block;display: inline-block;"> <div stye="font-size: 16px;color: #666666;display: block;display: inline-block;">
...@@ -664,7 +667,6 @@ ...@@ -664,7 +667,6 @@
this.apipost('customerIndex_post_GetMySelfSellInfo', {}, res => { this.apipost('customerIndex_post_GetMySelfSellInfo', {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.data = res.data.data; this.data = res.data.data;
console.log(this.data,'========')
this.myScore = res.data.data.taskCapacityList; this.myScore = res.data.data.taskCapacityList;
this.myScore.forEach(item => { this.myScore.forEach(item => {
if (item.score < 60) { if (item.score < 60) {
......
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