Browse Source

report

master
pengjun 1 year ago
parent
commit
31d5250651
  1. 25
      src/components/report/BtnReport.vue

25
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 })
}
})
},
//

Loading…
Cancel
Save