增加列表显示危急值标识

This commit is contained in:
lxd 2024-12-05 16:40:25 +08:00
parent 3b8b2c1dcb
commit af72564534
6 changed files with 76 additions and 63 deletions

View File

@ -62,7 +62,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
"[typescript]": { "[typescript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint" "editor.defaultFormatter": "vscode.typescript-language-features"
}, },
"[typescriptreact]": { "[typescriptreact]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint" "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"

View File

@ -119,4 +119,9 @@ CollectAndCancellation: async (id: String,type:string) => {
ftppdf: async (data: inspdfscreenshotVO) => { ftppdf: async (data: inspdfscreenshotVO) => {
return await request.post({ url: `/tblist/patientexamlist/ftppdf`, data }) return await request.post({ url: `/tblist/patientexamlist/ftppdf`, data })
}, },
// 更新危急值标识
Updatetblistwarning: async (id: String, type: string) => {
return await request.get({ url: `/tblist/patientexamlist/Updatetblistwarning?id=${id}&&type=${type}` })
},
} }

View File

@ -64,7 +64,7 @@
<el-button type="primary" plain @click="openECGDialog" v-if="isshowwjz" <el-button type="primary" plain @click="openECGDialog" v-if="isshowwjz"
><el-icon><Warning /></el-icon></el-button ><el-icon><Warning /></el-icon></el-button
> >
<el-button type="primary" plain @click="openreprotdiag" v-if="isshowysb" <el-button type="danger" plain @click="openreprotdiag" v-if="isshowysb"
><el-icon><Check /></el-icon></el-button ><el-icon><Check /></el-icon></el-button
> >
</el-button-group> </el-button-group>
@ -559,6 +559,7 @@ import ReportInfoECG from '@/views/applyregistration/reportPrintStatistics/Repor
import htmlToPdf from '@/utils/htmlPdf' import htmlToPdf from '@/utils/htmlPdf'
import ECGWarningDialog from '@/views/ECG/ECGWaring/ECGWarningDialog.vue' import ECGWarningDialog from '@/views/ECG/ECGWaring/ECGWarningDialog.vue'
import ECGReport from '@/views/ECG/ECGWaring/ECGReport.vue' import ECGReport from '@/views/ECG/ECGWaring/ECGReport.vue'
import { WarningApi, WarningVO } from '@/api/system/warning'
/** 提交表单 */ /** 提交表单 */
const emit = defineEmits(['success']) // success const emit = defineEmits(['success']) // success
@ -636,10 +637,14 @@ const open = async (row: any) => {
eltextrow.value = integer eltextrow.value = integer
} }
}) })
//
const warningdata = await WarningApi.getexmidororgiddata(row.examId, row.orgId)
// //
isshowwjz.value = Profilevo.value.orgId === row.highLevelOrgId ? true : false isshowwjz.value = Profilevo.value.orgId === row.highLevelOrgId ? true : false
if (warningdata.reportDate) {
isshowysb.value = Profilevo.value.orgId === row.orgId ? true : false isshowysb.value = Profilevo.value.orgId === row.orgId ? true : false
} }
}
// //
const queryParams = ref({ const queryParams = ref({

View File

@ -1,10 +1,5 @@
<template> <template>
<el-dialog <el-dialog v-model="dialogVisible" title="危急值上报详情" width="1000px" style="height: 720px">
v-model="dialogVisible"
title="危急值上报详情"
width="1000px"
style="height: 720px"
>
<div class="modal"> <div class="modal">
<div class="modal-content"> <div class="modal-content">
<div class="left-side"> <div class="left-side">
@ -177,7 +172,6 @@ const opendiag = async (row) => {
// //
const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId) const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId)
warintinfo.value = data warintinfo.value = data
// //
if (!data.readDateTime) { if (!data.readDateTime) {
await updatereadDateTime(data.id) await updatereadDateTime(data.id)

View File

@ -63,6 +63,7 @@ import { ref } from 'vue'
import { getUserProfile, ProfileVO } from '@/api/system/user/profile' import { getUserProfile, ProfileVO } from '@/api/system/user/profile'
import { WarningApi, WarningVO } from '@/api/system/warning' import { WarningApi, WarningVO } from '@/api/system/warning'
import { ReportPrintStatisticsApi } from '@/api/applyregistration/reportPrintStatistics' import { ReportPrintStatisticsApi } from '@/api/applyregistration/reportPrintStatistics'
import { PatientexamlistApi, PatientexamlistVO } from '@/api/tblist/patientexamlist'
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //
const orgInfo = ref<any>('') const orgInfo = ref<any>('')
@ -126,6 +127,8 @@ async function report() {
const data = formData.value as unknown as WarningVO const data = formData.value as unknown as WarningVO
const re = await WarningApi.createWarning(data) const re = await WarningApi.createWarning(data)
if (re) { if (re) {
//
await PatientexamlistApi.Updatetblistwarning(rowinfo.value.id, '1')
message.alertSuccess('上报成功') message.alertSuccess('上报成功')
} }
dialogVisible.value = false dialogVisible.value = false

View File

@ -198,6 +198,12 @@
<span>已申请</span> <span>已申请</span>
</el-tag> </el-tag>
</div> </div>
<!--如果有危急值显示红心-->
<div v-if="scope.row.warning===1">
<el-tag>
<span> <el-icon><Star /></el-icon></span>
</el-tag>
</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>