Commit 8f451d75 authored by Mac's avatar Mac

修改

parent 4d6646f4
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
<!-- 稿酬 --> <!-- 稿酬 -->
<q-toggle <q-toggle
v-if="AuthorityObj.isroyalties==1 &&saveObj.FlowNodeList[NodeIndex].FlowAduitList&&saveObj.FlowNodeList[NodeIndex].FlowAduitList.length>0 && aIndex==0" v-if="AuthorityObj.isroyalties==1 &&saveObj.FlowNodeList[NodeIndex].FlowAduitList&&saveObj.FlowNodeList[NodeIndex].FlowAduitList.length>0 && aIndex==0"
v-model="saveObj.FlowNodeList[NodeIndex].FlowAduitList[0].IsSpecNode" label="稿酬状态" left-label v-model="saveObj.FlowNodeList[NodeIndex].FlowAduitList[0].IsSpecNode" label="稿酬显示" left-label
:true-value="1" :false-value="0" :true-value="1" :false-value="0"
@input="changeSpecNode(saveObj.FlowNodeList[NodeIndex].FlowAduitList[0])" /> @input="changeSpecNode(saveObj.FlowNodeList[NodeIndex].FlowAduitList[0])" />
</div> </div>
......
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
item.FlowAduitList[0].IsSpecNode == 1 item.FlowAduitList[0].IsSpecNode == 1
" "
> >
<span class="SetShouSun">设定收损</span> <span class="SetShouSun">设定稿酬</span>
</template> </template>
<div class="operationDiv"> <div class="operationDiv">
<i <i
......
...@@ -167,8 +167,9 @@ ...@@ -167,8 +167,9 @@
label="我下属的" label="我下属的"
/> />
</div> </div>
<div class="col-3"> <!-- <div class="col-3">
<q-select <q-select
@input="resetSearch"
dense dense
clearable clearable
filled filled
...@@ -182,7 +183,7 @@ ...@@ -182,7 +183,7 @@
/> />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select filled v-model="msg.StuChannel" label="收客渠道" dense :options="StuChannelList" option-label="Name" option-value="Id" emit-value map-options use-input <q-select filled v-model="msg.StuChannel" @input="resetSearch" label="收客渠道" dense :options="StuChannelList" option-label="Name" option-value="Id" emit-value map-options use-input clearable
@filter="filterStuChannel"> @filter="filterStuChannel">
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
...@@ -192,7 +193,7 @@ ...@@ -192,7 +193,7 @@
</q-item> </q-item>
</template> </template>
</q-select> </q-select>
</div> </div> -->
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
......
...@@ -107,7 +107,33 @@ ...@@ -107,7 +107,33 @@
:options="hetongList" emit-value map-options label="合同状态" :options="hetongList" emit-value map-options label="合同状态"
/> />
</div> </div>
<div class="col-3">
<q-select
@input="resetSearch"
dense
clearable
filled
option-value="Id"
option-label="Name"
v-model="msg.CreateType"
:options="customFromList"
emit-value
map-options
label="客户来源"
/>
</div>
<div class="col-3">
<q-select filled v-model="msg.StuChannel" @input="resetSearch" label="收客渠道" dense :options="StuChannelList" option-label="Name" option-value="Id" emit-value map-options use-input clearable
@filter="filterStuChannel">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div>
<div class="col-3"> <div class="col-3">
<q-field filled dense> <q-field filled dense>
<template v-slot:control> <template v-slot:control>
...@@ -322,7 +348,12 @@ import { ...@@ -322,7 +348,12 @@ import {
queryCourseDropdownList, queryCourseDropdownList,
} from '../../api/course/index' } from '../../api/course/index'
import { queryEmployee } from "../../api/users/user"; import { queryEmployee } from "../../api/users/user";
import {
queryGuestStateList,
CreateTypeList,
GetStuChannelList
} from "../../api/sale/sale.js";
import { import {
queryStuStageList, queryStuStageList,
GetStudentTypeList, GetStudentTypeList,
...@@ -364,6 +395,9 @@ export default { ...@@ -364,6 +395,9 @@ export default {
School_Id :'-1',//校区 School_Id :'-1',//校区
CourseId:'',//课程 CourseId:'',//课程
ConsultantId:'',//课程顾问 ConsultantId:'',//课程顾问
CreateType:'', //客户来源
StuChannel: "", //收客渠道
}, },
//归属类型列表 //归属类型列表
...@@ -410,7 +444,9 @@ export default { ...@@ -410,7 +444,9 @@ export default {
allCourseList: [],//课程 allCourseList: [],//课程
myCourseList:[], myCourseList:[],
RoleListData: [], //课程顾问下拉数据 RoleListData: [], //课程顾问下拉数据
customFromList: [], //客户来源
StuChannelList: [], //收客渠道
allStuChannelList: [], //所有收客渠道
...@@ -433,9 +469,43 @@ export default { ...@@ -433,9 +469,43 @@ export default {
this.getBranchList() this.getBranchList()
this.getCourseList();//获取课程下拉 this.getCourseList();//获取课程下拉
this.getRole() this.getRole()
this.getCustomFrom();
this.GetStuChannelList();
}, },
methods: { methods: {
//获取收客渠道
GetStuChannelList() {
GetStuChannelList({}).then(res => {
if (res.Code == 1) {
this.StuChannelList = res.Data;
this.allStuChannelList = res.Data;
}
});
},
//筛选渠道
filterStuChannel(val, update) {
update(() => {
if (val === "") {
this.StuChannelList = JSON.parse(
JSON.stringify(this.allStuChannelList)
);
} else {
const needle = val.toLowerCase();
this.StuChannelList = this.allStuChannelList.filter(
v => v.Name.toLowerCase().indexOf(needle) > -1
);
}
});
},
//获取客户来源
getCustomFrom() {
CreateTypeList({}).then(res => {
if (res.Code == 1) {
this.customFromList = res.Data;
}
});
},
getRole() { getRole() {
queryEmployee({ queryEmployee({
IsLeave: 1, IsLeave: 1,
...@@ -520,6 +590,12 @@ export default { ...@@ -520,6 +590,12 @@ export default {
if(msg.ConsultantId=='' ||msg.ConsultantId == null){ if(msg.ConsultantId=='' ||msg.ConsultantId == null){
msg.ConsultantId = 0 msg.ConsultantId = 0
} }
if(msg.StuChannel=='' ||msg.StuChannel == null){
msg.StuChannel = 0
}
if(msg.CreateType=='' ||msg.CreateType == null){
msg.CreateType = 0
}
getStudentFollowUpPageList(msg).then(res => { getStudentFollowUpPageList(msg).then(res => {
this.loading = false; this.loading = false;
......
...@@ -230,6 +230,33 @@ ...@@ -230,6 +230,33 @@
</template> </template>
</q-select> </q-select>
</div> </div>
<div class="col-3">
<q-select
@input="resetSearch"
:dense="false"
clearable
filled
option-value="Id"
option-label="Name"
v-model="msg.CreateType"
:options="customFromList"
emit-value
map-options
label="客户来源"
/>
</div>
<div class="col-3">
<q-select filled v-model="msg.StuChannelId" @input="resetSearch" label="收客渠道" :dense="false" :options="StuChannelList" option-label="Name" option-value="Id" emit-value map-options use-input clearable
@filter="filterStuChannel">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -392,7 +419,10 @@ ...@@ -392,7 +419,10 @@
getTypeEnum, getTypeEnum,
} from "../../api/stuMan/index.js"; } from "../../api/stuMan/index.js";
import { import {
queryGuestStateList queryGuestStateList,
CreateTypeList,
GetStuChannelList
} from "../../api/sale/sale.js"; } from "../../api/sale/sale.js";
import MoreQuery from "../../components/stuMan/moreQuery.vue"; import MoreQuery from "../../components/stuMan/moreQuery.vue";
import StopLessonForm from "../../components/teacher/stopLessonForm"; import StopLessonForm from "../../components/teacher/stopLessonForm";
...@@ -403,7 +433,7 @@ ...@@ -403,7 +433,7 @@
import list from "../../components/stuMan/makeUpHours.vue"; //可补课课时,缺勤次数,请假次数 import list from "../../components/stuMan/makeUpHours.vue"; //可补课课时,缺勤次数,请假次数
import eventLog from "../../components/stuMan/eventRecord.vue"; //事件记录 import eventLog from "../../components/stuMan/eventRecord.vue"; //事件记录
import studentRightForm from "../../components/school/student/studentRight-form"; import studentRightForm from "../../components/school/student/studentRight-form";
export default { export default {
meta: { meta: {
title: "学员名单", title: "学员名单",
...@@ -442,6 +472,8 @@ ...@@ -442,6 +472,8 @@
OrderTime: "", //下单时间 OrderTime: "", //下单时间
EndOrderTime: "", //下单结束时间 EndOrderTime: "", //下单结束时间
GuestState: "", //学员状态 GuestState: "", //学员状态
CreateType:'', //客户来源
StuChannelId: "" //收客渠道
}, },
pageCount: 0, pageCount: 0,
columns: [{ columns: [{
...@@ -668,7 +700,10 @@ ...@@ -668,7 +700,10 @@
stuOption: null, stuOption: null,
BelongType:1, BelongType:1,
isShowStuRight:false, isShowStuRight:false,
isJudgeTrans:1 isJudgeTrans:1,
customFromList: [], //客户来源
StuChannelList: [], //收客渠道
allStuChannelList: [], //所有收客渠道
}; };
}, },
...@@ -682,8 +717,42 @@ ...@@ -682,8 +717,42 @@
this.getTypeEnum(); this.getTypeEnum();
this.getEarlyWarningEnum(); this.getEarlyWarningEnum();
this.getList(); this.getList();
this.getCustomFrom();
this.GetStuChannelList();
}, },
methods: { methods: {
//获取收客渠道
GetStuChannelList() {
GetStuChannelList({}).then(res => {
if (res.Code == 1) {
this.StuChannelList = res.Data;
this.allStuChannelList = res.Data;
}
});
},
//筛选渠道
filterStuChannel(val, update) {
update(() => {
if (val === "") {
this.StuChannelList = JSON.parse(
JSON.stringify(this.allStuChannelList)
);
} else {
const needle = val.toLowerCase();
this.StuChannelList = this.allStuChannelList.filter(
v => v.Name.toLowerCase().indexOf(needle) > -1
);
}
});
},
//获取客户来源
getCustomFrom() {
CreateTypeList({}).then(res => {
if (res.Code == 1) {
this.customFromList = res.Data;
}
});
},
//获取学员状态列表 //获取学员状态列表
getGuestStateList() { getGuestStateList() {
queryGuestStateList({}).then(res => { queryGuestStateList({}).then(res => {
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<template v-slot:body-cell-RemunerationState="props"> <template v-slot:body-cell-RemunerationState="props">
<q-td :props="props"> <q-td :props="props">
<span v-if="props.row.RemunerationState==1">发放</span> <span v-if="props.row.RemunerationState==1">发放</span>
<span v-if="props.row.RemunerationState==2">不发放</span> <span v-else>不发放</span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<div style="display: flex;align-items: center;margin: 10px 0 ;" v-if="gaochouMsg"> <div style="display: flex;align-items: center;margin: 10px 0 ;" v-if="gaochouMsg">
稿酬状态: 稿酬状态:
<q-radio v-model="gaochouMsg.RemunerationState" val="1" label="发放" /> <q-radio v-model="gaochouMsg.RemunerationState" val="1" label="发放" />
<q-radio v-model="gaochouMsg.RemunerationState" val="2" label="不发放" /> <q-radio v-model="gaochouMsg.RemunerationState" val="0" label="不发放" />
</div> </div>
</q-card-section> </q-card-section>
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
gaochou(row){//稿酬状态设置 gaochou(row){//稿酬状态设置
this.gaochouMsg = { this.gaochouMsg = {
ContributeId :row.Id, ContributeId :row.Id,
RemunerationState:row.RemunerationState?row.RemunerationState.toString():2, RemunerationState:row.RemunerationState?row.RemunerationState.toString():0,
} }
this.isgaochouMsg = true this.isgaochouMsg = true
......
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