修改心电图工作台保存逻辑

This commit is contained in:
lxd 2024-12-30 16:45:24 +08:00
parent ebe935974c
commit caeaeaaf66
2 changed files with 15 additions and 11 deletions

View File

@ -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

View File

@ -108,10 +108,10 @@
</el-col>
</el-row>
<el-form-item label="危急值内容:" label-width="100px">
<el-input v-model="warintinfo.warningContent" type="textarea" rows="3" />
<el-input v-model="warintinfo.warningContent" type="textarea" rows="3" :readonly="isreadonly"/>
</el-form-item>
<el-form-item label="备注:" label-width="100px">
<el-input v-model="warintinfo.remark" type="textarea" rows="2" />
<el-input v-model="warintinfo.remark" type="textarea" rows="2" :readonly="isreadonly"/>
</el-form-item>
</el-form>
</div>
@ -123,12 +123,12 @@
<el-row :gutter="24">
<el-col :span="7">
<el-form-item label="接报医生:">
<el-input v-model="receivename" />
<el-input v-model="receivename" :readonly="isreadonly" />
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="处理医生:">
<el-input v-model="dealname" />
<el-input v-model="dealname" :readonly="isreadonly"/>
</el-form-item>
</el-col>
<el-col :span="10">
@ -138,12 +138,13 @@
type="datetime"
placeholder="检查时间"
style="width: 190px"
:readonly="isreadonly"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="备注:">
<el-input v-model="warintinfo.readremark" type="textarea" rows="2" disabledz />
<el-input v-model="warintinfo.readremark" type="textarea" rows="2" disabledz :readonly="isreadonly"/>
</el-form-item>
</el-form>
</div>
@ -174,6 +175,7 @@ const issaveshow = ref(false) //是否显示保存按钮
const receivename = ref() //
const dealname = ref() //
const isshowwjztime = ref(false) //
const isreadonly=ref<any>(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
}
}