|
@@ -20,6 +20,8 @@ export class QuiltWashingGetPageControlComponent implements OnInit {
|
20
|
20
|
clothingDept:any = null;
|
21
|
21
|
// 批次号生成规则
|
22
|
22
|
batchNoRule:any = null;
|
|
23
|
+ // 特定科室无需填写回收数量
|
|
24
|
+ noFillInQuantityIds:any = [];
|
23
|
25
|
// 配置
|
24
|
26
|
configs:any = {};
|
25
|
27
|
searchTimerSubject = new Subject();
|
|
@@ -138,6 +140,11 @@ export class QuiltWashingGetPageControlComponent implements OnInit {
|
138
|
140
|
return;
|
139
|
141
|
}
|
140
|
142
|
|
|
143
|
+ if(!this.noFillInQuantityIds.length){
|
|
144
|
+ this.msg.create("warning", "请先配置特定科室无需填写回收数量!");
|
|
145
|
+ return;
|
|
146
|
+ }
|
|
147
|
+
|
141
|
148
|
let postData:any = {
|
142
|
149
|
id: this.configs.id,
|
143
|
150
|
taskType: this.clothingGetTypeId,
|
|
@@ -145,6 +152,7 @@ export class QuiltWashingGetPageControlComponent implements OnInit {
|
145
|
152
|
hosId: this.hosId,
|
146
|
153
|
clothingDept: this.clothingDept,
|
147
|
154
|
batchNoRule: { id: this.batchNoRule },
|
|
155
|
+ noFillInQuantityIds: this.noFillInQuantityIds.toString(),
|
148
|
156
|
};
|
149
|
157
|
this.btnLoading = true;
|
150
|
158
|
this.otherPageControlService
|
|
@@ -184,6 +192,7 @@ export class QuiltWashingGetPageControlComponent implements OnInit {
|
184
|
192
|
this.clothingDept = this.configs.clothingDept;
|
185
|
193
|
this.batchNoRule = this.configs.batchNoRule ? this.configs.batchNoRule.id : null;
|
186
|
194
|
this.clothingGetTypeId = this.configs.clothingGetTypeId || null;
|
|
195
|
+ this.noFillInQuantityIds = this.configs.noFillInQuantityIds ? this.configs.noFillInQuantityIds.split(',') : [];
|
187
|
196
|
}
|
188
|
197
|
});
|
189
|
198
|
}
|