|
|
|
@ -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 }) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//领用体检报告 |
|
|
|
|