|
|
|
@ -556,7 +556,7 @@ export default { |
|
|
|
if (this.customerOrgGroup.forSexId == 'A' && this.customerOrgGroup.maritalStatusId == 'A') { |
|
|
|
break; |
|
|
|
} else { |
|
|
|
if (this.customerOrgGroup.forSexId != 'A'){ |
|
|
|
if (this.customerOrgGroup.forSexId != 'A') { |
|
|
|
if (!(asbItemChoosed[i].forSexId == 'A' || asbItemChoosed[i].forSexId == 'U')) { |
|
|
|
if (asbItemChoosed[i].forSexId != this.customerOrgGroup.forSexId) { |
|
|
|
message.push(asbItemChoosed[i].displayName) //.warning(`所选项目:${asbItemChoosed[i].displayName},不适合当前人员性别`) |
|
|
|
@ -566,11 +566,14 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
// 再判断婚姻 |
|
|
|
if (!(checked || asbItemChoosed[i].maritalStatusId == 'A' || asbItemChoosed[i].maritalStatusId == 'U')) { |
|
|
|
if (asbItemChoosed[i].maritalStatusId != this.customerOrgGroup.maritalStatusId) { |
|
|
|
message.push(asbItemChoosed[i].displayName) //.warning(`所选项目:${asbItemChoosed[i].displayName},不适合当前人员性别`) |
|
|
|
checked = false |
|
|
|
asbItemChoosed.splice(i, 1) |
|
|
|
if (checked) { |
|
|
|
console.log('maritalStatusId', asbItemChoosed[i].maritalStatusId, this.customerOrgGroup.maritalStatusId) |
|
|
|
if (!(asbItemChoosed[i].maritalStatusId == 'A' || asbItemChoosed[i].maritalStatusId == 'U')) { |
|
|
|
if (asbItemChoosed[i].maritalStatusId != this.customerOrgGroup.maritalStatusId) { |
|
|
|
message.push(asbItemChoosed[i].displayName) //.warning(`所选项目:${asbItemChoosed[i].displayName},不适合当前人员性别`) |
|
|
|
checked = false |
|
|
|
asbItemChoosed.splice(i, 1) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1065,7 +1068,7 @@ export default { |
|
|
|
// 快速复制/粘贴 分组项目 |
|
|
|
btnPastGroupAsbitem() { |
|
|
|
let lfind = -1, lfind2 = -1 |
|
|
|
|
|
|
|
let unPasteAble = [] |
|
|
|
this.dataTransOpts.copyGroupAsbitem.forEach(e => { |
|
|
|
lfind = arrayExistObj(this.customerOrgGroupAsbitems, 'asbitemId', e.asbitemId) |
|
|
|
if (lfind == -1) { |
|
|
|
@ -1077,29 +1080,37 @@ export default { |
|
|
|
this.customerOrgGroupAsbitems.push(pojo) |
|
|
|
} else { |
|
|
|
let pasteAble = true // 默认可复制 |
|
|
|
if (this.customerOrgGroup.forSexId != 'A'){ |
|
|
|
if (this.customerOrgGroup.forSexId != 'A') { |
|
|
|
if (!(this.dict.asbItemAll[lfind2].forSexId == 'A' || this.dict.asbItemAll[lfind2].forSexId == 'U')) { |
|
|
|
if (this.dict.asbItemAll[lfind2].forSexId != this.customerOrgGroup.forSexId) { |
|
|
|
this.$message.warning({showClose:true,message:`${this.dict.asbItemAll[lfind2].displayName} 不适合当前性别`}) |
|
|
|
unPasteAble.push(this.dict.asbItemAll[lfind2].displayName) |
|
|
|
pasteAble = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 再判断婚姻 |
|
|
|
if (!(checked || this.dict.asbItemAll[lfind2].maritalStatusId == 'A' || this.dict.asbItemAll[lfind2].maritalStatusId == 'U')) { |
|
|
|
if (this.dict.asbItemAll[lfind2].maritalStatusId != this.customerOrgGroup.maritalStatusId) { |
|
|
|
this.$message.warning({showClose:true,message:`${this.dict.asbItemAll[lfind2].displayName} 不适合当前婚姻状态`}) |
|
|
|
pasteAble = false |
|
|
|
if (pasteAble) { |
|
|
|
if (!(this.dict.asbItemAll[lfind2].maritalStatusId == 'A' || this.dict.asbItemAll[lfind2].maritalStatusId == 'U')) { |
|
|
|
if (this.dict.asbItemAll[lfind2].maritalStatusId != this.customerOrgGroup.maritalStatusId) { |
|
|
|
unPasteAble.push(this.dict.asbItemAll[lfind2].displayName) |
|
|
|
pasteAble = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(pasteAble) this.customerOrgGroupAsbitems.push(pojo) |
|
|
|
if (pasteAble) this.customerOrgGroupAsbitems.push(pojo) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
this.dataTransOpts.copyGroupAsbitem = [] |
|
|
|
this.refAsbItemByChoosed() |
|
|
|
this.$message.success({ showClose: true, message: '操作成功!' }) |
|
|
|
|
|
|
|
if(unPasteAble.length > 0){ |
|
|
|
this.$message.warning({ showClose: true, message: `操作成功! 部份项目不适合当前的性别或婚姻状况:${unPasteAble.toString()}`}) |
|
|
|
}else{ |
|
|
|
this.$message.success({ showClose: true, message: `操作成功!`}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 检查项目互斥 |
|
|
|
|