|
|
|
@ -114,7 +114,11 @@ export default { |
|
|
|
// 查所有单位 |
|
|
|
getCustomerOrgAll() { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
getapi("/api/app/customerorg/getbycodeall") |
|
|
|
let url = '/api/app/CustomerOrg/GetSimpleByCodeAll' |
|
|
|
if(this.LocalConfig.patientRegister.dispCustomerOrgCode == 'Y'){ |
|
|
|
url = "/api/app/customerorg/getbycodeall" |
|
|
|
} |
|
|
|
getapi(url) |
|
|
|
.then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
let treeData = reMadeOrgTree(deepCopy(res.data), this.LocalConfig.patientRegister.dispCustomerOrgCode); |
|
|
|
@ -137,8 +141,11 @@ export default { |
|
|
|
getCustomerOrgChild(parentId) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
console.log('new Date()3', now()) |
|
|
|
|
|
|
|
postapi('/api/app/CustomerOrg/GetCustomerOrgByParentId', { parentId }) |
|
|
|
let url = '/api/app/CustomerOrg/GetCustomerOrgSimpleByParentId' |
|
|
|
if(this.LocalConfig.patientRegister.dispCustomerOrgCode == 'Y'){ |
|
|
|
url = '/api/app/CustomerOrg/GetCustomerOrgByParentId' |
|
|
|
} |
|
|
|
postapi(url, { parentId }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
console.log('new Date()4', now()) |
|
|
|
|