Browse Source

doctor

master
pengjun 1 year ago
parent
commit
e0299668fb
  1. 30
      src/components/patientRegister/customerOrgTreeAll.vue
  2. 29
      src/views/doctorCheck/doctorCheck.vue

30
src/components/patientRegister/customerOrgTreeAll.vue

@ -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){

29
src/views/doctorCheck/doctorCheck.vue

@ -25,8 +25,9 @@
<el-tabs v-model="activeName" tab-position="bottom" style="width: 200px;">
<el-tab-pane label="组合项目" name="asbitem">
<RegisterCheckList />
</el-tab-pane>
<el-tab-pane :label="LocalConfig.doctorCheck.isQueue == 'Y' ? '叫号':''" name="call" :disabled="LocalConfig.doctorCheck.isQueue != 'Y'">
</el-tab-pane>
<el-tab-pane :label="LocalConfig.doctorCheck.isQueue == 'Y' ? '叫号' : ''" name="call"
:disabled="LocalConfig.doctorCheck.isQueue != 'Y'">
<QueueCheckList />
</el-tab-pane>
</el-tabs>
@ -141,7 +142,7 @@ export default {
}
console.log('this.LocalConfig',this.LocalConfig)
console.log('this.LocalConfig', this.LocalConfig)
},
//
@ -283,12 +284,22 @@ export default {
});
//
getapi("/api/app/customerorg/getbycodeall").then((res) => {
//customerOrgTree = res.data;
console.log("res.data", res.data);
this.patientRegister.customerOrgTreeAll = res.data;
tcdate(this.patientRegister.customerOrgTreeAll)
});
// getapi("/api/app/customerorg/getbycodeall").then((res) => {
// //customerOrgTree = res.data;
// console.log("res.data", res.data);
// this.patientRegister.customerOrgTreeAll = res.data;
// tcdate(this.patientRegister.customerOrgTreeAll)
// });
postapi('/api/app/CustomerOrg/GetCustomerOrgByParentId', { parentId: null })
.then(res => {
if (res.code > -1) {
res.data.forEach(e => {
e.isLeaf = e.isChild == 'Y' ? false : true
});
this.patientRegister.customerOrgTreeAll = res.data;
tcdate(this.patientRegister.customerOrgTreeAll)
}
})
console.log("dict", this.dict);

Loading…
Cancel
Save