Browse Source

djseo

master
pengjun 2 years ago
parent
commit
6ee10988f9
  1. 12
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 8
      src/views/customerOrg/customerOrgGroup.vue

12
src/components/patientRegister/PatientRegisterEdit.vue

@ -1013,7 +1013,7 @@ export default {
//
async changeCustomerOrgId(v) {
console.log('changeCustomerOrgId',v)
console.log('changeCustomerOrgId',v,this.form.customerOrgParentId)
let customerOrgId = ""
if (Array.isArray(v) && v.length > 0) {
customerOrgId = v[v.length - 1]
@ -1021,12 +1021,20 @@ export default {
} else {
customerOrgId = v // ID
let pids = getTreePids(this.patientRegister.customerOrgTreeAll,"treeChildren","parentId","id",customerOrgId)
if(Array.isArray(pids) && pids.length > 0) this.form.customerOrgParentId = pids[1]
if(Array.isArray(pids) && pids.length > 0){
if(pids.length == 1){
this.form.customerOrgParentId = customerOrgId
}else{
this.form.customerOrgParentId = pids[1]
}
}
}
this.preCustomerOrgId = customerOrgId
// let customerOrgParentId = await this.getParentCustomerOrgId(customerOrgId)
let customerOrgParentId = this.form.customerOrgParentId
if (customerOrgParentId) {
if (customerOrgParentId == this.dict.personOrgId) {
this.form.customerOrgRegisterId = "00000000-0000-0000-0000-000000000001"

8
src/views/customerOrg/customerOrgGroup.vue

@ -201,7 +201,15 @@ export default {
//
btnCopyPreGroup(){
if (!this.customerOrgRegister.id) {
this.$message.warning("请选择体检次数");
return;
}
this.$message.warning({showClose:true,message:'开发中……'})
//
this.getCustomerOrgGroup(this.customerOrgRegister.id);
},
//

Loading…
Cancel
Save