Commit 254295ae authored by Mac's avatar Mac

修改样式

parent 3c694b04
......@@ -201,6 +201,13 @@
<q-table v-if="tabCheck == 'first'" hide-bottom :columns="visitColumns" :data="showTodayVist"
:loading="loadingObj.visitLoading" no-data-label="暂无相关数据" flat
class="sticky-right-column-table sticky-column-table" separator="none">
<template v-slot:body-cell-StuName="props">
<q-td :props="props">
<div class="text-blue cursor-pointer" @click="getStuRight(props.row)">
{{ props.value }}
</div>
</q-td>
</template>
<template v-slot:body-cell-Option="props">
<q-td :props="props">
<q-btn dense flat color="primary" v-if="props.row.IsVisit != 1"
......@@ -662,6 +669,7 @@
getStuRight(obj) {
if (obj) {
this.stuOption = obj;
this.stuOption.noEdit = true
} else {
this.stuOption = null;
}
......
......@@ -76,7 +76,7 @@
<span class="student_require">*</span>客户名称
</div>
<div class="stage_value">
<q-input filled v-model="customObj.StuName" style="width:185px;" ref="StuName" dense></q-input>
<q-input filled v-model="customObj.StuName" style="width:185px;" ref="StuName" dense :disable="noEdit"></q-input>
</div>
</div>
</div>
......@@ -86,7 +86,7 @@
客户电话
</div>
<div class="stage_value">
<q-input filled v-model="customObj.StuTel" style="width:185px;" @blur="CheckExistsStu(1)" ref="StuTel"
<q-input filled v-model="customObj.StuTel" style="width:185px;" @blur="CheckExistsStu(1)" ref="StuTel" :disable="noEdit"
dense>
</q-input>
</div>
......@@ -98,7 +98,7 @@
QQ
</div>
<div class="stage_value">
<q-input filled v-model="customObj.QQ" style="width:185px;" @blur="CheckExistsStu(2)"
<q-input filled v-model="customObj.QQ" style="width:185px;" @blur="CheckExistsStu(2)" :disable="noEdit"
@keyup.native="checkInteger(customObj,'QQ')" ref="QQ" dense></q-input>
</div>
</div>
......@@ -109,7 +109,7 @@
微信号
</div>
<div class="stage_value">
<q-input filled v-model="customObj.WeChatNo" @blur="CheckExistsStu(3)" style="width:185px;" ref="WeChatNo"
<q-input filled v-model="customObj.WeChatNo" @blur="CheckExistsStu(3)" style="width:185px;" ref="WeChatNo" :disable="noEdit"
dense></q-input>
</div>
</div>
......@@ -120,7 +120,7 @@
<span class="student_require">*</span>客户状态
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuStage" dense :options="customState" option-label="Name"
<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>
......@@ -132,8 +132,8 @@
<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" @input="resetStuSource()" dense :options="customFromList" option-label="Name"
<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>
......@@ -144,8 +144,8 @@
<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" use-input :options="myEmployeeList" option-label="EmployeeName"
<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 />
</div>
</div>
......@@ -156,8 +156,8 @@
<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" dense :options="MyTransListData" option-label="StuName" option-value="StuId"
<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 />
</div>
</div>
......@@ -168,8 +168,8 @@
<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" option-label="Name" option-value="Id" emit-value map-options use-input
<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>
......@@ -188,8 +188,8 @@
<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" @filter="filterFn" option-label="CustomerName" option-value="CustomerId"
<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>
......@@ -206,13 +206,13 @@
<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></q-input>
<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></q-input>
<q-input filled v-model="customObj.PlatformName" dense :disable="noEdit"></q-input>
</div>
</div>
</template>
......@@ -222,7 +222,7 @@
<span class="student_require">*</span>客户类型
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuType" style="width:185px" dense :options="customTypeList"
<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>
......@@ -233,7 +233,7 @@
客户需求
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuNeeds" style="width:185px" dense :options="NeedData"
<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>
......@@ -244,8 +244,8 @@
<div class="info_item">
<div class="item_label">性别</div>
<div class="item_value">
<q-radio v-model="customObj.StuSex" :val="0" label="男" />
<q-radio v-model="customObj.StuSex" :val="1" label="女" />
<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,7 +253,7 @@
<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"
<el-date-picker v-model="customObj.StuBirth" size="mini" style="width:150px" type="date" :disabled="noEdit"
placeholder="选择日期">
</el-date-picker>
</template>
......@@ -264,27 +264,27 @@
<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"
<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">
<div class="item_label">职业</div>
<div class="item_value">
<q-input filled v-model="customObj.StuProfession" dense></q-input>
<q-input filled v-model="customObj.StuProfession" dense :disable="noEdit"></q-input>
</div>
</div>
<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"
<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"
<q-select filled v-model="customObj.StuPurpose" dense :options="goalsList" option-label="Name" :disable="noEdit"
option-value="Id" emit-value map-options />
</div>
</div>
......@@ -295,7 +295,7 @@
:options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options />
</div>
</div> -->
<div class="info_item">
<div class="info_item" v-if="!noEdit">
<q-btn color="accent" class="q-mr-md" label="保存" @click="saveStu()" />
</div>
</div>
......@@ -398,10 +398,12 @@
QQ: '',
WeChatNo: ''
},
NeedData: []
NeedData: [],
noEdit:false,
}
},
created() {
this.getStuStageList();
this.getBasicList();
this.queryGuestEducationEnumList();
......@@ -412,13 +414,15 @@
this.GetCustomerList();
this.getCustomTypeList();
this.getStudentDorpDown();
this.getGetNeedsList();
this.getGetNeedsList();
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
}
}
},
watch: {
stuData() {
......@@ -611,7 +615,7 @@
//获取客户下拉数据
GetCustomerList() {
let msg = {
QCreateBy: 1
QCreateBy: 0
}
GetCustomerList(msg).then(res => {
if (res.Code == 1) {
......
......@@ -39,7 +39,7 @@
<q-tab name="2" label="操作" />
<q-tab name="3" label="订单" />
<q-tab name="4" label="合同" />
<q-tab name="5" label="协同人员" />
<q-tab v-if="!baseObj.noEdit" name="5" label="协同人员" />
</q-tabs>
<div class="operate_Content" style="flex:1;">
<div class="detail_Main">
......
......@@ -244,14 +244,14 @@
{
name: "B2CRatio",
required: true,
label: "直客优惠返佣比例",
label: "直客优惠比例",
align: "left",
field: (row) => row.B2CRatio
},
{
name: "B2CReNewRatio",
required: true,
label: "直客优惠续费返佣比例",
label: "直客优惠续费比例",
align: "left",
field: (row) => row.B2CReNewRatio
},
......@@ -305,10 +305,24 @@
field: (row) => row.InnerRecommendRatio
},
{
name: "InnerRecommendReNewRatio",
name: "B2CRbRatio",
required: true,
label: "内推续费返佣比例",
align: "left",
field: (row) => row.B2CRbRatio
},
{
name: "B2CRbRatioValue",
required: true,
label: "直客返佣",
align: "left",
field: (row) => row.B2CRbRatioValue
},
{
name: "InnerRecommendReNewRatio",
required: true,
label: "直客续费返佣",
align: "left",
field: (row) => row.InnerRecommendReNewRatio
},
......
......@@ -352,6 +352,93 @@
align: "left",
field: row => row.PreferentialList
},
// 12月15号新增参数
{
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: "InnerRecommendRatio",
required: true,
label: "内推返佣比例",
align: "left",
field: (row) => row.InnerRecommendRatio
},
{
name: "InnerRecommendReNewRatio",
required: true,
label: "内推续费返佣比例",
align: "left",
field: (row) => row.InnerRecommendReNewRatio
},
{
name: "B2CRbRatio",
required: true,
label: "直客返佣",
align: "left",
field: (row) => row.B2CRbRatio
},
{
name: "B2CRbRatioValue",
required: true,
label: "直客续费返佣",
align: "left",
field: (row) => row.B2CRbRatioValue
},
{
name: "TeacherList",
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