Commit e6fdab85 authored by Mac's avatar Mac

修改再国内规则里如果是自定义的话飞猪可以多选

parent 8bfc1337
......@@ -144,7 +144,7 @@
:value="item.Id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="人员选择:" v-if=" addMsg.Type==3">
<el-form-item label="人员选择:" v-if=" addMsg.Type==3" :prop="'TempTypeList.'+ y +'.Id'" :rules="productGroupRules2.Id">
<el-select
v-model="x.Id"
filterable
......@@ -209,8 +209,9 @@
</div>
</div>
<el-button v-if="TeamListArr.length>addMsg.TempTypeList.length" size="mini" type="primary"
<el-button v-if="TeamListArr.length>addMsg.TempTypeList.length || addMsg.Type==3" size="mini" type="primary"
class="el-icon-circle-plus-outline" circle @click="addTempTypeList"></el-button>
</el-form-item>
</el-form>
......@@ -285,6 +286,13 @@
}],
},
productGroupRules2:{
Id: [{
required: true,
message: '请选择人员',
trigger: 'change'
}],
},
productGroupRules: {
Id: [{
......@@ -292,6 +300,7 @@
message: '请选择团队类型',
trigger: 'change'
}],
Money: [{
required: true,
message: '不能为空',
......@@ -397,7 +406,9 @@
this.searchList.push({empId:x.Id,name:x.Name,postName:''})
}
})
this.isshowfeizhu()
if(this.addMsg.Type!=3){
this.isshowfeizhu()//检测是否有飞猪 如果有就不能选择第二个
}
this.selectdis()
this.ruleVisible = true;
......@@ -448,7 +459,7 @@
let isdisabled = false
for(let i = 0;i<this.addMsg.TempTypeList.length;i++){
let x = this.addMsg.TempTypeList[i]
if(x.SourceType==2){
if(x.SourceType==2 && this.addMsg.Type!=3){
isdisabled=true
break
}
......@@ -517,7 +528,10 @@
this.addMsg.TempTypeList[index].Id=''
this.addMsg.TempTypeList[index].Name=''
}
this.isshowfeizhu()//检测是否有飞猪 如果有就不能选择第二个
if(this.addMsg.Type!=3){
this.isshowfeizhu()//检测是否有飞猪 如果有就不能选择第二个
}
this.selectdis()
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