seimin 2 weeks ago
parent
commit
df0bb43d2c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/app/views/batch-inspection/batch-inspection.component.ts

+ 2 - 1
src/app/views/batch-inspection/batch-inspection.component.ts

@@ -285,7 +285,8 @@ export class BatchInspectionComponent implements OnInit {
285 285
     }else if (this.confirmDelType === "add") {
286 286
       //新增-患者陪检闭环
287 287
       let postData = {
288
-        inspectIds: this.inspectActiveList.map(v => v.id).toString() || undefined,
288
+        patientIds: this.inspectActiveList.length === 0 ? this.patientActiveList.map(v => v.id).toString() : undefined,
289
+        inspectIds: this.inspectActiveList.length !== 0 ? this.inspectActiveList.map(v => v.id).toString() : undefined,
289 290
       }
290 291
       this.mainService
291 292
         .bindPatientInspect(postData)