Commit fcba2775 authored by 罗超's avatar 罗超

1

parent 4de8ae05
......@@ -29,7 +29,7 @@
</style>
<template>
<div class="stuList">
<q-table :pagination="pageMsg" :loading="loading" no-data-label="暂无相关数据" flat selection="multiple"
<q-table :pagination="pageMsg" :loading="loading" no-data-label="暂无相关数据" flat selection="single"
:selected.sync="selection" class="sticky-right-column-table sticky-tow-column-table" separator="none"
:data="dataList" :columns="columns" row-key="StuId" hide-bottom>
<template v-slot:top>
......
......@@ -210,7 +210,7 @@
label="客人来源"
/>
<q-select
:disable="modityOrderType == 2 || OrderMsg.JoinType == 3"
:disable="(modityOrderType == 2 || OrderMsg.JoinType == 3)||HelpEnterDisable"
v-model="OrderMsg.HelpEnterId"
:options="EmployeeList"
filled
......@@ -233,7 +233,7 @@
</template>
</q-select>
<q-select
:disable="modityOrderType == 2 || OrderMsg.JoinType == 3"
:disable="(modityOrderType == 2 || OrderMsg.JoinType == 3)||CourseConsultantDisable"
v-model="OrderMsg.CourseConsultantId"
:options="EmployeeList"
filled
......@@ -293,6 +293,15 @@
label="少价金额(每人)"
:hint="'总少价金额:' + OrderMsg.PerLessMoney * OrderMsg.GuestNum"
/>
<q-input
disable
v-if="OrderMsg.EnterId >0"
filled
stack-label
v-model="EnterName"
class="col-6 q-py-sm"
label="市场人员"
/>
<q-input
filled
stack-label
......@@ -322,9 +331,10 @@ import {
queryChaClassInfo,
GetSelectClassOrderList, //获取前置下拉
} from "../../../../api/sale/sale";
import {
GetStudentAssistList,
} from '../../../../api/sale/sale'//获取协助人员
import { queryEmployee } from "../../../../api/users/user"; //获取员工
import { mapState } from "vuex";
export default {
props: {
saveObj: {
......@@ -384,9 +394,11 @@ export default {
CustomerId: 0, //同行
OrderIdentify: 2, //标识参数, 1产品下单 2客户转订单
StuIds: "",
EnterId:0,//市场人员
// NormalCommission:'',//正常返佣金额
// RenewCommission:"",// 预计返佣金额
},
EnterName:'',//市场人员
Unit_PriceRemark: "", //单价规则
IsShowUpPrice: false, //是否显示高于定价
UnitPrice: 0,
......@@ -396,6 +408,8 @@ export default {
CourseList: [], //课程列表
courseObj: {}, //选择的课程
beforeOrderList: [], //前置订单数据
HelpEnterDisable:false,//是否可选择协助教师
CourseConsultantDisable:false,//是否可选择课程顾问
};
},
created() {
......@@ -409,9 +423,30 @@ export default {
},
mounted() {
this.initData();
this.getAssistList();
this.OrderMsg.EnterId=this.stuData.EnterId
this.EnterName=this.stuData.EnterName
},
watch: {},
methods: {
//获取协助人员
getAssistList() {
const ids = this.stuData.StuList.map(e => e.StuId).toString();
GetStudentAssistList({StuId: ids}).then(res => {
if (res.Code == 1) {
console.log(422,res.Data)
res.Data.map(e=>{
if(e.AssistType==4){
this.OrderMsg.HelpEnterId=e.AssistId
this.HelpEnterDisable=true
}
if(e.AssistType==2){
this.OrderMsg.CourseConsultantId=e.AssistId
this.CourseConsultantDisable=true
}
})
}
})
},
//获取班级课程信息
initConfig() {
var qMsg = {
......@@ -438,7 +473,6 @@ export default {
},
//计算课程单价和应收金额
calcPrice() {
console.log("this.OrderMsg",this.OrderMsg)
var guestNum = 0;
if (this.OrderMsg.GuestNum && this.OrderMsg.GuestNum > 0) {
guestNum = Number(this.OrderMsg.GuestNum);
......@@ -675,7 +709,7 @@ export default {
//修改订单
saveOrderInfo() {
//插班验证课程和生效时间
console.log(783,this.OrderMsg)
console.log("OrderMsg",this.OrderMsg)
if (this.OrderMsg.IsChaBan == 1) {
this.$refs.CourseId.validate();
this.$refs.EffectTime.validate();
......
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