diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue
index 1ee9e8d..840167c 100644
--- a/src/components/patientRegister/PatientRegisterEdit.vue
+++ b/src/components/patientRegister/PatientRegisterEdit.vue
@@ -596,8 +596,8 @@
:append-to-body="true">
@@ -1117,6 +1117,21 @@ export default {
}
},
+ changeChooseOrgId(v){
+ let parentId = null
+ if(v){
+ parentId = v[v.length - 1]
+ // 已经查询过或无叶子节点的无需再查询
+ let lfind = arrayExistObj(this.patientRegister.customerOrgs,'parentId',parentId)
+ if(lfind > -1) return
+ lfind = arrayExistObj(this.patientRegister.customerOrgs,'id',parentId)
+ if(lfind > -1 && this.patientRegister.customerOrgs[lfind].isChild == 'N') return
+ }else{
+ return
+ }
+
+ this.getCustomerOrgChild(parentId)
+ },
getCustomerOrgChild(parentId) {
return new Promise((resolve, reject) => {