Browse Source

group

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

12
src/components/customerOrg/customerOrgGroupAsbitem.vue

@ -473,7 +473,6 @@ export default {
for (let i = asbItemChoosed.length - 1; i > - 1; i--) { for (let i = asbItemChoosed.length - 1; i > - 1; i--) {
if (this.customerOrgGroup.forSexId == 'A') break // if (this.customerOrgGroup.forSexId == 'A') break //
console.log(`asbItemChoosed[${i}]`,asbItemChoosed[i])
if (asbItemChoosed[i].forSexId == 'A' || asbItemChoosed[i].forSexId == 'U') continue if (asbItemChoosed[i].forSexId == 'A' || asbItemChoosed[i].forSexId == 'U') continue
if (asbItemChoosed[i].forSexId != this.customerOrgGroup.forSexId) { if (asbItemChoosed[i].forSexId != this.customerOrgGroup.forSexId) {
message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`) message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`)
@ -746,19 +745,24 @@ export default {
// //
btnCopyGroup(){ btnCopyGroup(){
if(!this.customerOrgGroup.id || this.customerOrgGroup.customerOrgId){
if(!this.customerOrgGroup.id || !this.customerOrgGroup.customerOrgId){
this.$message.warning("请先选中单位分组") this.$message.warning("请先选中单位分组")
return return
} }
getapi( getapi(
`/api/app/customerorggroup/getlistinfilter?CustomerOrgId=${this.customerOrgGroup.customerOrgId}`
`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${this.customerOrgGroup.customerOrgRegisterId}`
).then((res) => { ).then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.customerOrgGroups = res.data.items; 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) { getCustomerOrgGroup(customerOrgRegisterId) {
this.isDrag = false this.isDrag = false
objCopy(this.formInit,this.form)
this.form.customerOrgRegisterId = customerOrgRegisterId
this.customerOrgGroups = []; this.customerOrgGroups = [];
getapi( getapi(
`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}` `/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}`
@ -444,7 +446,6 @@ export default {
this.customerOrgGroups = res.data.items; this.customerOrgGroups = res.data.items;
this.customerOrgGroups.forEach((e) => { this.customerOrgGroups.forEach((e) => {
e.customerOrgRegisterId = customerOrgRegisterId; e.customerOrgRegisterId = customerOrgRegisterId;
e.customerOrgId = this.customerOrgId;
}); });
} }
}); });
@ -568,6 +569,7 @@ export default {
let body = deepCopy(this.form); let body = deepCopy(this.form);
delete body.id; delete body.id;
delete body.customerOrgId;
if (this.form.id) { if (this.form.id) {
// //

Loading…
Cancel
Save