Commit 85cc5129 authored by Mac's avatar Mac

1

parent c2eaa66a
...@@ -399,7 +399,7 @@ import { ...@@ -399,7 +399,7 @@ import {
haochaimsg: { haochaimsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
FeeType:1, FeeType:0,
Name: "", Name: "",
SuppliesNum: "", SuppliesNum: "",
BrandName: "", BrandName: "",
......
...@@ -121,6 +121,33 @@ ...@@ -121,6 +121,33 @@
.studyDrawerTop{ .studyDrawerTop{
font-weight: bold; font-weight: bold;
} }
.studyproauditInfo .payTable {
width: 100%;
border-collapse: collapse;
}
.studyproauditInfo .payTable tr th {
background: #fff;
height: 40px;
font-size: 12px;
font-weight: bold;
color: #2D2D2D;
background: #DDDEE0;
}
.studyproauditInfo .payTable tr {
background: #fff;
text-align: center;
height: 40px;
}
.studyproauditInfo .payTable tr td {
font-size: 13px;
text-align: center;
color: #2D2D2D;
padding: 10px 0;
font-weight: bold;
border-bottom: 1px solid #E5E5E5;}
</style> </style>
<template> <template>
<q-dialog v-model="persistent" persistent maximized full-height seamless position="right" @hide="closeperForm"> <q-dialog v-model="persistent" persistent maximized full-height seamless position="right" @hide="closeperForm">
...@@ -200,82 +227,67 @@ ...@@ -200,82 +227,67 @@
优惠政策 优惠政策
</div> </div>
<div class="col-4"> <div class="col-4">
销售佣金 优惠比例
</div> </div>
<div class="col-4"> <div class="col-4">
同行佣金 优惠价格
</div> </div>
</div> </div>
<div class="row audit_List" v-for="(x,index) in saveObj.PreferentialList" :key="index"> <div class="row audit_List" :key="index">
<div class="col-4"> <div class="col-4">
<template v-if="saveObj.PreferentialList.length>0"> <div class="border-bottom">首次报名优惠</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 1"> <div class="border-bottom">续费报名优惠</div>
{{ 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> </div>
<div class="col-4"> <div class="col-4">
<template v-if="saveObj.PreferentialList.length>0"> <div class="border-bottom" style="padding-left: 16px;padding-right: 16px" >
<div class="border-bottom" style="padding-left: 16px;padding-right: 16px" {{saveObj.B2CRatio}}%
:class="{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
{{ x.SaleCommissionType == 1 ? "¥" : ""
}}{{ x.SaleCommissionMoney
}}{{ x.SaleCommissionType == 0 ? "%" : "" }}
</div> </div>
<div v-if="x.PriceDiscountType == 0"> <div class="border-bottom" style="padding-left: 16px;padding-right: 16px" >
<div class="remark-font">暂无佣金信息</div> {{saveObj.B2CReNewRatio}}%
</div> </div>
</template>
<template v-else>
<span>暂无优惠政策</span>
</template>
</div> </div>
<div class="col-4"> <div class="col-4">
<template v-if="saveObj.PreferentialList.length>0"> <div class="border-bottom" >
<div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.B2BCommissionType == 1 }" {{getPrePrice(1)}}
v-if="x.PriceDiscountType != 0">
{{ x.B2BCommissionType == 1 ? "¥" : ""
}}{{ x.B2BCommissionMoney
}}{{ x.B2BCommissionType == 0 ? "%" : "" }}
</div> </div>
<div v-if="x.PriceDiscountType == 0"> <div class="border-bottom" >
<div class="remark-font">暂无佣金信息</div> {{getPrePrice(2)}}
</div> </div>
</template>
<template v-else>
<span>暂无优惠政策</span>
</template>
</div> </div>
</div>
<div class="row">
<div class="col-12">
<span class="stidyRoleLine"></span>
<span>返佣</span>
</div>
<div v-if="this.saveObj.CommissionReType==1">返佣类型:比例返佣</div>
<div v-if="this.saveObj.CommissionReType==2">返佣类型:固定金额返佣</div>
<table class="payTable">
<tr>
<th>同行</th>
<th>首报名返佣比例</th>
<th>首报返佣值</th>
<th>返佣设置</th>
</tr>
<tr >
<td>
<span>同行返佣</span>
</td>
<td>
<span>{{this.saveObj.B2BRebateRatio}}{{this.saveObj.CommissionReType==1?'%':''}}</span>
</td>
<td>
<span>{{getShouBAO(3)}}</span>
</td>
<td>
<span>{{this.saveObj.B2BRebateRatio}}{{this.saveObj.CommissionReType==1?'%':''}}</span>
</td>
</tr>
</table>
</div> </div>
<template> <template>
<div class="studyDrawerTop"> <div class="studyDrawerTop">
...@@ -344,7 +356,12 @@ ...@@ -344,7 +356,12 @@
<script> <script>
import { import {
queryStudyAbroadInfo, queryStudyAbroadInfo,
} from "../../api/studyabroad/index"; } from "../../api/studyabroad/index";
import {
GetCourseRebateSetList
} from "../../api/course/index";
import { import {
mapState mapState
} from "vuex"; } from "vuex";
...@@ -365,7 +382,8 @@ ...@@ -365,7 +382,8 @@
msg: { msg: {
Id: 0, Id: 0,
IsGetPrice: 1 IsGetPrice: 1
} },
CourseRebateList:[]
} }
}, },
computed: mapState({ computed: mapState({
...@@ -394,9 +412,11 @@ ...@@ -394,9 +412,11 @@
return action && action.FunctionCode; return action && action.FunctionCode;
} }
return false; return false;
} },
}), }),
mounted() { mounted() {
this.getFanyong()
this.msg.Id = this.Id; this.msg.Id = this.Id;
this.initObj(); this.initObj();
}, },
...@@ -406,12 +426,117 @@ ...@@ -406,12 +426,117 @@
initObj() { initObj() {
queryStudyAbroadInfo(this.msg).then(res => { queryStudyAbroadInfo(this.msg).then(res => {
this.saveObj = res.Data; this.saveObj = res.Data;
let scalelist= [
{Name:'同行返佣',scale:this.saveObj.B2BRebateRatio,scalevalue:this.getShouBAO(3),},
]
this.saveObj.scalelist = scalelist
}) })
.catch(() => {}); .catch(() => {});
},
getFanyong() {
GetCourseRebateSetList().then(res => {
if (res.Code == 1) {
this.CourseRebateList = res.Data;
}
});
}, },
closeperForm() { closeperForm() {
this.$emit("close"); this.$emit("close");
this.persistent = false; 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);
}
}
if (type == 2) {
if (this.saveObj.B2CReNewRatio) {
let num = Number(100 - this.saveObj.B2CReNewRatio) / 100;
Count = (num * this.saveObj.SellPrice).toFixed(2);
}
}
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;
}
}
} }
} }
} }
...@@ -419,5 +544,6 @@ ...@@ -419,5 +544,6 @@
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
...@@ -58,7 +58,46 @@ ...@@ -58,7 +58,46 @@
<q-td key="SellPrice" :props="props"> <q-td key="SellPrice" :props="props">
{{props.row.SellPrice}} {{props.row.SellPrice}}
</q-td> </q-td>
<q-td key="PreferentialList" style="padding-right:0px">
<q-td key="B2CRatio" :props="props">
{{props.row.B2CRatio}}%
</q-td>
<q-td key="B2CReNewRatio" :props="props">
{{props.row.B2CReNewRatio}}%
</q-td>
<q-td key="B2BRebateRatio" :props="props">
{{props.row.B2BRebateRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="B2BReNewRatio" :props="props">
{{props.row.B2BReNewRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="SchoolRebateRatio" :props="props">
{{props.row.SchoolRebateRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="SchoolReNewRatio" :props="props">
{{props.row.SchoolReNewRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="TransIntroductceRatio" :props="props">
{{props.row.TransIntroductceRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="TransIntroductceReNewRatio" :props="props">
{{props.row.TransIntroductceReNewRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="InnerRecommendRatio" :props="props">
{{props.row.InnerRecommendRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="InnerRecommendReNewRatio" :props="props">
{{props.row.InnerRecommendReNewRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="B2CRbRatio" :props="props">
{{props.row.B2CRbRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<q-td key="B2CRNRatio" :props="props">
{{props.row.B2CRNRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td>
<!-- <q-td key="PreferentialList" style="padding-right:0px">
<div v-for="(x,index) in props.row.PreferentialList" :key="index"> <div v-for="(x,index) in props.row.PreferentialList" :key="index">
<div class="border-bottom" v-if="x.PriceDiscountType == 1"> <div class="border-bottom" v-if="x.PriceDiscountType == 1">
{{ x.BuyNum }}{{ x.SendNum }} {{ x.BuyNum }}{{ x.SendNum }}
...@@ -145,7 +184,7 @@ ...@@ -145,7 +184,7 @@
<div v-if="!props.row.EducationCommission || props.row.EducationCommission.length == 0"> <div v-if="!props.row.EducationCommission || props.row.EducationCommission.length == 0">
<div class="remark-font">暂无佣金信息</div> <div class="remark-font">暂无佣金信息</div>
</div> </div>
</q-td> </q-td> -->
<q-td key="SaleStateName"> <q-td key="SaleStateName">
<template v-if="props.row.SaleState==1"> <template v-if="props.row.SaleState==1">
{{props.row.SaleStateName}} {{props.row.SaleStateName}}
...@@ -158,13 +197,15 @@ ...@@ -158,13 +197,15 @@
<q-td key="Id" style="width:200px;"> <q-td key="Id" style="width:200px;">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditStudy(props.row)" /> @click="EditStudy(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="价格设置"
@click="EditStudyPrice(props.row)" />
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;"> <q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;">
<q-list> <q-list>
<q-item clickable v-close-popup @click="EditStudyPrice(props.row)"> <!-- <q-item clickable v-close-popup @click="EditStudyPrice(props.row)">
<q-item-section> <q-item-section>
<q-item-label>价格设置</q-item-label> <q-item-label>价格设置</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item> -->
<q-item clickable v-close-popup <q-item clickable v-close-popup
v-if="props.row.SaleState==1||props.row.SaleState==4||props.row.SaleState==5" v-if="props.row.SaleState==1||props.row.SaleState==4||props.row.SaleState==5"
@click="applyApply(props.row,2)"> @click="applyApply(props.row,2)">
...@@ -220,7 +261,7 @@ ...@@ -220,7 +261,7 @@
@success="refreshPage"> @success="refreshPage">
</studyAbroad-form> </studyAbroad-form>
<studyAbroadprice-form v-if="isShowStudyPrice" :save-obj="studyObj" :Type="2" @close="closeStudyForm" <studyAbroadprice-form v-if="isShowStudyPrice" :save-obj="studyObj" :Type="2" @close="closeStudyForm"
@success="refreshPage"> @success="refreshPage(),isShowStudyPrice=false">
</studyAbroadprice-form> </studyAbroadprice-form>
<studyproauditinfo-form v-if="isShowInfo" :Id="studyObj.Id" @close="closeStudyForm"></studyproauditinfo-form> <studyproauditinfo-form v-if="isShowInfo" :Id="studyObj.Id" @close="closeStudyForm"></studyproauditinfo-form>
</div> </div>
...@@ -235,7 +276,8 @@ ...@@ -235,7 +276,8 @@
deleteStudyAbroad deleteStudyAbroad
} from '../../api/studyabroad/index' } from '../../api/studyabroad/index'
import studyAbroadForm from '../../components/studyAbroad/studyAbroad-form' import studyAbroadForm from '../../components/studyAbroad/studyAbroad-form'
import studyAbroadpriceForm from '../../components/studyAbroad/studyAbroadprice-form' // import studyAbroadpriceForm from '../../components/studyAbroad/studyAbroadprice-form'
import studyAbroadpriceForm from '../../components/studyAbroad/newstudyAbroadprice-form'
import studyproauditinfoForm from '../../components/studyAbroad/studyproauditinfo-form' import studyproauditinfoForm from '../../components/studyAbroad/studyproauditinfo-form'
import { import {
mapState mapState
...@@ -298,48 +340,133 @@ ...@@ -298,48 +340,133 @@
field: 'SchoolName', field: 'SchoolName',
align: 'left' align: 'left'
}, },
{ // {
name: 'SuggestPrice', // name: 'SuggestPrice',
label: '建议卖价', // label: '建议卖价',
field: 'SuggestPrice', // field: 'SuggestPrice',
align: 'left', // align: 'left',
field: row => row.SuggestPrice.toFixed(2) // field: row => row.SuggestPrice.toFixed(2)
}, // },
{ {
name: 'SellPrice', name: 'SellPrice',
label: '实际卖价', label: '实际卖价',
field: 'SellPrice', field: 'SellPrice',
align: 'left', align: 'left',
field: row => row.SellPrice.toFixed(2) field: row => row.SellPrice.toFixed(2)
},
{
name: "B2CRatio",
required: true,
label: "直客优惠",
align: "left",
field: (row) => row.B2CRatio
},
{
name: "B2CReNewRatio",
required: true,
label: "直客优惠续费",
align: "left",
field: (row) => row.B2CReNewRatio
},
{
name: "B2BRebateRatio",
required: true,
label: "一般同行返佣比例",
align: "left",
field: (row) => row.B2BRebateRatio
},
{
name: "B2BReNewRatio",
required: true,
label: "一般同行续费返佣",
align: "left",
field: (row) => row.B2BReNewRatio
},
{
name: "SchoolRebateRatio",
required: true,
label: "校园同行返佣比例",
align: "left",
field: (row) => row.SchoolRebateRatio
},
{
name: "SchoolReNewRatio",
required: true,
label: "校园同行续费返佣",
align: "left",
field: (row) => row.SchoolReNewRatio
},
{
name: "TransIntroductceRatio",
required: true,
label: "转介返佣",
align: "left",
field: (row) => row.TransIntroductceRatio
},
{
name: "TransIntroductceReNewRatio",
required: true,
label: "转介续费返佣",
align: "left",
field: (row) => row.TransIntroductceReNewRatio
}, },
{ {
name: "PreferentialList", name: "InnerRecommendRatio",
required: true, required: true,
label: "优惠政策", label: "内推返佣",
align: "left", align: "left",
field: row => row.PreferentialList field: (row) => row.InnerRecommendRatio
}, },
{ {
name: "PreferentialListSellCommission", name: "InnerRecommendReNewRatio",
required: true, required: true,
label: "销售佣金", label: "内推续费返佣",
align: "left", align: "left",
field: row => row.PreferentialList field: (row) => row.InnerRecommendReNewRatio
}, },
{ {
name: "PreferentialListB2BCommission", name: "B2CRbRatio",
required: true, required: true,
label: "同行佣金", label: "直客返佣",
align: "left", align: "left",
field: row => row.PreferentialList field: (row) => row.B2CRbRatio
}, },
{ {
name: "EducationCommission", name: "B2CRNRatio",
required: true, required: true,
label: "教育同行佣金", label: "直客续费返佣",
align: "left", align: "left",
field: row => row.PreferentialList field: (row) => row.B2CRNRatio
}, },
// {
// name: "PreferentialList",
// required: true,
// label: "优惠政策",
// align: "left",
// field: row => row.PreferentialList
// },
// {
// name: "PreferentialListSellCommission",
// required: true,
// label: "销售佣金",
// align: "left",
// field: row => row.PreferentialList
// },
// {
// name: "PreferentialListB2BCommission",
// required: true,
// label: "同行佣金",
// align: "left",
// field: row => row.PreferentialList
// },
// {
// name: "EducationCommission",
// required: true,
// label: "教育同行佣金",
// align: "left",
// field: row => row.PreferentialList
// },
{ {
name: 'SaleStateName', name: 'SaleStateName',
label: '销售状态', label: '销售状态',
......
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