seimin 3 周之前
父节点
当前提交
df0bb43d2c
共有 1 个文件被更改,包括 2 次插入1 次删除
  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
     }else if (this.confirmDelType === "add") {
285
     }else if (this.confirmDelType === "add") {
286
       //新增-患者陪检闭环
286
       //新增-患者陪检闭环
287
       let postData = {
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
       this.mainService
291
       this.mainService
291
         .bindPatientInspect(postData)
292
         .bindPatientInspect(postData)