From fbf55c6bb9d7a996b51fe84cbf9084119548a5a1 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Mon, 5 Aug 2024 18:06:09 +0800 Subject: [PATCH] seo dj --- .../patientRegister/PatientRegisterEdit.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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) => {