Commit fc98dd5d authored by youjie's avatar youjie

no message

parent efce48e7
......@@ -119,7 +119,7 @@
methods: {
// 设置进度
setItemProgress(data) {
if(this.Profit&&this.Profit>=data.StartValue&&this.Profit<=data.EndValue){
if(this.Profit>0&&this.Profit>=data.StartValue&&this.Profit<=data.EndValue){
return data.EndValue<999999?this.Profit/data.StartValue:this.Profit/data.EndValue
}else{
return 0
......
......@@ -172,7 +172,8 @@
flex-wrap: nowrap;
}
.ladder-form-box{
height: 92px;
/* height: 72px; */
padding: 0 0 10px 0;
overflow: auto;
display: flex;
flex-wrap: nowrap;
......@@ -271,8 +272,9 @@
</div>
<div style="display: flex;align-items: center; justify-content: space-between;padding: 20px 20px 0 20px;">
<div class="headerTitle">
<p><span>总订单数:</span> <span></span></p>
<p><span>总人头数:</span><span></span></p>
<!-- <p><span>总团队数:</span> <span>{{groupNum}}</span></p> -->
<p><span>总订单数:</span> <span>{{OrderNum}}</span></p>
<p><span>总人头数:</span><span>{{EopleNum}}</span></p>
<p><span>总预期奖金:</span><span>{{CommissionJJ}}</span></p>
<p><span>总预期提成:</span><span>{{CommissionTC}}</span></p>
</div>
......@@ -296,6 +298,9 @@
<span>
当月团数:<span>{{s.TravelNum}}</span>
</span>
<span>
单项订单数:<span>{{s.SingleOrderNum}}</span>
</span>
<span>
预期利润:<span>{{s.Profit}}</span>
</span>
......@@ -339,7 +344,7 @@
<span class="ProjectTitle">单项签证</span>
</div>
<div class="groupTourOrder">
<span>报名单数:<span>{{item.SingleVisa.OrderNum}}</span></span>
<span>单数:<span>{{item.SingleVisa.OrderNum}}</span></span>
<span>预期利润:<span>{{item.SingleVisa.Profit}}</span></span>
<span>提成比例:<span>{{item.SingleVisa.Rate}}{{item.SingleVisa.Way==1?'元/人':'%'}}</span></span>
<span>预期提成:<span>{{item.SingleVisa.Commission}}</span></span>
......@@ -361,13 +366,13 @@
<span>公司所有国内出发线路(单团.散拚)</span></span>
</div>
<div class="groupTourOrder">
<span>订单数:<span>{{item.PeopleAward.TravelNum}}</span></span>
<span>团队数:<span>{{item.PeopleAward.TravelNum}}</span></span>
<span>人头数:<span>{{item.PeopleAward.PeopelNum}}</span></span>
<span>提成方式:<span>{{item.PeopleAward.Rate}}{{item.PeopleAward.Way==1?'元/人':'%'}}</span></span>
<span>预期提成:<span>{{item.PeopleAward.Commission}}</span></span>
</div>
</div>
<div>
<div v-if="!index">
<div style="display: flex;">
<div>
<div class="commissionProjectZL">
......@@ -526,6 +531,11 @@
export default {
data (){
return{
jianjin: 0,
yuqiticheng: 0,
groupNum: 0,
OrderNum:0,
EopleNum:0,
defaultHeadImg: 'this.src="' + require("../../assets/img/default_head_img.jpg") + '"',
data:{},
loading: true,
......@@ -617,9 +627,6 @@
name: 'TravelControlList',
query: {
blank: 'y',
// Q_IsCollect: "2",
// DepartSTime: this.commissionMsg.DepartSTime,
// DepartETime: this.commissionMsg.DepartETime
}
});
},
......@@ -631,16 +638,41 @@
this.msg.Month = this.Year+'-'+(this.LastMonthTime>10?this.LastMonthTime:'0'+this.LastMonthTime)
}
this.getList()
this.GetGNSaleExpectCommission()
},
// 获取规则列表数据
getList() {
this.loading = true
this.apipost("opcommission_GetOPExpectCommission", this.msg, res => {
if (res.data.resultCode == 1) {
this.OrderNum = 0
this.groupNum = 0
this.EopleNum = 0
this.jianjin = 0
this.yuqiticheng = 0
this.dataRlueList = res.data.data.RlueList
this.dataRlueList.forEach(item=>{
this.groupNum += item.TravelAward.TravelNum
this.groupNum += item.PeopleAward.TravelNum
this.OrderNum += item.SingleVisa.OrderNum
this.jianjin += (item.TravelAward.AwardMoney*100)
this.yuqiticheng += (item.SingleVisa.Commission*100)
this.yuqiticheng += (item.TravelVisa.Commission*100)
this.yuqiticheng += (item.PeopleAward.Commission*100)
item.BranchList.forEach(s=>{
this.groupNum += s.TravelNum
this.OrderNum += s.SingleOrderNum
this.yuqiticheng += (s.Commission*100)
})
this.EopleNum += item.PeopleAward.PeopelNum
})
this.ZLOPAward = res.data.data.ZLOPAward
// console.log(res.data.data,'---')
this.OrderNum += this.ZLOPAward.SinglePeopleNum
this.yuqiticheng += (this.ZLOPAward.TravelCommission*100)
this.yuqiticheng += (this.ZLOPAward.SingleCommission*10)
this.yuqiticheng = this.yuqiticheng/100
this.jianjin = this.jianjin/100
this.GetGNSaleExpectCommission()
}else{
this.Error(res.data.message)
}
......@@ -653,12 +685,12 @@
res => {
if (res.data.resultCode == 1) {
this.DomesticLine = res.data.data
this.GNOrderNum = 0
this.GNEopleNum = 0
// this.GNOrderNum = 0
// this.GNEopleNum = 0
this.GNCommission = 0
this.DomesticLine.Rlist.forEach(item=>{
this.GNOrderNum+=Number(item.OrderNum)
this.GNEopleNum+=Number(item.PeopleNum)
// this.GNOrderNum+=Number(item.OrderNum)
// this.GNEopleNum+=Number(item.PeopleNum)
this.GNCommission+=Number(item.Commission)
})
......@@ -669,8 +701,8 @@
this.DomesticLine.Rlist[0],
this.DomesticLine.Rlist[1]]
this.newRlist = [this.DomesticLine.Rlist[2]]
let arr1 =[this.CommissionInfor.PeopleMoney,this.CommissionInfor.EuropeMoney]
let arr2 =[this.CommissionInfor.SalesCommission,this.CommissionInfor.JapanCommission,this.CommissionInfor.EuropeCommission,this.GNCommission]
let arr1 =[this.jianjin]
let arr2 =[this.GNCommission,this.yuqiticheng]
this.CommissionJJ = this.CalculatePrice(arr1,0)
this.CommissionTC = this.CalculatePrice(arr2,2)
}
......@@ -681,7 +713,7 @@
res => {
if (res.data.resultCode == 1) {
let data = res.data.data.pageData
if(data.length>5){
if(data&&data.length>5){
for(let i=0;i<5;i++){
this.OrderList.push(data[i])
}
......@@ -772,7 +804,6 @@
this.iWorkbench()
this.GetOrderPageList()
this.getList()
this.GetGNSaleExpectCommission()
},
}
......
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