Commit 6b51e6a6 authored by Mac's avatar Mac

1

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