增加列表显示危急值标识

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

@ -22,7 +22,7 @@ export interface PatientexamlistVO {
diagResults: string // 诊断结论 diagResults: string // 诊断结论
diagDate: Date // 下诊断结论的时间:年月日时分秒 diagDate: Date // 下诊断结论的时间:年月日时分秒
diagDoctor: string // 诊断医生 diagDoctor: string // 诊断医生
diagDoctorId:string diagDoctorId: string
reviewDoctor: string // 审核医生 reviewDoctor: string // 审核医生
reviewDate: Date // 审核日期:年月日时分秒 reviewDate: Date // 审核日期:年月日时分秒
thumbnailImgUrl: string // 缩略图oss url, httP:oss url thumbnailImgUrl: string // 缩略图oss url, httP:oss url
@ -30,20 +30,20 @@ export interface PatientexamlistVO {
regId: string // 登记单号 regId: string // 登记单号
diagFlag: string // 阴性阳性标记 diagFlag: string // 阴性阳性标记
deviceName: string // 影像设备名称 deviceName: string // 影像设备名称
notes:string//备注 notes: string//备注
billDoctorDepartment:string// 开单科室 送检科室 billDoctorDepartment: string// 开单科室 送检科室
StudyInsta:string StudyInsta: string
isFavourite:string //是否收藏 isFavourite: string //是否收藏
pdfurl:String//pdf地址 pdfurl: String//pdf地址
warning:String//是否有危急值 warning: String//是否有危急值
applyhighLevelname:String//申请上级机构医生 applyhighLevelname: String//申请上级机构医生
} }
export interface inspdfscreenshotVO { export interface inspdfscreenshotVO {
id: string // 主键 id: string // 主键
imagebase: string // 图片 imagebase: string // 图片
model:string//类型 0 接口 1ftp model: string//类型 0 接口 1ftp
folderPath:string // folderPath: string //
} }
// PACS检查列表 API // PACS检查列表 API
export const PatientexamlistApi = { export const PatientexamlistApi = {
@ -77,46 +77,51 @@ export const PatientexamlistApi = {
return await request.download({ url: `/tblist/patientexamlist/export-excel`, params }) return await request.download({ url: `/tblist/patientexamlist/export-excel`, params })
}, },
getuporghiid: async (id: number,orgId:String) => {
return await request.get({ url: `/tblist/patientexamlist/UPDATEHigOrg?id=${id}&&orgId=${orgId}` })
},
// 超声保存修改 getuporghiid: async (id: number, orgId: String) => {
examineupdatelist: async (data: PatientexamlistVO) => { return await request.get({ url: `/tblist/patientexamlist/UPDATEHigOrg?id=${id}&&orgId=${orgId}` })
},
// 超声保存修改
examineupdatelist: async (data: PatientexamlistVO) => {
return await request.put({ url: `/tblist/patientexamlist/examineupdate`, data }) return await request.put({ url: `/tblist/patientexamlist/examineupdate`, data })
}, },
// 超声审核 // 超声审核
examine: async (id: String) => { examine: async (id: String) => {
return await request.get({ url: `/tblist/patientexamlist/examine?id=` + id }) return await request.get({ url: `/tblist/patientexamlist/examine?id=` + id })
}, },
// dicom数据同步 // dicom数据同步
dicomDataSync: async () => { dicomDataSync: async () => {
return await request.get({ url: `/tblist/patientexamlist/dicomDataSync` }) return await request.get({ url: `/tblist/patientexamlist/dicomDataSync` })
}, },
// 分检数据刷新
dicomDataRefresh: async () => {
return await request.get({ url: `/tblist/patientexamlist/dicomDataRefresh` })
},
// 获取已检查全部的阴性阳性重大阳性统计
WholeDiagFlagCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/WholeDiagFlagCount` })
},
// 获取一周已检查全部的阴性阳性重大阳性统计
GetDateYYZDYXCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/GetDateYYZDYXCount` })
},
// 收藏功能
CollectAndCancellation: async (id: String, type: string) => {
return await request.get({ url: `/tblist/patientexamlist/CollectAndCancellation?id=${id}&&type=${type}` })
},
ftppdf: async (data: inspdfscreenshotVO) => {
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}` })
},
// 分检数据刷新
dicomDataRefresh: async () => {
return await request.get({ url: `/tblist/patientexamlist/dicomDataRefresh` })
},
// 获取已检查全部的阴性阳性重大阳性统计
WholeDiagFlagCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/WholeDiagFlagCount`})
},
// 获取一周已检查全部的阴性阳性重大阳性统计
GetDateYYZDYXCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/GetDateYYZDYXCount`})
},
// 收藏功能
CollectAndCancellation: async (id: String,type:string) => {
return await request.get({ url: `/tblist/patientexamlist/CollectAndCancellation?id=${id}&&type=${type}`})
},
ftppdf: async (data:inspdfscreenshotVO) => {
return await request.post({ url: `/tblist/patientexamlist/ftppdf`,data})
},
} }

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
@ -593,7 +594,7 @@ const imagebase64 = ref('')
const isprintimage = ref(false) //base64 const isprintimage = ref(false) //base64
const ECGDialog = ref() // const ECGDialog = ref() //
const isshowwjz = ref(false) const isshowwjz = ref(false)
const isshowysb=ref(false) const isshowysb = ref(false)
const ECGReportDialog = ref() // const ECGReportDialog = ref() //
// //
const treeDefaultProps = { const treeDefaultProps = {
@ -636,9 +637,13 @@ const open = async (row: any) => {
eltextrow.value = integer eltextrow.value = integer
} }
}) })
// //
isshowwjz.value=Profilevo.value.orgId===row.highLevelOrgId?true:false const warningdata = await WarningApi.getexmidororgiddata(row.examId, row.orgId)
isshowysb.value=Profilevo.value.orgId===row.orgId?true:false //
isshowwjz.value = Profilevo.value.orgId === row.highLevelOrgId ? true : false
if (warningdata.reportDate) {
isshowysb.value = Profilevo.value.orgId === row.orgId ? true : false
}
} }
// //

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">
@ -164,7 +159,7 @@ const warintinfo = ref()
const rowinfo = ref() // const rowinfo = ref() //
const conreadDateTime = ref() // const conreadDateTime = ref() //
const Profilevo = ref<ProfileVO>({} as ProfileVO) // const Profilevo = ref<ProfileVO>({} as ProfileVO) //
const issaveshow=ref(false)// const issaveshow = ref(false) //
const receivename = ref() // const receivename = ref() //
const dealname = ref() // const dealname = ref() //
const isshowwjztime = ref(false) // const isshowwjztime = ref(false) //
@ -173,11 +168,10 @@ const opendiag = async (row) => {
rowinfo.value = row rowinfo.value = row
resetForm() resetForm()
await getlogininfo() // 使 ISO await getlogininfo() // 使 ISO
// //
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)
@ -188,11 +182,11 @@ const opendiag = async (row) => {
if (data.checkDateTime) { if (data.checkDateTime) {
formData.value.checkDateTime = formattedDate(data.checkDateTime) formData.value.checkDateTime = formattedDate(data.checkDateTime)
isshowwjztime.value = true isshowwjztime.value = true
issaveshow.value=true issaveshow.value = true
} else { } else {
formData.value.checkDateTime = new Date().toLocaleString().replace(/\//g, '-') formData.value.checkDateTime = new Date().toLocaleString().replace(/\//g, '-')
isshowwjztime.value = false isshowwjztime.value = false
issaveshow.value=false issaveshow.value = false
} }
receivename.value = Profilevo.value.nickname receivename.value = Profilevo.value.nickname
@ -209,7 +203,7 @@ async function save() {
const data = await WarningApi.SaveupdateWarning(savedata) const data = await WarningApi.SaveupdateWarning(savedata)
if (data) { if (data) {
isshowwjztime.value = true isshowwjztime.value = true
issaveshow.value=true issaveshow.value = true
message.alertSuccess('确认成功') message.alertSuccess('确认成功')
} }
} }
@ -267,8 +261,8 @@ const resetForm = () => {
warningProcess: undefined, warningProcess: undefined,
readremark: undefined readremark: undefined
} }
// //
warintinfo.value='' warintinfo.value = ''
} }
defineExpose({ opendiag }) // open defineExpose({ opendiag }) // open
/** 提交表单 */ /** 提交表单 */

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>('')
@ -103,7 +104,7 @@ const opendiag = async (type, row) => {
// //
formData.value.reportDoctor = Profilevo.value.nickname formData.value.reportDoctor = Profilevo.value.nickname
} }
formLoading.value = false formLoading.value = false
dialogVisible.value = true dialogVisible.value = true
} }
@ -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>