From 31d525065110c8feaf270033e26a566980c1b899 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Tue, 18 Jun 2024 22:25:30 +0800 Subject: [PATCH] report --- src/components/report/BtnReport.vue | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/src/components/report/BtnReport.vue b/src/components/report/BtnReport.vue index 1edafcd..73c2f64 100644 --- a/src/components/report/BtnReport.vue +++ b/src/components/report/BtnReport.vue @@ -75,22 +75,33 @@ export default { return } + let patientRegisterId = this.dataTransOpts.tableS.patient_register.id let url = '/api/app/ImportLisResult/ImportResultByPatientRegisterId' switch (checkType) { case 'pacs': url = '/api/app/ImportPacsResult/ImportResultByPatientRegisterId' + postapi(url, { patientRegisterId }) + .then(res => { + if (res.code > -1) { + return postapi('/api/app/ImportElectrocardiogramResult/ImportElectrocardiogramResultByPatientRegisterId', { patientRegisterId }) + } + }) + .then(res => { + if (res && res.code > -1) { + this.$message.success({ showClose: true, message: '导入成功!' }) + } + }) break; default: + postapi(url, { patientRegisterId }).then(res => { + if (res.code > -1) { + this.$message.success({ showClose: true, message: '导入成功!' }) + } + }) break; } - postapi(url, { patientRegisterId: this.dataTransOpts.tableS.patient_register.id }).then(res => { - if (res.code > -1) { - this.$message.success({ showClose: true, message: '导入成功!' }) - } else { - this.$message.error({ showClose: true, message: res.message }) - } - }) + }, //领用体检报告