|
@@ -147,45 +147,32 @@ export class BatchInspectionComponent implements OnInit {
|
147
|
147
|
this.message.info('请选择预约时间!');
|
148
|
148
|
return;
|
149
|
149
|
}
|
150
|
|
- let postData = {
|
151
|
|
- idx: 0,
|
152
|
|
- sum: 9999,
|
153
|
|
- patient: {
|
154
|
|
- department: this.deptDTO,
|
155
|
|
- }
|
156
|
|
- };
|
|
150
|
+
|
157
|
151
|
this.maskFlag = this.message.loading("正在加载中..", {
|
158
|
152
|
nzDuration: 0,
|
159
|
153
|
}).messageId;
|
160
|
|
- this.mainService
|
161
|
|
- .getFetchDataList("simple/data", "patient", postData)
|
162
|
|
- .subscribe((data) => {
|
163
|
|
- let patientList = data.list || [];
|
164
|
|
- this.patientActiveList = patientList;
|
165
|
154
|
|
166
|
|
- if(!this.patientActiveList.length){
|
167
|
|
- this.message.warning('没有找到患者');
|
168
|
|
- return;
|
169
|
|
- }
|
|
155
|
+ let postData = {
|
|
156
|
+ startTime: this.dateRange.length ? format(this.dateRange[0], 'yyyy-MM-dd HH:mm:ss') : undefined,
|
|
157
|
+ endTime: this.dateRange.length ? format(this.dateRange[1], 'yyyy-MM-dd HH:mm:ss') : undefined,
|
|
158
|
+ inspectStateValue: 1,//待陪检
|
|
159
|
+ noneGdid: 1,//未绑定工单
|
|
160
|
+ nonePilId: 1,//未绑定患者闭环
|
|
161
|
+ deptId: this.deptDTO.id,
|
|
162
|
+ };
|
170
|
163
|
|
171
|
|
- let postData = {
|
172
|
|
- startTime: this.dateRange.length ? format(this.dateRange[0], 'yyyy-MM-dd HH:mm:ss') : undefined,
|
173
|
|
- endTime: this.dateRange.length ? format(this.dateRange[1], 'yyyy-MM-dd HH:mm:ss') : undefined,
|
174
|
|
- patientCodes: this.patientActiveList.map(v => v.patientCode).toString(),
|
175
|
|
- inspectStateValue: 1,//待陪检
|
176
|
|
- noneGdid: 1,//未绑定工单
|
177
|
|
- nonePilId: 1,//未绑定患者闭环
|
178
|
|
- deptId: this.deptDTO.id,
|
179
|
|
- };
|
180
|
|
-
|
181
|
|
- this.mainService
|
182
|
|
- .getPatientInspectList(postData)
|
183
|
|
- .subscribe((result:any) => {
|
184
|
|
- this.message.remove(this.maskFlag);
|
185
|
|
- this.maskFlag = false;
|
186
|
|
- this.inspectActiveList = result.list || [];
|
187
|
|
- this.showDelModal(this.patientActiveList, `您确认添加“<b class="red">${this.patientActiveList.length}</b>”位患者共“<b class="red">${this.inspectActiveList.length}</b>”项检查吗?`,'批量添加患者','add');
|
188
|
|
- });
|
|
164
|
+ this.mainService
|
|
165
|
+ .getPatientInspectList(postData)
|
|
166
|
+ .subscribe((result:any) => {
|
|
167
|
+ this.message.remove(this.maskFlag);
|
|
168
|
+ this.maskFlag = false;
|
|
169
|
+ this.inspectActiveList = result.list || [];
|
|
170
|
+ this.patientActiveList = result.patientList || [];
|
|
171
|
+ if(this.patientActiveList.length){
|
|
172
|
+ this.showDelModal(this.patientActiveList, `您确认添加“<b class="red">${this.patientActiveList.length}</b>”位患者共“<b class="red">${this.inspectActiveList.length}</b>”项检查吗?`,'批量添加患者','add');
|
|
173
|
+ }else{
|
|
174
|
+ this.message.info('当前时间区间没有检查!');
|
|
175
|
+ }
|
189
|
176
|
});
|
190
|
177
|
}
|
191
|
178
|
|
|
@@ -298,7 +285,7 @@ export class BatchInspectionComponent implements OnInit {
|
298
|
285
|
}else if (this.confirmDelType === "add") {
|
299
|
286
|
//新增-患者陪检闭环
|
300
|
287
|
let postData = {
|
301
|
|
- patientIds: this.patientActiveList.map(v => v.id).toString() || undefined,
|
|
288
|
+ inspectIds: this.inspectActiveList.map(v => v.id).toString() || undefined,
|
302
|
289
|
}
|
303
|
290
|
this.mainService
|
304
|
291
|
.bindPatientInspect(postData)
|