Commit 21fcee80 authored by Mac's avatar Mac

1

parent 6889e3e4
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
<el-radio v-model="addMsg.Type" label="1">销售</el-radio> <el-radio v-model="addMsg.Type" label="1">销售</el-radio>
<el-radio v-model="addMsg.Type" label="2" style="margin-right: 20px;">OP</el-radio> <el-radio v-model="addMsg.Type" label="2" style="margin-right: 20px;">OP</el-radio>
<el-radio v-model="addMsg.Type" label="3" style="margin-right: 20px;">自定义人员</el-radio> <el-radio v-model="addMsg.Type" label="3" style="margin-right: 20px;">自定义人员</el-radio>
<span style="font-size: 12px;color:red">(*注:自定义人员将会跟随 OP规则设置的团队类型匹配)</span>
</el-form-item> </el-form-item>
<el-form-item label="提成比例表"> <el-form-item label="提成比例表">
...@@ -143,7 +144,7 @@ ...@@ -143,7 +144,7 @@
:value="item.Id"></el-option> :value="item.Id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="人员选择:" v-if="x.SourceType==1 && addMsg.Type==3"> <el-form-item label="人员选择:" v-if=" addMsg.Type==3">
<el-select <el-select
v-model="x.Id" v-model="x.Id"
filterable filterable
...@@ -396,6 +397,7 @@ ...@@ -396,6 +397,7 @@
this.searchList.push({empId:x.Id,name:x.Name,postName:''}) this.searchList.push({empId:x.Id,name:x.Name,postName:''})
} }
}) })
this.isshowfeizhu()
this.selectdis() this.selectdis()
this.ruleVisible = true; this.ruleVisible = true;
...@@ -485,11 +487,7 @@ ...@@ -485,11 +487,7 @@
} }
}); });
}, },
getSType(index){//选了飞猪之后 后面的不能选飞猪了 isshowfeizhu(){
if(this.addMsg.TempTypeList[index].SourceType==1){
this.addMsg.TempTypeList[index].Id=''
this.addMsg.TempTypeList[index].Name=''
}
let isfeizhu = false let isfeizhu = false
for(let i = 0;i<this.addMsg.TempTypeList.length;i++){ for(let i = 0;i<this.addMsg.TempTypeList.length;i++){
let x = this.addMsg.TempTypeList[i] let x = this.addMsg.TempTypeList[i]
...@@ -501,8 +499,11 @@ ...@@ -501,8 +499,11 @@
if(isfeizhu==true){ if(isfeizhu==true){
if(x.SourceType==2){ if(x.SourceType==2){
x.STdisabled = false; x.STdisabled = false;
x.Id=0; if(this.addMsg.Type!=3){
x.Name='飞猪' x.Id=0;
x.Name='飞猪'
}
}else{ }else{
x.STdisabled = true x.STdisabled = true
} }
...@@ -510,6 +511,13 @@ ...@@ -510,6 +511,13 @@
x.STdisabled = false x.STdisabled = false
} }
}) })
},
getSType(index){//选了飞猪之后 后面的不能选飞猪了
if(this.addMsg.TempTypeList[index].SourceType==1 && this.addMsg.Type!=3){
this.addMsg.TempTypeList[index].Id=''
this.addMsg.TempTypeList[index].Name=''
}
this.isshowfeizhu()//检测是否有飞猪 如果有就不能选择第二个
this.selectdis() this.selectdis()
this.$forceUpdate(); this.$forceUpdate();
}, },
......
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