diff --git a/src/views/ECG/ECGForm.vue b/src/views/ECG/ECGForm.vue index 7e0a646f..94fe63f0 100644 --- a/src/views/ECG/ECGForm.vue +++ b/src/views/ECG/ECGForm.vue @@ -807,12 +807,11 @@ async function save() { examineFormVO.value.diagDoctorId = Profilevo.value.doctorID examineFormVO.value.reportstatus = '已分析' await PatientexamlistApi.examineupdatelist(examineFormVO.value) - //查询主表数据 - await getPatientexamlist(keyid.value) + const data = await EcganalysisparasApi.getexamIDdata(rowinfo.value.examId, orgid.value) queryParams.value = data - message.alertSuccess('保存成功') + //生成pdf saveFormVO.value.regId = id.value saveFormVO.value.examId = rowinfo.value.examId @@ -823,6 +822,9 @@ async function save() { saveFormVO.value.diagtime = queryParams.value.doctorDiagTime saveFormVO.value.ecgJsonDataFilePath = queryParams.value.ecgJsonDataFilePath await EcganalysisparasApi.SaveEcgPdf(saveFormVO.value) + //查询主表数据 + await getPatientexamlist(keyid.value) + message.alertSuccess('保存成功') emit('success') //ElMessage.info('开始保存pdf') @@ -888,9 +890,7 @@ function printclose() { function print() { //isprintimage.value = false isdiagshow.value = false - if (false && !queryParams.value.autoDiagTime) { - message.alertError('请保存后再进行打印') - } else if (rowinfo.value && rowinfo.value.reportstatus != '已审核') { + if (applyFormVO.value && applyFormVO.value.reportstatus != '已审核') { message.alertError('请审核后再进行打印') } else { //isprintimage.value = true diff --git a/src/views/ECG/ECGWaring/ECGReport.vue b/src/views/ECG/ECGWaring/ECGReport.vue index aefdb8ae..f5d1eb44 100644 --- a/src/views/ECG/ECGWaring/ECGReport.vue +++ b/src/views/ECG/ECGWaring/ECGReport.vue @@ -108,10 +108,10 @@ - + - + @@ -123,12 +123,12 @@ - + - + @@ -138,12 +138,13 @@ type="datetime" placeholder="检查时间" style="width: 190px" + :readonly="isreadonly" /> - + @@ -174,6 +175,7 @@ const issaveshow = ref(false) //是否显示保存按钮 const receivename = ref() //接受医生 const dealname = ref() //处理医生 const isshowwjztime = ref(false) //是否显示确认危急值时间 +const isreadonly=ref(false)// const opendiag = async (row) => { //赋值传递过来的患者数据 rowinfo.value = row @@ -202,6 +204,7 @@ const opendiag = async (row) => { receivename.value = Profilevo.value.nickname dealname.value = Profilevo.value.nickname dialogVisible.value = true + isreadonly.value= issaveshow.value?true:false } //确认 async function save() { @@ -216,6 +219,7 @@ async function save() { issaveshow.value = true await WarningApi.sendMessage('144',rowinfo.value.pname) message.alertSuccess('确认成功') + isreadonly.value=true } }