seimin 2 周之前
父節點
當前提交
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 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)