|
|
|
@ -68,8 +68,7 @@ export default { |
|
|
|
|
|
|
|
//挂载组件完成 |
|
|
|
mounted() { |
|
|
|
//获取体检单位列表树信息 |
|
|
|
// this.getCustomerOrgTree(); |
|
|
|
//获取体检单位列表树信息 |
|
|
|
this.getCustomerOrgChild(null) |
|
|
|
.then(res => { |
|
|
|
this.customerOrgTreeAll = res |
|
|
|
@ -99,31 +98,7 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//获取体检单位列表树信息 |
|
|
|
getCustomerOrgTree() { |
|
|
|
getapi("/api/app/customerorg/getbycodeall").then((res) => { |
|
|
|
// console.log("res.data", res.data); |
|
|
|
if (res.code > -1) { |
|
|
|
this.patientRegister.customerOrgTreeAll = reMadeOrgTree(deepCopy(res.data), this.LocalConfig.patientRegister.dispCustomerOrgCode); |
|
|
|
this.customerOrgTreeAll = deepCopy(this.patientRegister.customerOrgTreeAll) |
|
|
|
// tcdate(this.patientRegister.customerOrgTreeAll) |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//获取体检单位父级ID api/app/customer-org/parent/[CustomerOrgld |
|
|
|
// getCustomerOrgParentId(customerOrgld) { |
|
|
|
// if (customerOrgld == this.dict.personOrgId) { |
|
|
|
// this.patientRegister.query.CustomerOrgParentId = this.dict.personOrgId; |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// getapi(`/api/app/customer-org/parent/${customerOrgld}`).then((res) => { |
|
|
|
// // console.log("res.data", res.data); |
|
|
|
// if (res.code == 1) { |
|
|
|
// this.patientRegister.query.CustomerOrgParentId = res.data; |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
|
|
|
|
loadNode(node, resolve) { |
|
|
|
// console.log('node', node) |
|
|
|
if (node && node.data && node.data.id) { |
|
|
|
@ -177,7 +152,6 @@ export default { |
|
|
|
// console.log('data,sortType',data,sortType) |
|
|
|
putapi(`/api/app/customerorg/updatemanysort?id=${data.id}&SortType=${sortType}`).then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
// this.getCustomerOrgTree() |
|
|
|
this.getCustomerOrgChild(data.parentId).then(res => { |
|
|
|
data.treeChildren = res |
|
|
|
if(data.parentId == null){ |
|
|
|
|