Browse Source

Merge branch 'lmm' into develop

seimin 3 years ago
parent
commit
299c30dc86
1 changed files with 5 additions and 10 deletions
  1. 5 10
      src/app/views/quick-combination/quick-combination.component.ts

+ 5 - 10
src/app/views/quick-combination/quick-combination.component.ts

@@ -646,10 +646,7 @@ export class QuickCombinationComponent implements OnInit {
646
     if (!flag) {
646
     if (!flag) {
647
       return;
647
       return;
648
     }
648
     }
649
-    let hosIds = "";
650
-    if (this.userInfo.infoPermission.hospitals.length > 0) {
651
-      hosIds = this.userInfo.infoPermission.hospitals[0].id; //没考虑多院区,取第一个院区
652
-    }
649
+    let hosIds = this.currentHospital.id;
653
     let postData = {
650
     let postData = {
654
       idx: 0,
651
       idx: 0,
655
       sum: 20,
652
       sum: 20,
@@ -721,14 +718,12 @@ export class QuickCombinationComponent implements OnInit {
721
       sum: this.pageSize,
718
       sum: this.pageSize,
722
     };
719
     };
723
     if (this.searchCriteria.name) {
720
     if (this.searchCriteria.name) {
724
-      data["workAllocationQuickConfig"][
725
-        "configName"
726
-      ] = this.searchCriteria.name;
721
+      data["workAllocationQuickConfig"]["configName"] =
722
+        this.searchCriteria.name;
727
     }
723
     }
728
     if (this.searchCriteria.workModel) {
724
     if (this.searchCriteria.workModel) {
729
-      data["workAllocationQuickConfig"][
730
-        "ruleType"
731
-      ] = this.searchCriteria.workModel;
725
+      data["workAllocationQuickConfig"]["ruleType"] =
726
+        this.searchCriteria.workModel;
732
     }
727
     }
733
     this.loading1 = true;
728
     this.loading1 = true;
734
     this.mainService
729
     this.mainService