|
|
@ -596,8 +596,8 @@ |
|
|
:append-to-body="true"> |
|
|
:append-to-body="true"> |
|
|
<div style="height: 320px;"> |
|
|
<div style="height: 320px;"> |
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" |
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" |
|
|
filterable popper-class="example" :show-all-levels="false" |
|
|
|
|
|
:props="{ ...customerOrg.treeprops, lazyLoad: lazyLoad, lazy: true, leaf: 'isLeaf' }" |
|
|
|
|
|
|
|
|
filterable popper-class="example" :show-all-levels="false" @change="changeChooseOrgId" |
|
|
|
|
|
:props="{ checkStrictly: true, expandTrigger: 'click', ...customerOrg.treeprops, lazyLoad: lazyLoad, lazy: true, leaf: 'isLeaf' }" |
|
|
size="small"> |
|
|
size="small"> |
|
|
</el-cascader> |
|
|
</el-cascader> |
|
|
</div> |
|
|
</div> |
|
|
@ -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) { |
|
|
getCustomerOrgChild(parentId) { |
|
|
return new Promise((resolve, reject) => { |
|
|
return new Promise((resolve, reject) => { |
|
|
|