Commit 3184114a authored by Mac's avatar Mac

修改

parent 18d6efb1
......@@ -168,9 +168,9 @@
</div>
</div>
<div class="row">
<div class="col-6">
<!-- <div class="col-6">
<span>建议卖价:{{Number(saveObj.SuggestPrice).toFixed(2)}}</span>
</div>
</div> -->
<div class="col-6">
<span>实际卖价:{{Number(saveObj.SellPrice).toFixed(2)}}</span>
</div>
......@@ -196,84 +196,71 @@
优惠政策
</div>
<div class="col-4">
销售佣金
优惠比例
</div>
<div class="col-4">
同行佣金
优惠价格
</div>
</div>
<div class="row audit_List" v-for="(x,index) in saveObj.PreferentialList" :key="index">
<div class="row audit_List" >
<div class="col-4">
<template v-if="saveObj.PreferentialList.length>0">
<div class="border-bottom" v-if="x.PriceDiscountType == 1">
{{ x.BuyNum }}{{ x.SendNum }}
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 2">
单人报名享
<template v-if="x.PriceType==0">
{{ 100 - x.PriceMoney }}
</template>
<template v-else>
{{ x.PriceMoney }}
</template>
优惠
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 3">
双人报名享 <template v-if="x.PriceType==0">
{{ 100 - x.PriceMoney }}
</template>
<template v-else>
{{ x.PriceMoney }}
</template>优惠
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 4">
续费享 <template v-if="x.PriceType==0">
{{ 100 - x.PriceMoney }}
</template>
<template v-else>
{{ x.PriceMoney }}
</template>优惠
</div>
<div class="remark-font" v-if="x.PriceDiscountType == 0">
暂无优惠政策
</div>
</template>
<template v-else>
<span>暂无优惠政策</span>
</template>
<div class="border-bottom">首次报名优惠</div>
<div class="border-bottom">续费报名优惠</div>
</div>
<div class="col-4">
<template v-if="saveObj.PreferentialList.length>0">
<div class="border-bottom" style="padding-left: 16px;padding-right: 16px"
:class="{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
{{ x.SaleCommissionType == 1 ? "¥" : ""
}}{{ x.SaleCommissionMoney
}}{{ x.SaleCommissionType == 0 ? "%" : "" }}
<div class="border-bottom" style="padding-left: 16px;padding-right: 16px" >
{{saveObj.B2CRatio}}%
</div>
<div v-if="x.PriceDiscountType == 0">
<div class="remark-font">暂无佣金信息</div>
<div class="border-bottom" style="padding-left: 16px;padding-right: 16px" >
{{saveObj.B2CReNewRatio}}%
</div>
</template>
<template v-else>
<span>暂无优惠政策</span>
</template>
</div>
<div class="col-4">
<template v-if="saveObj.PreferentialList.length>0">
<div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.B2BCommissionType == 1 }"
v-if="x.PriceDiscountType != 0">
{{ x.B2BCommissionType == 1 ? "¥" : ""
}}{{ x.B2BCommissionMoney
}}{{ x.B2BCommissionType == 0 ? "%" : "" }}
<div class="border-bottom" >
{{getPrePrice(1)}}
</div>
<div v-if="x.PriceDiscountType == 0">
<div class="remark-font">暂无佣金信息</div>
<div class="border-bottom" >
{{getPrePrice(2)}}
</div>
</template>
<template v-else>
<span>暂无优惠政策</span>
</template>
</div>
</div>
<div class="row">
<div class="col-12">
<span class="stidyRoleLine"></span>
<span>返佣</span>
</div>
<div style="margin-top: 10px;" v-if="saveObj.CommissionReType==1">返佣类型:比例返佣</div>
<div style="margin-top: 10px;" v-if="saveObj.CommissionReType==2">返佣类型:固定金额返佣</div>
<table class="payTable">
<tr>
<th>同行</th>
<th>{{saveObj.CommissionReType==1?'首报返佣比例':'首报固定金额'}}</th>
<th v-if="saveObj.CommissionReType==1">首报返佣值</th>
<th>{{saveObj.CommissionReType==1?'续费比例':'续费固定金额'}}</th>
<th v-if="saveObj.CommissionReType==1">续费返佣值</th>
</tr>
<tr v-for="(item,index) in saveObj.scalelist" :key="index">
<td>
<span>{{item.Name}}</span>
</td>
<td>
<span>{{item.scale}}{{saveObj.CommissionReType==1?'%':''}}</span>
</td>
<td v-if="saveObj.CommissionReType==1">
<span>{{item.scalevalue}}</span>
</td>
<td>
<span>{{item.continue}}{{saveObj.CommissionReType==1?'%':''}}</span>
</td>
<td v-if="saveObj.CommissionReType==1">
<span>{{item.continuevalue}}</span>
</td>
</tr>
</table>
</div>
</div>
......@@ -407,6 +394,8 @@
</div>
</div>
</template>
<div style="margin-bottom: 100px;"></div>
</q-card>
<div class="dialog-out-close" @click="closeperForm"
style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;">
......@@ -508,6 +497,14 @@
initObj() {
queryStudyAbroadInfo(this.msg).then(res => {
this.saveObj = res.Data;
let scalelist= [
{Name:'同行返佣',scale:this.saveObj.B2BRebateRatio,scalevalue:this.getShouBAO(3),continue:this.saveObj.B2BReNewRatio,continuevalue:this.getShouBAO(4)},
{Name:'校代返佣',scale:this.saveObj.SchoolRebateRatio,scalevalue:this.getShouBAO(5),continue:this.saveObj.SchoolReNewRatio,continuevalue:this.getShouBAO(6)},
{Name:'学员转介返佣',scale:this.saveObj.TransIntroductceRatio,scalevalue:this.getShouBAO(7),continue:this.saveObj.TransIntroductceReNewRatio,continuevalue:this.getShouBAO(8)},
{Name:'内推返佣',scale:this.saveObj.InnerRecommendRatio,scalevalue:this.getShouBAO(9),continue:this.saveObj.InnerRecommendReNewRatio,continuevalue:this.getShouBAO(10)},
{Name:'直客返佣',scale:this.saveObj.B2CRbRatio,scalevalue:this.getShouBAO(11),continue:this.saveObj.B2CRNRatio,continuevalue:this.getShouBAO(12)},
]
this.saveObj.scalelist = scalelist
})
.catch(() => {});
},
......@@ -567,6 +564,104 @@
closeperForm() {
this.$emit("close");
this.persistent = false;
},
getPrePrice(type) {
//首次优惠
var Count = ''
if (type == 1) {
if (this.saveObj.B2CRatio) {
let num = Number(100 - this.saveObj.B2CRatio) / 100;
Count = (num * this.saveObj.SellPrice).toFixed(2);
}else{
Count = this.saveObj.SellPrice
}
}
if (type == 2) {
if (this.saveObj.B2CReNewRatio) {
let num = Number(100 - this.saveObj.B2CReNewRatio) / 100;
Count = (num * this.saveObj.SellPrice).toFixed(2);
}else{
Count = this.saveObj.SellPrice
}
}
return Count;
},
//获取首报返佣比例
getShouBAO(type) {
//首次优惠
var Count = ''
var currentPrice = Number(100 - this.saveObj.B2CRatio) * this.saveObj.SellPrice / 100;
var currrntXufei = Number(100 - this.saveObj.B2CReNewRatio) * this.saveObj.SellPrice / 100;
if (type == 3) {
if (this.saveObj.B2BRebateRatio) {
let num = currentPrice * Number(this.saveObj.B2BRebateRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 4) {
if (this.saveObj.B2BReNewRatio) {
let num = currrntXufei * Number(this.saveObj.B2BReNewRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 5) {
if (this.saveObj.SchoolRebateRatio) {
let num = currentPrice * Number(this.saveObj.SchoolRebateRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 6) {
if (this.saveObj.SchoolReNewRatio) {
let num = currrntXufei * Number(this.saveObj.SchoolReNewRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 7) {
if (this.saveObj.TransIntroductceRatio) {
let num = currentPrice * Number(this.saveObj.TransIntroductceRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 8) {
if (this.saveObj.TransIntroductceReNewRatio) {
let num = currrntXufei * Number(this.saveObj.TransIntroductceReNewRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 9) {
if (this.saveObj.InnerRecommendRatio) {
let num = currentPrice * Number(this.saveObj.InnerRecommendRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 10) {
if (this.saveObj.InnerRecommendReNewRatio) {
let num = currrntXufei * Number(this.saveObj.InnerRecommendReNewRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 11) {
if (this.saveObj.B2CRbRatio) {
let num = currentPrice * Number(this.saveObj.B2CRbRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
if (type == 12) {
if (this.saveObj.B2CRNRatio) {
let num = currrntXufei * Number(this.saveObj.B2CRNRatio) / 100;
Count = num.toFixed(2);
return Count;
}
}
}
}
}
......
......@@ -199,9 +199,9 @@
</div>
</div>
<div class="row">
<div class="col-6">
<!-- <div class="col-6">
<span>建议卖价:{{Number(saveObj.SuggestPrice).toFixed(2)}}</span>
</div>
</div> -->
<div class="col-6">
<span>实际卖价:{{Number(saveObj.SellPrice).toFixed(2)}}</span>
</div>
......
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