Commit ae747108 authored by zhengke's avatar zhengke

修改

parent bdb56e73
......@@ -18,7 +18,7 @@
label="应收" />
<q-select standout="bg-primary text-white" option-value="Id" option-label="Name" v-model="OrderMsg.OrderSource"
:options="SourceEnumList" emit-value map-options class="col-6 q-py-sm" label="客人来源" />
<q-select v-model="OrderMsg.HelpEnterId" :options="EmployeeList" filled use-input label="协助老师"
<q-select v-model="OrderMsg.HelpEnterId" :disable="HelpEnterDisable" :options="EmployeeList" filled use-input label="协助老师"
option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6 q-py-sm" emit-value map-options
@filter="filterFn">
<template v-slot:no-option>
......@@ -29,7 +29,7 @@
</q-item>
</template>
</q-select>
<q-select v-model="OrderMsg.CourseConsultantId" :options="EmployeeList2" filled use-input label="课程顾问"
<q-select v-model="OrderMsg.CourseConsultantId" :disable="CourseConsultantDisable" :options="EmployeeList2" filled use-input label="课程顾问"
option-label="EmployeeName" option-value="Id" ref="EmployeeName2" class="col-6 q-py-sm" emit-value map-options
@filter="filterFn2">
<template v-slot:no-option>
......@@ -124,7 +124,9 @@
EnterId: 0, //市场人员
StuIds:''
},
EnterName:''
EnterName:'',
HelpEnterDisable:false,
CourseConsultantDisable:false
};
},
created() {
......@@ -139,6 +141,18 @@
this.OrderMsg.EnterId = this.select[0].CreateBy;
this.EnterName = this.select[0].CreateByName;
this.OrderMsg.StuIds = this.select[0].StuId;
if(this.select[0].AssistList&&this.select[0].AssistList.length>0){
this.select[0].AssistList.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;
}
});
}
}
this.getOrderSEList();
this.getEmployee(0);
......
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