Commit e5daa335 authored by 黄奎's avatar 黄奎

新增助理OP验证(不能包含主OP)

parent 1d4e93ad
......@@ -178,15 +178,24 @@
this.$message.error('请选择线路')
return;
}
if (this.postData.OPId <= 0 || this.postData.OPId == '') {
this.$message.error('请选择主OP')
return;
}
this.postData.AssistantId = "";
var flag = false;
if (this.postData.Assistantlist && this.postData.Assistantlist.length > 0) {
this.postData.AssistantId = this.postData.Assistantlist.join(',');
this.postData.Assistantlist.forEach(sItem => {
if (sItem == this.postData.OPId && !flag) {
flag = true;
}
if (this.postData.OPId <= 0 || this.postData.OPId == '') {
this.$message.error('请选择主OP')
});
}
if (flag) {
this.$message.error('助理OP不能包含主OP,请重新选择!');
return;
}
data.forEach(item => {
item.IsDefault = item.queryMsg.IsDefault ? 1 : 0;
item.otherPrice = item.OtherPrice;
......
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