Commit db7f0602 authored by zhengke's avatar zhengke

修改

parent 2b12e79f
......@@ -676,4 +676,15 @@ export function GetNeedsList(data) {
method: 'post',
data
});
}
/**
* 获取我的下属下拉
*/
export function GetPersonalDimension(data) {
return request({
url: '/OKRPeriod/GetPersonalDimension',
method: 'post',
data
});
}
\ No newline at end of file
......@@ -76,7 +76,8 @@
<span class="student_require">*</span>客户名称
</div>
<div class="stage_value">
<q-input filled v-model="customObj.StuName" style="width:185px;" ref="StuName" dense :disable="noEdit"></q-input>
<q-input filled v-model="customObj.StuName" style="width:185px;" ref="StuName" dense :disable="noEdit">
</q-input>
</div>
</div>
</div>
......@@ -86,8 +87,8 @@
客户电话
</div>
<div class="stage_value">
<q-input filled v-model="customObj.StuTel" style="width:185px;" @blur="CheckExistsStu(1)" ref="StuTel" :disable="noEdit"
dense>
<q-input filled v-model="customObj.StuTel" style="width:185px;" @blur="CheckExistsStu(1)" ref="StuTel"
:disable="noEdit" dense>
</q-input>
</div>
</div>
......@@ -109,8 +110,8 @@
微信号
</div>
<div class="stage_value">
<q-input filled v-model="customObj.WeChatNo" @blur="CheckExistsStu(3)" style="width:185px;" ref="WeChatNo" :disable="noEdit"
dense></q-input>
<q-input filled v-model="customObj.WeChatNo" @blur="CheckExistsStu(3)" style="width:185px;" ref="WeChatNo"
:disable="noEdit" dense></q-input>
</div>
</div>
</div>
......@@ -120,101 +121,102 @@
<span class="student_require">*</span>客户状态
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuStage" dense :options="customState" option-label="Name" :disable="noEdit"
style="width:185px;" option-value="Id" emit-value map-options label="客户状态" />
</div>
</div>
</div>
<div class="customer_info_component">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>客户来源
</div>
<div class="stage_value">
<q-select filled v-model="customObj.CreateType" @change="clearStuMsg()" style="width:185px;"
:disable="(customObj.StuId>0 || noEdit)" @input="resetStuSource()" dense :options="customFromList" option-label="Name"
option-value="Id" emit-value map-options label="客户来源" />
</div>
</div>
</div>
<div class="customer_info_component" v-if="customObj.CreateType==3">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>介绍人
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuSourceId" style="width:185px;" dense @filter="filterEmployee"
:disable="(customObj.StuId>0 || noEdit)" use-input :options="myEmployeeList" option-label="EmployeeName"
option-value="Id" emit-value map-options />
<q-select filled v-model="customObj.StuStage" dense :options="customState" option-label="Name"
:disable="noEdit" style="width:185px;" option-value="Id" emit-value map-options label="客户状态" />
</div>
</div>
</div>
<div class="customer_info_component" v-if="customObj.CreateType==4">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>转介人
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuSourceId" style="width:185px;" use-input @filter="filterStudent"
:disable="(customObj.StuId>0 || noEdit)" dense :options="MyTransListData" option-label="StuName" option-value="StuId"
emit-value map-options />
<template v-if="BelongType!=3">
<div class="customer_info_component">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>客户来源
</div>
<div class="stage_value">
<q-select filled v-model="customObj.CreateType" @change="clearStuMsg()" style="width:185px;"
:disable="(noEdit || isHaveOrder)" @input="resetStuSource()" dense :options="customFromList"
option-label="Name" option-value="Id" emit-value map-options label="客户来源" />
</div>
</div>
</div>
</div>
<div class="customer_info_component" v-if="customObj.CreateType==1">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>收客渠道
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuChannel" style="width:185px;" dense :options="StuChannelList"
:disable="(customObj.StuId>0 || noEdit)" option-label="Name" option-value="Id" emit-value map-options use-input
@filter="filterStuChannel">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
<div class="customer_info_component" v-if="customObj.CreateType==3">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>介绍人
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuSourceId" style="width:185px;" dense @filter="filterEmployee"
:disable="(noEdit || isHaveOrder)" use-input :options="myEmployeeList" option-label="EmployeeName"
option-value="Id" emit-value map-options />
</div>
</div>
</div>
</div>
<div class="customer_info_component" v-if="customObj.CreateType==2">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>关联同行
</div>
<div class="stage_value">
<q-select filled v-model="customObj.CustomerId" style="width:185px" dense :options="customList" use-input
:disable="(customObj.StuId>0 || noEdit)" @filter="filterFn" option-label="CustomerName" option-value="CustomerId"
emit-value map-options>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
<div class="customer_info_component" v-if="customObj.CreateType==4">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>转介人
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuSourceId" style="width:185px;" use-input @filter="filterStudent"
:disable="(noEdit || isHaveOrder)" dense :options="MyTransListData" option-label="StuName"
option-value="StuId" emit-value map-options />
</div>
</div>
</div>
</div>
<template v-if="customObj.CreateType==1">
<div class="info_item" v-if="customObj.StuChannel==6">
<div class="item_label">第三方平台名称</div>
<div class="item_value">
<q-input filled v-model="customObj.PlatformName" dense :disable="noEdit"></q-input>
<div class="customer_info_component" v-if="customObj.CreateType==1">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>收客渠道
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuChannel" style="width:185px;" dense :options="StuChannelList"
:disable="(noEdit || isHaveOrder)" option-label="Name" option-value="Id" emit-value map-options
use-input @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 class="info_item" v-if="customObj.StuChannel==7">
<div class="item_label">其他平台名称</div>
<div class="item_value">
<q-input filled v-model="customObj.PlatformName" dense :disable="noEdit"></q-input>
<div class="customer_info_component" v-if="customObj.CreateType==2">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>关联同行
</div>
<div class="stage_value">
<q-select filled v-model="customObj.CustomerId" style="width:185px" dense :options="customList" use-input
:disable="(noEdit || isHaveOrder)" @filter="filterFn" option-label="CustomerName"
option-value="CustomerId" emit-value map-options>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div>
</div>
</div>
<template v-if="customObj.CreateType==1">
<div class="info_item" v-if="customObj.StuChannel==6">
<div class="item_label">第三方平台名称</div>
<div class="item_value">
<q-input filled v-model="customObj.PlatformName" dense :disable="noEdit"></q-input>
</div>
</div>
<div class="info_item" v-if="customObj.StuChannel==7">
<div class="item_label">其他平台名称</div>
<div class="item_value">
<q-input filled v-model="customObj.PlatformName" dense :disable="noEdit"></q-input>
</div>
</div>
</template>
</template>
<div class="customer_info_component">
<div class="customer_info_Stage">
......@@ -222,8 +224,8 @@
<span class="student_require">*</span>客户类型
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuType" style="width:185px" dense :options="customTypeList" :disable="noEdit"
option-label="Name" option-value="Id" emit-value map-options label="客户类型" />
<q-select filled v-model="customObj.StuType" style="width:185px" dense :options="customTypeList"
:disable="noEdit" option-label="Name" option-value="Id" emit-value map-options label="客户类型" />
</div>
</div>
</div>
......@@ -233,8 +235,8 @@
客户需求
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuNeeds" style="width:185px" dense :options="NeedData" :disable="noEdit"
option-label="Name" option-value="Id" emit-value map-options label="客户需求" />
<q-select filled v-model="customObj.StuNeeds" style="width:185px" dense :options="NeedData"
:disable="noEdit" option-label="Name" option-value="Id" emit-value map-options label="客户需求" />
</div>
</div>
</div>
......@@ -244,8 +246,8 @@
<div class="info_item">
<div class="item_label">性别</div>
<div class="item_value">
<q-radio v-model="customObj.StuSex" :val="0" label="男" :disable="noEdit"/>
<q-radio v-model="customObj.StuSex" :val="1" label="女" :disable="noEdit"/>
<q-radio v-model="customObj.StuSex" :val="0" label="男" :disable="noEdit" />
<q-radio v-model="customObj.StuSex" :val="1" label="女" :disable="noEdit" />
</div>
</div>
<div class="info_item studentDate">
......@@ -253,8 +255,8 @@
<div class="item_value">
<q-field filled dense>
 <template v-slot:control>
<el-date-picker v-model="customObj.StuBirth" size="mini" style="width:150px" type="date" :disabled="noEdit"
placeholder="选择日期">
<el-date-picker v-model="customObj.StuBirth" size="mini" style="width:150px" type="date"
:disabled="noEdit" placeholder="选择日期">
</el-date-picker>
</template>
</q-field>
......@@ -264,8 +266,8 @@
<div class="info_item">
<div class="item_label">日语基础</div>
<div class="item_value">
<q-select filled v-model="customObj.JapanBaseInfo" dense :options="basicList" option-label="Name" :disable="noEdit"
option-value="Id" emit-value map-options />
<q-select filled v-model="customObj.JapanBaseInfo" dense :options="basicList" option-label="Name"
:disable="noEdit" option-value="Id" emit-value map-options />
</div>
</div>
<div class="info_item">
......@@ -277,15 +279,15 @@
<div class="info_item">
<div class="item_label">学历</div>
<div class="item_value">
<q-select filled v-model="customObj.StuEducation" dense :options="educationList" option-label="Name" :disable="noEdit"
option-value="Id" emit-value map-options />
<q-select filled v-model="customObj.StuEducation" dense :options="educationList" option-label="Name"
:disable="noEdit" option-value="Id" emit-value map-options />
</div>
</div>
<div class="info_item">
<div class="item_label">学习目的</div>
<div class="item_value">
<q-select filled v-model="customObj.StuPurpose" dense :options="goalsList" option-label="Name" :disable="noEdit"
option-value="Id" emit-value map-options />
<q-select filled v-model="customObj.StuPurpose" dense :options="goalsList" option-label="Name"
:disable="noEdit" option-value="Id" emit-value map-options />
</div>
</div>
<!-- <div class="info_item">
......@@ -323,6 +325,10 @@
import {
queryEmployee
} from '../../../api/users/user'
import {
queryStuOrderPage, //学员订单分页列表
} from '../../../api/customerstudent/customerstudent';
export default {
meta: {
title: "学员管理"
......@@ -342,6 +348,10 @@
AddType: {
type: Number,
default: null
},
BelongType: {
type: Number,
default: null
}
},
data() {
......@@ -399,7 +409,8 @@
WeChatNo: ''
},
NeedData: [],
noEdit:false,
noEdit: false,
isHaveOrder: false
}
},
created() {
......@@ -414,15 +425,19 @@
this.GetCustomerList();
this.getCustomTypeList();
this.getStudentDorpDown();
this.getGetNeedsList();
this.getGetNeedsList();
this.getStuOrderPage();
if (this.saveObj && this.saveObj.StuId > 0) {
this.customMsg.StuId = this.saveObj.StuId;
this.checkMsg.StuId = this.saveObj.StuId;
if(this.saveObj.noEdit && this.saveObj.noEdit== true){
this.noEdit= true
if (this.saveObj.noEdit && this.saveObj.noEdit == true) {
this.noEdit = true
}
}
if (this.BelongType == 3) {
this.noEdit = true
}
},
watch: {
stuData() {
......@@ -713,6 +728,9 @@
this.customObj.QQ = tempDate.QQ;
this.customObj.WeChatNo = tempDate.WeChatNo;
this.customObj.StuNeeds = tempDate.StuNeeds;
if(this.customObj.StuId>0){
this.isHaveOrder=true
}
},
//新增协助人员
addAssist() {
......@@ -762,6 +780,26 @@
this.customObj.StuSourceId = '';
this.customObj.PlatformName = '';
},
getStuOrderPage() {
let customMsg = {
pageIndex: 1,
pageSize: 10,
StuId: 0
}
if(this.saveObj){
customMsg.StuId = this.saveObj.StuId;
}
queryStuOrderPage(customMsg).then(res => {
if (res.Code == 1) {
if(res.Data.PageData.length>0){
this.isHaveOrder = true;
}else{
this.isHaveOrder = false;
}
}
});
},
}
}
......
......@@ -30,7 +30,7 @@
</div>
<div class="custom_Bottom">
<div class="detail-info">
<student-left :stuData="stuData" :save-obj="saveObj" @success="refreshStudentPage" @getrecord="getrecord" @update="queryStuInfo"></student-left>
<student-left :stuData="stuData" :save-obj="saveObj" :BelongType="BelongType" @success="refreshStudentPage" @getrecord="getrecord" @update="queryStuInfo"></student-left>
</div>
<div class="detail-travel">
<div class="detail_first">
......@@ -131,6 +131,10 @@
isJudgeTrans: {
type: Number,
default: null
},
BelongType: {
type: Number,
default: null
}
},
data() {
......
......@@ -100,7 +100,7 @@
</q-table>
<student-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</student-form>
<studentRight-form v-if="isShowStuRight" :isJudgeTrans="isJudgeTrans" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
<studentRight-form v-if="isShowStuRight" :isJudgeTrans="isJudgeTrans" :BelongType="BelongType" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</studentRight-form>
<studentAdd-form v-if="isShowAdd" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</studentAdd-form>
......@@ -122,6 +122,10 @@
isJudgeTrans:{
type: Number,
default: null
},
BelongType:{
type: Number,
default: null
}
},
components: {
......
......@@ -15,7 +15,7 @@
<q-input @input="resetSearch" dense clearable filled v-model="msg.WechatNo" label="微信号" maxlength="20" />
</div>
<div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.StuType" dense :options="customTypeList" option-label="Name"
<q-select @input="resetSearch" filled v-model="msg.StuType" dense clearable :options="customTypeList" option-label="Name"
option-value="Id" emit-value map-options label="客户类型" />
</div>
<div class="col-3">
......@@ -47,10 +47,14 @@
</template>
</q-field>
</div>
<div class="col-3" v-if="msg.BelongType==4">
<q-select @input="resetSearch" dense clearable @filter="filterSubord" use-input filled option-value="Id" option-label="EmployeeName"
v-model="msg.CreateIds" :options="SubordList" emit-value map-options label="我下属的" />
</div>
</div>
</div>
<div class="page-content">
<stulist :dataList="data" @success="refreshPage" ref="stuList" :isJudgeTrans="isJudgeTrans"> </stulist>
<stulist :dataList="data" @success="refreshPage" ref="stuList" :BelongType="msg.BelongType" :isJudgeTrans="isJudgeTrans"> </stulist>
<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"
color="primary" :input="true">
......@@ -66,7 +70,8 @@
deleteStudent,
createStudentAccount,
queryStuStageList,
GetStudentTypeList
GetStudentTypeList,
GetPersonalDimension
} from "../../api/school/index";
import {
queryEmployee
......@@ -107,7 +112,8 @@
BelongType: 1, //归属类型
QQ:'',
WechatNo:'',
StuType:''
StuType:'',
CreateIds:''
},
dateArray: [], //日期数组
pageCount: 0,
......@@ -129,14 +135,21 @@
Id: 3,
Name: "我协同的"
},
{
Id: 4,
Name: "我下属的"
}
],
isJudgeTrans:1 //用于判断转交是否有条件
isJudgeTrans:1, //用于判断转交是否有条件
SubordList:[], //我的下属数据
AllSubordList:[]
};
},
created() {
this.getSchool();
this.getStuStageList();
this.getCustomTypeList();
this.GetSubordList();
},
mounted() {
this.currentUrl = this.$route.path;
......@@ -144,6 +157,24 @@
this.getCustomerList();
},
methods: {
//获取我下属的下拉数据
GetSubordList(){
GetPersonalDimension().then(res => {
console.log(res,'数据');
if(res.Code==1){
this.SubordList = res.Data;
this.AllSubordList = res.Data;
}
});
},
//筛选转介人
filterSubord(val, update, abort) {
update(() => {
this.SubordList = this.AllSubordList.filter(
v => v.EmployeeName.indexOf(val) > -1
);
});
},
//获取客户阶段列表
getStuStageList() {
queryStuStageList().then(res => {
......
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