|
@@ -154,6 +154,30 @@ export class FuwutaiComponent implements OnInit {
|
154
|
154
|
searchHosDepartmentSubject = new Subject();
|
155
|
155
|
searchHosDepartmentQtSubject = new Subject();
|
156
|
156
|
searchPatientListSubject = new Subject();
|
|
157
|
+ // 选中未派单列表-全选
|
|
158
|
+ changeAllUnassignedList(e) {
|
|
159
|
+ this.unassignedList.forEach((v) => (v.checked = e));
|
|
160
|
+ this.unassignedList.forEach((item1) => {
|
|
161
|
+ this.unassignedListClone.forEach((item2) => {
|
|
162
|
+ if (item1.id == item2.id) {
|
|
163
|
+ item2.checked = item1.checked;
|
|
164
|
+ }
|
|
165
|
+ });
|
|
166
|
+ });
|
|
167
|
+ this.batchType = this.unassignedListClone.some((item) => item.checked);
|
|
168
|
+ }
|
|
169
|
+ // 选中待到达列表-全选
|
|
170
|
+ changeAllArriveList(e) {
|
|
171
|
+ this.arriveList.forEach((v) => (v.checked = e));
|
|
172
|
+ this.arriveList.forEach((item1) => {
|
|
173
|
+ this.arriveListClone.forEach((item2) => {
|
|
174
|
+ if (item1.id == item2.id) {
|
|
175
|
+ item2.checked = item1.checked;
|
|
176
|
+ }
|
|
177
|
+ });
|
|
178
|
+ });
|
|
179
|
+ this.batchType1 = this.arriveListClone.some((item) => item.checked);
|
|
180
|
+ }
|
157
|
181
|
// 添加备注
|
158
|
182
|
addRemarks(item) {
|
159
|
183
|
this.remarksEle.nativeElement.focus();
|
|
@@ -198,6 +222,7 @@ export class FuwutaiComponent implements OnInit {
|
198
|
222
|
this.openRecallModal(ids.join("-"));
|
199
|
223
|
}
|
200
|
224
|
// 批量分派选中
|
|
225
|
+ allUnassignedList = false;
|
201
|
226
|
batchDispatchSelect(e, id) {
|
202
|
227
|
this.unassignedList.forEach((item) => {
|
203
|
228
|
if (item.id == id) {
|
|
@@ -212,8 +237,16 @@ export class FuwutaiComponent implements OnInit {
|
212
|
237
|
});
|
213
|
238
|
});
|
214
|
239
|
this.batchType = this.unassignedListClone.some((item) => item.checked);
|
|
240
|
+ if (this.unassignedListClone.length) {
|
|
241
|
+ this.allUnassignedList = this.unassignedListClone.every(
|
|
242
|
+ (item) => item.checked
|
|
243
|
+ );
|
|
244
|
+ } else {
|
|
245
|
+ this.allUnassignedList = false;
|
|
246
|
+ }
|
215
|
247
|
}
|
216
|
248
|
// 批量撤回选中
|
|
249
|
+ allArriveList = false;
|
217
|
250
|
batchWithdrawalSelect(e, id) {
|
218
|
251
|
this.arriveList.forEach((item) => {
|
219
|
252
|
if (item.id == id) {
|
|
@@ -228,6 +261,11 @@ export class FuwutaiComponent implements OnInit {
|
228
|
261
|
});
|
229
|
262
|
});
|
230
|
263
|
this.batchType1 = this.arriveListClone.some((item) => item.checked);
|
|
264
|
+ if (this.arriveListClone.length) {
|
|
265
|
+ this.allArriveList = this.arriveListClone.every((item) => item.checked);
|
|
266
|
+ } else {
|
|
267
|
+ this.allArriveList = false;
|
|
268
|
+ }
|
231
|
269
|
}
|
232
|
270
|
|
233
|
271
|
// 获取科室
|
|
@@ -818,6 +856,7 @@ export class FuwutaiComponent implements OnInit {
|
818
|
856
|
item.checked = false;
|
819
|
857
|
});
|
820
|
858
|
that.batchType = false;
|
|
859
|
+ that.allUnassignedList = false;
|
821
|
860
|
that.unassignedListClone = JSON.parse(
|
822
|
861
|
JSON.stringify(that.unassignedList)
|
823
|
862
|
);
|
|
@@ -855,6 +894,7 @@ export class FuwutaiComponent implements OnInit {
|
855
|
894
|
item.checked = false;
|
856
|
895
|
});
|
857
|
896
|
that.batchType1 = false;
|
|
897
|
+ that.allArriveList = false;
|
858
|
898
|
that.arriveListClone = JSON.parse(JSON.stringify(that.arriveList));
|
859
|
899
|
} else {
|
860
|
900
|
that.arriveList.forEach((item1) => {
|