Browse Source

group

master
pengjun 2 years ago
parent
commit
14782c52f7
  1. 14
      src/components/customerOrg/customerOrgGroupAsbitem.vue
  2. 4
      src/views/customerOrg/customerOrgGroup.vue

14
src/components/customerOrg/customerOrgGroupAsbitem.vue

@ -472,8 +472,7 @@ export default {
arrayReduce(asbItemChoosed, this.customerOrgGroupAsbitems, "id=asbitemId")
for (let i = asbItemChoosed.length - 1; i > - 1; i--) {
if (this.customerOrgGroup.forSexId == 'A') break //
console.log(`asbItemChoosed[${i}]`,asbItemChoosed[i])
if (this.customerOrgGroup.forSexId == 'A') break //
if (asbItemChoosed[i].forSexId == 'A' || asbItemChoosed[i].forSexId == 'U') continue
if (asbItemChoosed[i].forSexId != this.customerOrgGroup.forSexId) {
message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`)
@ -746,19 +745,24 @@ export default {
//
btnCopyGroup(){
if(!this.customerOrgGroup.id || this.customerOrgGroup.customerOrgId){
if(!this.customerOrgGroup.id || !this.customerOrgGroup.customerOrgId){
this.$message.warning("请先选中单位分组")
return
}
getapi(
`/api/app/customerorggroup/getlistinfilter?CustomerOrgId=${this.customerOrgGroup.customerOrgId}`
`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${this.customerOrgGroup.customerOrgRegisterId}`
).then((res) => {
if (res.code != -1) {
this.customerOrgGroups = res.data.items;
if(this.customerOrgGroups.length <2){
this.$message.warning("暂无其他分组可供复制")
}else{
this.groupVisble = true
}
}
});
this.groupVisble = true
},
//

4
src/views/customerOrg/customerOrgGroup.vue

@ -436,6 +436,8 @@ export default {
//
getCustomerOrgGroup(customerOrgRegisterId) {
this.isDrag = false
objCopy(this.formInit,this.form)
this.form.customerOrgRegisterId = customerOrgRegisterId
this.customerOrgGroups = [];
getapi(
`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}`
@ -444,7 +446,6 @@ export default {
this.customerOrgGroups = res.data.items;
this.customerOrgGroups.forEach((e) => {
e.customerOrgRegisterId = customerOrgRegisterId;
e.customerOrgId = this.customerOrgId;
});
}
});
@ -568,6 +569,7 @@ export default {
let body = deepCopy(this.form);
delete body.id;
delete body.customerOrgId;
if (this.form.id) {
//

Loading…
Cancel
Save