瀏覽代碼

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

seimin 1 年之前
父節點
當前提交
2e09144a8e

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

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