Commit e6673f14 authored by zhengke's avatar zhengke

修改

parent 220e0d6f
......@@ -15,6 +15,7 @@
background-color: #3FC4FF;
margin-right: 5px;
}
</style>
<template>
<q-dialog v-model="persistent" persistent content-class="bg-grey-1" transition-show="scale" transition-hide="scale">
......@@ -79,9 +80,13 @@
</td>
</tr>
</table>
<div class="text-caption q-mb-lg q-mt-lg text-grey-6">
<span class="course_Line"></span>
返佣
<div class="text-caption q-mb-lg q-mt-lg text-grey-6 row wrap" style="align-items:center;">
<div>
<span class="course_Line"></span>
返佣
</div>
<q-select style="width:200px;margin-left:35px;" filled dense v-model="priceObj.courseObj.CommissionReType"
:options="CommissionList" emit-value map-options option-value="Id" option-label="Name" label="返佣类型" />
</div>
<table style="border-collapse: collapse;" class="coursePrice_table">
<tr style="height:40px;">
......@@ -90,7 +95,7 @@
<th>
首报名返佣比例
</th>
<th>
<th v-if="priceObj.courseObj.CommissionReType==1">
首报返佣值
</th>
<th>
......@@ -99,7 +104,7 @@
<th>
续费报名返佣比例
</th>
<th>
<th v-if="priceObj.courseObj.CommissionReType==1">
续费返佣值
</th>
<th>
......@@ -114,30 +119,36 @@
<q-input filled stack-label dense v-model="priceObj.courseObj.B2BRebateRatio" ref="B2BRebateRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'B2BRebateRatio'),getShouBAO(3)" suffix="%" />
</td>
<td style="text-align:center;width:100px;">
<td style="text-align:center;width:100px;" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(3)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.B2BRebateRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.B2BRebateRatioType==3" style="width:75px;margin-left:5px;"
filled stack-label dense v-model="priceObj.courseObj.B2BRebateRatioValue" @keyup.native="checkPrice(priceObj.courseObj, 'B2BRebateRatioValue')" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.B2BRebateRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.B2BRebateRatioType==3"
style="width:75px;margin-left:5px;" filled stack-label dense
v-model="priceObj.courseObj.B2BRebateRatioValue"
@keyup.native="checkPrice(priceObj.courseObj, 'B2BRebateRatioValue')" />
</div>
</td>
<td>
<q-input filled stack-label dense v-model="priceObj.courseObj.B2BReNewRatio" ref="B2BReNewRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'B2BReNewRatio'),getShouBAO(4)" suffix="%" />
</td>
<td style="text-align:center;width:100px;">
<td style="text-align:center;width:100px;" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(4)}}
</td>
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.B2BReNewRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.B2BReNewRatioType==3" style="width:75px;margin-left:5px;"
filled stack-label dense v-model="priceObj.courseObj.B2BReNewRatioValue" @keyup.native="checkPrice(priceObj.courseObj, 'B2BReNewRatioValue')" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.B2BReNewRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.B2BReNewRatioType==3"
style="width:75px;margin-left:5px;" filled stack-label dense
v-model="priceObj.courseObj.B2BReNewRatioValue"
@keyup.native="checkPrice(priceObj.courseObj, 'B2BReNewRatioValue')" />
</div>
</td>
</tr>
......@@ -149,30 +160,36 @@
<q-input filled stack-label dense v-model="priceObj.courseObj.SchoolRebateRatio" ref="SchoolRebateRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'SchoolRebateRatio'),getShouBAO(5)" suffix="%" />
</td>
<td style="text-align:center;">
<td style="text-align:center;" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(5)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.SchoolRebateRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.SchoolRebateRatioType==3" style="width:75px;margin-left:5px;"
filled stack-label dense v-model="priceObj.courseObj.SchoolRebateRatioValue" @keyup.native="checkPrice(priceObj.courseObj, 'SchoolRebateRatioValue')" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.SchoolRebateRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.SchoolRebateRatioType==3"
style="width:75px;margin-left:5px;" filled stack-label dense
v-model="priceObj.courseObj.SchoolRebateRatioValue"
@keyup.native="checkPrice(priceObj.courseObj, 'SchoolRebateRatioValue')" />
</div>
</td>
<td>
<q-input filled stack-label dense v-model="priceObj.courseObj.SchoolReNewRatio" ref="SchoolReNewRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'SchoolReNewRatio'),getShouBAO(6)" suffix="%" />
</td>
<td style="text-align:center;">
<td style="text-align:center;" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(6)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.SchoolReNewRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.SchoolReNewRatioType==3" filled stack-label
style="width:75px;margin-left:5px;" dense @keyup.native="checkPrice(priceObj.courseObj, 'SchoolReNewRatioValue')" v-model="priceObj.courseObj.SchoolReNewRatioValue" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.SchoolReNewRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.SchoolReNewRatioType==3" filled stack-label
style="width:75px;margin-left:5px;" dense
@keyup.native="checkPrice(priceObj.courseObj, 'SchoolReNewRatioValue')"
v-model="priceObj.courseObj.SchoolReNewRatioValue" />
</div>
</td>
</tr>
......@@ -185,15 +202,18 @@
ref="TransIntroductceRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'TransIntroductceRatio'),getShouBAO(7)" suffix="%" />
</td>
<td style="text-align:center">
<td style="text-align:center" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(7)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.TransIntroductceRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.TransIntroductceRatioType==3" filled
stack-label dense style="width:75px;margin-left:5px;" @keyup.native="checkPrice(priceObj.courseObj, 'TransIntroductceRatioValue')" v-model="priceObj.courseObj.TransIntroductceRatioValue" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.TransIntroductceRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.TransIntroductceRatioType==3" filled stack-label dense
style="width:75px;margin-left:5px;"
@keyup.native="checkPrice(priceObj.courseObj, 'TransIntroductceRatioValue')"
v-model="priceObj.courseObj.TransIntroductceRatioValue" />
</div>
</td>
<td>
......@@ -201,15 +221,18 @@
ref="TransIntroductceReNewRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'TransIntroductceReNewRatio'),getShouBAO(8)" suffix="%" />
</td>
<td style="text-align:center">
<td style="text-align:center" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(8)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.TransIntroductceReNewRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.TransIntroductceReNewRatioType==3" filled
stack-label dense style="width:75px;margin-left:5px;" @keyup.native="checkPrice(priceObj.courseObj, 'TransIntroductceReNewRatioValue')" v-model="priceObj.courseObj.TransIntroductceReNewRatioValue" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.TransIntroductceReNewRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.TransIntroductceReNewRatioType==3" filled stack-label
dense style="width:75px;margin-left:5px;"
@keyup.native="checkPrice(priceObj.courseObj, 'TransIntroductceReNewRatioValue')"
v-model="priceObj.courseObj.TransIntroductceReNewRatioValue" />
</div>
</td>
</tr>
......@@ -222,15 +245,18 @@
ref="InnerRecommendRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'InnerRecommendRatio'),getShouBAO(9)" suffix="%" />
</td>
<td style="text-align:center">
<td style="text-align:center" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(9)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.InnerRecommendRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-6" v-if="priceObj.courseObj.InnerRecommendRatioType==3" filled stack-label dense
v-model="priceObj.courseObj.InnerRecommendRatioValue" @keyup.native="checkPrice(priceObj.courseObj, 'InnerRecommendRatioValue')" style="width:75px;margin-left:5px;" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.InnerRecommendRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-6" v-if="priceObj.courseObj.InnerRecommendRatioType==3" filled stack-label dense
v-model="priceObj.courseObj.InnerRecommendRatioValue"
@keyup.native="checkPrice(priceObj.courseObj, 'InnerRecommendRatioValue')"
style="width:75px;margin-left:5px;" />
</div>
</td>
<td>
......@@ -238,15 +264,18 @@
ref="InnerRecommendReNewRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'InnerRecommendReNewRatio'),getShouBAO(10)" suffix="%" />
</td>
<td style="text-align:center">
<td style="text-align:center" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(10)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.InnerRecommendReNewRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.InnerRecommendReNewRatioType==3" filled stack-label dense
v-model="priceObj.courseObj.InnerRecommendReNewRatioValue" @keyup.native="checkPrice(priceObj.courseObj, 'InnerRecommendReNewRatioValue')" style="width:75px;margin-left:5px;" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.InnerRecommendReNewRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.InnerRecommendReNewRatioType==3" filled stack-label
dense v-model="priceObj.courseObj.InnerRecommendReNewRatioValue"
@keyup.native="checkPrice(priceObj.courseObj, 'InnerRecommendReNewRatioValue')"
style="width:75px;margin-left:5px;" />
</div>
</td>
</tr>
......@@ -255,35 +284,39 @@
直客返佣
</td>
<td>
<q-input filled stack-label dense v-model="priceObj.courseObj.B2CRbRatio"
ref="B2CRbRatio"
<q-input filled stack-label dense v-model="priceObj.courseObj.B2CRbRatio" ref="B2CRbRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'B2CRbRatio'),getShouBAO(11)" suffix="%" />
</td>
<td style="text-align:center">
<td style="text-align:center" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(11)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.B2CRbRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-6" v-if="priceObj.courseObj.B2CRbRatioType==3" filled stack-label dense
v-model="priceObj.courseObj.B2CRbRatioValue" @keyup.native="checkPrice(priceObj.courseObj, 'B2CRbRatioValue')" style="width:75px;margin-left:5px;" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.B2CRbRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-6" v-if="priceObj.courseObj.B2CRbRatioType==3" filled stack-label dense
v-model="priceObj.courseObj.B2CRbRatioValue"
@keyup.native="checkPrice(priceObj.courseObj, 'B2CRbRatioValue')"
style="width:75px;margin-left:5px;" />
</div>
</td>
<td>
<q-input filled stack-label dense v-model="priceObj.courseObj.B2CRNRatio"
ref="B2CRNRatio"
<q-input filled stack-label dense v-model="priceObj.courseObj.B2CRNRatio" ref="B2CRNRatio"
@keyup.native="checkPrice(priceObj.courseObj, 'B2CRNRatio'),getShouBAO(12)" suffix="%" />
</td>
<td style="text-align:center">
<td style="text-align:center" v-if="priceObj.courseObj.CommissionReType==1">
{{getShouBAO(12)}}
</td>
<td style="width:200px;">
<td style="width:200px;">
<div class="row wrap">
<q-select class="col-7" filled dense v-model="priceObj.courseObj.B2CRNRatioType" :options="CourseRebateList"
emit-value map-options option-value="Id" option-label="Name" label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.B2CRNRatioType==3" filled stack-label dense
v-model="priceObj.courseObj.B2CRNRatioValue" @keyup.native="checkPrice(priceObj.courseObj, 'B2CRNRatioValue')" style="width:75px;margin-left:5px;" />
<q-select class="col-7" filled dense v-model="priceObj.courseObj.B2CRNRatioType"
:options="CourseRebateList" emit-value map-options option-value="Id" option-label="Name"
label="返佣设置" />
<q-input class="col-5" v-if="priceObj.courseObj.B2CRNRatioType==3" filled stack-label dense
v-model="priceObj.courseObj.B2CRNRatioValue"
@keyup.native="checkPrice(priceObj.courseObj, 'B2CRNRatioValue')"
style="width:75px;margin-left:5px;" />
</div>
</td>
</tr>
......@@ -327,7 +360,7 @@
CourseId: 0, //课程编号
OriginalPrice: 0, //原价
SellPrice: 0, //售价
CommissionReType:1,//1课耗返佣 2付款返佣
CommissionReType: 1, //返佣类型(1比例返佣,2-固定金额返佣)
B2CRatio: 0, //直客首次报名优惠比例
B2CReNewRatio: 0, //直客续费优惠比例
B2BRebateRatio: 0, //一般同行首次报名返佣比例
......@@ -354,17 +387,24 @@
InnerRecommendReNewRatio: 0, //內推续费返佣比例
InnerRecommendReNewRatioType: 1,
InnerRecommendReNewRatioValue: '',
B2CRbRatio:0,//直客首次报名返佣比例
B2CRbRatioType:1,//直客首次报名返佣类型
B2CRbRatioValue:"",// 直客首次报名返佣类型值
B2CRNRatio:0,//直客续费返佣比例
B2CRNRatioType:1,//直客续费返佣类型
B2CRNRatioValue:"",//直客续费返佣类型值
B2CRbRatio: 0, //直客首次报名返佣比例
B2CRbRatioType: 1, //直客首次报名返佣类型
B2CRbRatioValue: "", // 直客首次报名返佣类型值
B2CRNRatio: 0, //直客续费返佣比例
B2CRNRatioType: 1, //直客续费返佣类型
B2CRNRatioValue: "", //直客续费返佣类型值
},
priceList: [] //价格列表
},
CourseRebateList: [],
priceTypeList: [] //优惠类型列表
priceTypeList: [], //优惠类型列表
CommissionList: [{
Id: 1,
Name: '比例返佣'
}, {
Id: 2,
Name: '固定金额返佣'
}]
};
},
created() {
......@@ -376,9 +416,9 @@
},
methods: {
//获取返佣设置下拉
getFanyong(){
getFanyong() {
GetCourseRebateSetList().then(res => {
if(res.Code==1){
if (res.Code == 1) {
this.CourseRebateList = res.Data;
}
});
......@@ -549,7 +589,7 @@
getShouBAO(type) {
//首次优惠
var Count = ''
var currentPrice = Number(100 - this.priceObj.courseObj.B2CRatio) * this.priceObj.courseObj.SellPrice/100;
var currentPrice = Number(100 - this.priceObj.courseObj.B2CRatio) * this.priceObj.courseObj.SellPrice / 100;
if (type == 3) {
if (this.priceObj.courseObj.B2BRebateRatio) {
let num = currentPrice * Number(this.priceObj.courseObj.B2BRebateRatio) / 100;
......@@ -623,4 +663,5 @@
}
}
};
</script>
\ No newline at end of file
</script>
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