Commit 6b51e6a6 authored by Mac's avatar Mac

1

parent 735922c4
......@@ -298,6 +298,20 @@ export default {
this.addMsg.CourseList = this.getId(this.selectData.CourseList,2)
this.addMsg.EmpList = this.getId(this.selectData.EmpList,3)
this.addMsg.ChildEmpList = this.getId(this.selectData.ChildEmpList,3)
if(this.addMsg.EmpList.length== this.employeeList.length){
this.personnel=true
}else{
this.personnel=false
}
if(this.addMsg.ChildEmpList.length== this.employeeList.length){
this.branch=true
}else{
this.branch=false
}
}
},
mounted() {
......@@ -356,7 +370,6 @@ export default {
if (!this.$refs.Name.hasError && !this.$refs.CourseRate.hasError && !this.$refs.FirstRate.hasError) {
console.log(this.addMsg)
let msg = JSON.parse(JSON.stringify(this.addMsg))
if (this.addMsg.SchoolIds && this.addMsg.SchoolIds.length == 0) {
this.$q.notify({
......@@ -382,7 +395,6 @@ export default {
msg.ChildEmpList = this.getList(this.employeeList,this.addMsg.ChildEmpList,3,)//部门人员
for(let i=0;i<msg.RateList.length;i++){
let x = msg.RateList[i]
console.log(x.StartValue)
if(x.StartValue==='' ){
this.$q.notify({
type: 'negative',
......@@ -408,7 +420,6 @@ export default {
return
}
}
console.log(msg,'222222')
this.$emit('success',msg)
}
},
......@@ -453,7 +464,7 @@ export default {
}else{//部门人员全选
if(this.branch== true){
this.addMsg.ChildEmpList = []
this.myEmployeeList.forEach(x=>{
this.employeeList.forEach(x=>{
this.addMsg.ChildEmpList.push(x.Id)
})
}else{
......@@ -464,13 +475,13 @@ export default {
},
getpersonnel(type){
if(type==1){//人员全选
if(this.addMsg.EmpList.length== this.myEmployeeList.length){
if(this.addMsg.EmpList.length== this.employeeList.length){
this.personnel=true
}else{
this.personnel=false
}
}else{//部门人员全选
if(this.addMsg.ChildEmpList.length== this.myEmployeeList.length){
if(this.addMsg.ChildEmpList.length== this.employeeList.length){
this.branch=true
}else{
this.branch=false
......
......@@ -49,7 +49,7 @@
</div>
<template>
<div class="cycle_Title">
市场顾问提成规则
业绩提成规则
<q-btn color="accent" size="sm" icon="add" label="新增规则" @click="AddMsg()" />
</div>
<div
......
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