Ver código fonte

被服洗涤送回页面控制”增加,“送回自主发起科室范围”

seimin 1 ano atrás
pai
commit
2e09144a8e

+ 12 - 0
src/app/views/quilt-washing-send-page-control/quilt-washing-send-page-control.component.html

@@ -36,6 +36,18 @@
36 36
             </nz-option>
37 37
           </nz-select>
38 38
         </div>
39
+        <!-- 送回自主发起科室范围 -->
40
+        <div class="display_flex align-items_center mb8">
41
+          <nz-form-label class="label">送回自主发起科室范围</nz-form-label>
42
+          <nz-select nzMode="multiple" class="w320px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择" (nzOnSearch)="changeDept($event)" [(ngModel)]="clothingBackDeptIds">
43
+            <ng-container *ngFor="let data of clothingDepts">
44
+              <nz-option *ngIf="!isLoading" [nzLabel]="data.dept" nzValue="{{data.id}}"></nz-option>
45
+            </ng-container>
46
+            <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
47
+              <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
48
+            </nz-option>
49
+          </nz-select>
50
+        </div>
39 51
         <!-- 批次号生成规则 -->
40 52
         <!-- <div class="display_flex align-items_center mb8">
41 53
           <nz-form-label class="label" nzRequired>批次号生成规则</nz-form-label>

+ 4 - 0
src/app/views/quilt-washing-send-page-control/quilt-washing-send-page-control.component.ts

@@ -16,6 +16,8 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
16 16
   tabModalName:string = 'characteristics'; //当前选中的tab
17 17
   hosId = this.tool.getCurrentHospital().id; //当前院区
18 18
 
19
+  // 送回自主发起科室范围
20
+  clothingBackDeptIds:any = [];
19 21
   // 积分计算方式
20 22
   clothingDept:any = null;
21 23
   // 批次号生成规则
@@ -144,6 +146,7 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
144 146
       clothingSendTypeId: this.clothingSendTypeId,
145 147
       hosId: this.hosId,
146 148
       clothingDept: this.clothingDept,
149
+      clothingBackDeptIds: this.clothingBackDeptIds.toString(),
147 150
       // batchNoRule: { id: this.batchNoRule },
148 151
     };
149 152
     this.btnLoading = true;
@@ -184,6 +187,7 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
184 187
           this.clothingDept = this.configs.clothingDept;
185 188
           // this.batchNoRule = this.configs.batchNoRule ? this.configs.batchNoRule.id : null;
186 189
           this.clothingSendTypeId = this.configs.clothingSendTypeId || null;
190
+          this.clothingBackDeptIds = this.configs.clothingBackDeptIds ? this.configs.clothingBackDeptIds.split(',') : [];
187 191
         }
188 192
       });
189 193
   }