Sfoglia il codice sorgente

综合排班的科室绑定人员选择人员是单选

seimin 3 anni fa
parent
commit
4e617b6f63

+ 1 - 1
src/app/views/quick-combination/quick-combination.component.html

@@ -212,7 +212,7 @@
212 212
           <nz-form-item>
213 213
             <nz-form-label [nzSm]="24" [nzXs]="24" nzRequired nzFor="quickCombinationPerson">人员选择</nz-form-label>
214 214
             <nz-form-control [nzSm]="24" [nzXs]="24" nzErrorTip="请选择人员!">
215
-              <nz-select [nzMode]="'multiple'" [nzDropdownMatchSelectWidth]="false"
215
+              <nz-select [nzDropdownMatchSelectWidth]="false"
216 216
                 formControlName="quickCombinationPerson" nzShowSearch nzAllowClear nzPlaceHolder="请选择人员" nzServerSearch
217 217
                 (nzOnSearch)="searchPersonList($event)" (nzOpenChange)="getPersonList($event)">
218 218
                 <ng-container *ngFor="let data of personList">

+ 8 - 6
src/app/views/quick-combination/quick-combination.component.ts

@@ -659,6 +659,7 @@ export class QuickCombinationComponent implements OnInit {
659 659
       idx: 0,
660 660
       sum: 20,
661 661
       user: {
662
+        simpleQuery:true,
662 663
         usertype: { id: 106 },
663 664
         name: search,
664 665
         hospital: {
@@ -699,7 +700,7 @@ export class QuickCombinationComponent implements OnInit {
699 700
             });
700 701
             this.personList = [...arr, ...this.personList];
701 702
             this.validatePersonForm.controls.quickCombinationPerson.setValue(
702
-              arrIds
703
+              arrIds[0]
703 704
             ); //人员
704 705
           }
705 706
         }
@@ -1131,11 +1132,12 @@ export class QuickCombinationComponent implements OnInit {
1131 1132
     }
1132 1133
     let usersIds = [];
1133 1134
     if (this.validatePersonForm.value.quickCombinationPerson) {
1134
-      usersIds = this.validatePersonForm.value.quickCombinationPerson.map(
1135
-        (item) => {
1136
-          return { id: item };
1137
-        }
1138
-      );
1135
+      // usersIds = this.validatePersonForm.value.quickCombinationPerson.map(
1136
+      //   (item) => {
1137
+      //     return { id: item };
1138
+      //   }
1139
+      // );
1140
+      usersIds.push({ id: this.validatePersonForm.value.quickCombinationPerson });
1139 1141
     }
1140 1142
     let data = {
1141 1143
       workAllocationQuickConfig: {