Commit 38fc8ddb authored by youjie's avatar youjie

业绩提成规则 新增部门有效到访奖励

parent 8682cff8
...@@ -63,7 +63,9 @@ ...@@ -63,7 +63,9 @@
:class="{ 'my-sticky-header-table': height != 'unset' }" separator="none" :data="dataList" :columns="columns" :class="{ 'my-sticky-header-table': height != 'unset' }" separator="none" :data="dataList" :columns="columns"
row-key="StuId" hide-bottom> row-key="StuId" hide-bottom>
<template v-if="showHeader" v-slot:top> <template v-if="showHeader" v-slot:top>
<div class="col-2 q-table__title">学员信息</div> <div class="col-2 q-table__title">学员信息
<template v-if="Count>0">(共{{Count}}条)</template>
</div>
<q-space /> <q-space />
<div class="page-option" v-if="!pushMode"> <div class="page-option" v-if="!pushMode">
<q-btn color="accent" v-if="IsTrasferAll()" outline class="q-mr-md" size="sm" icon="swap_horiz" label="批量转交" <q-btn color="accent" v-if="IsTrasferAll()" outline class="q-mr-md" size="sm" icon="swap_horiz" label="批量转交"
...@@ -297,6 +299,10 @@ ...@@ -297,6 +299,10 @@
export default { export default {
props: { props: {
Count: {
type: Number,
default: null
},
//数据列表 //数据列表
dataList: { dataList: {
type: Array, type: Array,
...@@ -562,7 +568,7 @@ ...@@ -562,7 +568,7 @@
} }
}); });
} }
this.formatAssistList(); this.formatAssistList();
}, },
mounted() { mounted() {
...@@ -589,7 +595,7 @@ ...@@ -589,7 +595,7 @@
} }
SetStudentSureConsult(msg).then(res => { SetStudentSureConsult(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
} }
}); });
}).onCancel(() =>{ }).onCancel(() =>{
...@@ -599,7 +605,7 @@ ...@@ -599,7 +605,7 @@
return row.IsSureConsultTime = 1 return row.IsSureConsultTime = 1
} }
}) })
}, },
//是否有下载客户资料权限 //是否有下载客户资料权限
IsDownLoadStu() { IsDownLoadStu() {
...@@ -968,4 +974,4 @@ ...@@ -968,4 +974,4 @@
} }
} }
}; };
</script> </script>
\ No newline at end of file
...@@ -168,8 +168,11 @@ ...@@ -168,8 +168,11 @@
<div <div
v-if="scope.row.OrderId" v-if="scope.row.OrderId"
style="cursor: pointer;text-decoration: underline;" style="cursor: pointer;text-decoration: underline;"
@click="goUrlorderList(scope.row.ClassType == -1 ?'/sale/studyOrderStatistics' : '/sale/orderStatistics', scope.row)" @click="goUrlorderList(scope.row.OrderId==-1?'/school/student'
>{{ scope.row.OrderId }}</div> :scope.row.OrderId!=-1&&scope.row.ClassType == -1 ?'/sale/studyOrderStatistics'
:scope.row.OrderId!=-1?'/sale/orderStatistics':'',
scope.row)"
>{{ scope.row.OrderId!=-1?scope.row.OrderId:'有效到访奖励' }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="IssueNum" label="发放次数" width="94"> <el-table-column prop="IssueNum" label="发放次数" width="94">
...@@ -184,7 +187,7 @@ ...@@ -184,7 +187,7 @@
<el-table-column width="130" prop="TotalCommissionMoney" label="订单发放信息"> <el-table-column width="130" prop="TotalCommissionMoney" label="订单发放信息">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.TotalCommissionMoney" style="color: rgb(255, 156, 0);cursor: pointer;text-decoration: underline;" @click="getmingxi(scope.row)"> <div v-if="scope.row.TotalCommissionMoney" style="color: rgb(255, 156, 0);cursor: pointer;text-decoration: underline;" @click="getmingxi(scope.row)">
应发:{{scope.row.TotalCommissionMoney}} 应发:{{scope.row.TotalCommissionMoney}}
<q-popup-proxy transition-show="flip-up" transition-hide="flip-down"> <q-popup-proxy transition-show="flip-up" transition-hide="flip-down">
...@@ -244,6 +247,7 @@ ...@@ -244,6 +247,7 @@
</div> </div>
</template> </template>
<script> <script>
import { date } from 'quasar'
import { import {
GetClassTypePageList, GetClassTypePageList,
} from '../../../api/system/index'; } from '../../../api/system/index';
...@@ -294,7 +298,7 @@ export default { ...@@ -294,7 +298,7 @@ export default {
created() { }, created() { },
mounted() { mounted() {
if (this.$route.query && this.$route.query.userId) { if (this.$route.query && this.$route.query.userId) {
this.msg.UserId = this.$route.query.userId this.msg.UserId = Number(this.$route.query.userId)
} }
if (this.$route.query && this.$route.query.preriodId) { if (this.$route.query && this.$route.query.preriodId) {
this.msg.PeriodId = this.$route.query.preriodId this.msg.PeriodId = this.$route.query.preriodId
...@@ -450,10 +454,23 @@ export default { ...@@ -450,10 +454,23 @@ export default {
this.$router.go(-1); this.$router.go(-1);
}, },
goUrlorderList(path, row) {//订单跳转 goUrlorderList(path, row) {//订单跳转
this.OpenNewUrl(path, { if(row.OrderId!=-1){
OrderId: row.OrderId, this.OpenNewUrl(path, {
// EnterID:row.UserId OrderId: row.OrderId,
}); // EnterID:row.UserId
});
}else{
// row.IsDept==2
let newDate = row.Periods.split('-')
let MonthDayNum = new Date(newDate[0], newDate[1], 0).getDate(); //计算当月的天数
this.OpenNewUrl(path, {
OrderId: row.OrderId,
startTime: row.Periods+'-01',
endTime: row.Periods+'-'+MonthDayNum,
createBy: row.UserId
});
}
}, },
goUrlclass(path, Names) {//班级 goUrlclass(path, Names) {//班级
let Name = encodeURI(Names) let Name = encodeURI(Names)
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
</style> </style>
<template> <template>
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<td> <td>
<span >{{ item.CourseRate + '%' }}</span> <span >{{ item.CourseRate + '%' }}</span>
</td> </td>
<td style="padding: 0 10px;"> <td style="padding: 0 10px;">
<span v-for="( son , sIndex ) in item.EmpList" :key="sIndex"> <span v-for="( son , sIndex ) in item.EmpList" :key="sIndex">
<span v-if="sIndex<8">{{ son.EmployeeName }}{{item.EmpList.length==sIndex+1?'':'、'}}</span> <span v-if="sIndex<8">{{ son.EmployeeName }}{{item.EmpList.length==sIndex+1?'':'、'}}</span>
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<el-button slot="reference" style="border: none;" type="text">查看更多</el-button> <el-button slot="reference" style="border: none;" type="text">查看更多</el-button>
</el-popover> </el-popover>
</td> </td>
<td style="padding: 0 10px;"> <td style="padding: 0 10px;">
<span v-for="( son , sIndex ) in item.ChildEmpList" :key="sIndex"> <span v-for="( son , sIndex ) in item.ChildEmpList" :key="sIndex">
<span v-if="sIndex<8">{{ son.EmployeeName }}{{item.ChildEmpList.length==sIndex+1?'':'、'}}</span> <span v-if="sIndex<8">{{ son.EmployeeName }}{{item.ChildEmpList.length==sIndex+1?'':'、'}}</span>
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
cellspacing="0" cellspacing="0"
cellpadding="0" cellpadding="0"
> >
<tr> <tr>
<td rowspan="2" width="100" style="min-width: 100px;">提成比例</td> <td rowspan="2" width="100" style="min-width: 100px;">提成比例</td>
<th style="min-width: 220px;" <th style="min-width: 220px;"
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
</tr> </tr>
<tr style=""> <tr style="">
<td style="min-width: 220px;" v-for="( son , sIndex ) in item.RateList" :key="sIndex">{{ son.Rate }}%</td> <td style="min-width: 220px;" v-for="( son , sIndex ) in item.RateList" :key="sIndex">{{ son.Rate }}%</td>
</tr> </tr>
</table> </table>
<table v-if="item.SendType=='2'" <table v-if="item.SendType=='2'"
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
cellspacing="0" cellspacing="0"
cellpadding="0" cellpadding="0"
> >
<tr> <tr>
<td rowspan="2" width="100" style="min-width: 100px;">固定金额</td> <td rowspan="2" width="100" style="min-width: 100px;">固定金额</td>
<th style="min-width: 220px;" <th style="min-width: 220px;"
...@@ -214,14 +214,33 @@ ...@@ -214,14 +214,33 @@
<td style="min-width: 220px;">{{ item.ExtraMoney }}</td> <td style="min-width: 220px;">{{ item.ExtraMoney }}</td>
</tr> </tr>
</table> </table>
<table v-if="item.EnableZGAward=='1'"
class="po_content singeRowTable"
style="border:1px solid #E6E6E6;"
cellspacing="0"
cellpadding="0"
>
<tr>
<td rowspan="2" width="100" style="min-width: 100px;">有效到访奖励</td>
<th style="min-width: 220px;"
v-for="( son , sIndex ) in item.ZGAwardList"
:key="sIndex"
>{{ son.StartValue }} <span>{{son.EndValue && son.EndValue!=-1?'<=有效到访<':'<有效到访'}}</span><span v-if="son.EndValue && son.EndValue!=-1">{{ son.EndValue }}</span></th>
</tr>
<tr style="">
<td style="min-width: 220px;" v-for="( son , sIndex ) in item.ZGAwardList" :key="sIndex">{{ son.Rate }}</td>
</tr>
</table>
</div> </div>
</div> </div>
<div <div
v-if="dataList.length == 0" v-if="dataList.length == 0"
style="width: 100%;border:1px solid #E6E6E6;display: flex;align-items: center;justify-content: center;height: 60px;" style="width: 100%;border:1px solid #E6E6E6;display: flex;align-items: center;justify-content: center;height: 60px;"
>暂无数据</div> >暂无数据</div>
</template> </template>
<marketCommissionfrom <marketCommissionfrom
v-if="persistent" v-if="persistent"
...@@ -320,7 +339,7 @@ export default { ...@@ -320,7 +339,7 @@ export default {
}) })
} }
}) })
} }
this.loading = false this.loading = false
}) })
...@@ -347,7 +366,7 @@ export default { ...@@ -347,7 +366,7 @@ export default {
getSchoolDropdown({}).then(res => { getSchoolDropdown({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.SchoolList = res.Data; this.SchoolList = res.Data;
} }
}) })
}, },
...@@ -380,7 +399,7 @@ export default { ...@@ -380,7 +399,7 @@ export default {
this.persistent = true; this.persistent = true;
this.selectData = item this.selectData = item
this.isAdd = false; this.isAdd = false;
}, },
RemoveTask(Id){//删除 RemoveTask(Id){//删除
let delMsg = { let delMsg = {
......
...@@ -135,9 +135,14 @@ ...@@ -135,9 +135,14 @@
</el-table-column> </el-table-column>
<el-table-column prop="OrderId" label="订单号"> <el-table-column prop="OrderId" label="订单号">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="cursor: pointer;text-decoration: underline;" <div
@click="goUrlorderList(scope.row.ClassType == -1 ?'/sale/studyOrderStatistics' : '/sale/orderStatistics',scope.row)"> v-if="scope.row.OrderId"
{{scope.row.OrderId}} </div> style="cursor: pointer;text-decoration: underline;"
@click="goUrlorderList(scope.row.OrderId==-1?'/school/student'
:scope.row.OrderId!=-1&&scope.row.ClassType == -1 ?'/sale/studyOrderStatistics'
:scope.row.OrderId!=-1?'/sale/orderStatistics':'',
scope.row)">
{{ scope.row.OrderId!=-1?scope.row.OrderId:'有效到访奖励' }} </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width='130' prop="TotalCommissionMoney" label="订单发放信息"> <el-table-column width='130' prop="TotalCommissionMoney" label="订单发放信息">
...@@ -467,9 +472,21 @@ ...@@ -467,9 +472,21 @@
}); });
}, },
goUrlorderList(path, row) { //订单跳转 goUrlorderList(path, row) { //订单跳转
this.OpenNewUrl(path, { if(row.OrderId!=-1){
OrderId: row.OrderId, this.OpenNewUrl(path, {
}); OrderId: row.OrderId,
});
}else{
// row.IsDept==2
let newDate = row.Periods.split('-')
let MonthDayNum = new Date(newDate[0], newDate[1], 0).getDate(); //计算当月的天数
this.OpenNewUrl(path, {
OrderId: row.OrderId,
startTime: row.Periods+'-01',
endTime: row.Periods+'-'+MonthDayNum,
createBy: row.UserId
});
}
}, },
getmingxi(row) { //明细 getmingxi(row) { //明细
getSellAchievementsChangeLog({ getSellAchievementsChangeLog({
...@@ -488,4 +505,4 @@ ...@@ -488,4 +505,4 @@
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
\ No newline at end of file
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</div> </div>
<div class="page-content"> <div class="page-content">
<stulist :dataList="data" @reload="getStudent" @success="refreshPage" :loading="loading" ref="stuList" <stulist :dataList="data" @reload="getStudent" @success="refreshPage" :loading="loading" ref="stuList"
:isJudgeTrans="isJudgeTrans"> :isJudgeTrans="isJudgeTrans" :Count="Count">
</stulist> </stulist>
<div class="row" style="justify-content: flex-end;padding: 5px 20px"> <div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end" <q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end"
...@@ -128,6 +128,7 @@ ...@@ -128,6 +128,7 @@
}, },
data() { data() {
return { return {
Count:0,
currentUrl: "", currentUrl: "",
data: [], data: [],
loading: true, loading: true,
...@@ -348,6 +349,7 @@ ...@@ -348,6 +349,7 @@
this.loading = false; this.loading = false;
this.data = res.Data.PageData; this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
this.Count = res.Data.Count
this.data.forEach(x => { this.data.forEach(x => {
if (x.CreateBy != this.userInfo.Id) { if (x.CreateBy != this.userInfo.Id) {
x.BelongType = 3; x.BelongType = 3;
...@@ -399,4 +401,4 @@ ...@@ -399,4 +401,4 @@
background-color: transparent; background-color: transparent;
border: none; border: none;
} }
</style> </style>
\ No newline at end of file
...@@ -63,14 +63,19 @@ ...@@ -63,14 +63,19 @@
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select filled stack-label option-value="Id" @input="resetSearch" dense option-label="Name" <q-select filled stack-label option-value="Id" @input="resetSearch" dense option-label="Name"
v-model="msg.StuChannel" ref="AdvisorStatus" :options="channelList" clearable label="渠道" v-model="msg.StuChannel" :options="channelList" clearable label="渠道"
class="col-6 q-pb-lg" emit-value map-options />
</div>
<div class="col-3">
<q-select filled stack-label option-value="Id" @input="resetSearch" dense option-label="Name"
v-model="msg.IsSureConsultTime" :options="visitList" clearable label="有效到访"
class="col-6 q-pb-lg" emit-value map-options /> class="col-6 q-pb-lg" emit-value map-options />
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<stulist :dataList="data" @success="refreshPage" :loading="loading" ref="stuList" :authObj="AuthObj" <stulist :dataList="data" @success="refreshPage" :loading="loading" ref="stuList" :authObj="AuthObj"
:queryMsg="msg"> :queryMsg="msg" :Count="AuthObj.Count">
</stulist> </stulist>
<div class="row" style="justify-content: flex-end;padding: 5px 20px"> <div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end" <q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end"
...@@ -139,6 +144,7 @@ ...@@ -139,6 +144,7 @@
CreateType: "", //来源类型 CreateType: "", //来源类型
StuSourceId: "", //来源人编号 StuSourceId: "", //来源人编号
CategoryId: "", //同行编号 CategoryId: "", //同行编号
IsSureConsultTime: 1,// 0不限 1有效到访 2无效到访
}, },
dateArray: [], //日期数组 dateArray: [], //日期数组
pageCount: 0, pageCount: 0,
...@@ -149,8 +155,14 @@ ...@@ -149,8 +155,14 @@
customTypeList: [], //客户类型 customTypeList: [], //客户类型
AuthObj: { AuthObj: {
isShowDownload: true, isShowDownload: true,
Count: 0
}, },
consultList: [], consultList: [],
visitList: [
{Name:'不限',Id:0},
{Name:'只看有效到访',Id:1},
{Name:'只看无效到访',Id:2},
],
//渠道列表 //渠道列表
channelList: [], channelList: [],
} }
...@@ -269,6 +281,7 @@ ...@@ -269,6 +281,7 @@
this.loading = false; this.loading = false;
this.data = res.Data.PageData this.data = res.Data.PageData
this.pageCount = res.Data.PageCount this.pageCount = res.Data.PageCount
this.AuthObj.Count = res.Data.Count
this.data.forEach(x => { this.data.forEach(x => {
if (x.CreateBy != this.userInfo.Id) { if (x.CreateBy != this.userInfo.Id) {
x.BelongType = 3; x.BelongType = 3;
...@@ -288,4 +301,4 @@ ...@@ -288,4 +301,4 @@
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
\ No newline at end of file
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