心电模块修改危急值功能

This commit is contained in:
lxd 2024-12-05 15:55:26 +08:00
parent 9d5073ef6a
commit d4da28a879
3 changed files with 36 additions and 10 deletions

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" <el-button type="primary" 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>
@ -593,6 +593,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 ECGReportDialog = ref() // const ECGReportDialog = ref() //
// //
const treeDefaultProps = { const treeDefaultProps = {
@ -621,7 +622,8 @@ const open = async (row: any) => {
isChildVisible.value = true isChildVisible.value = true
isshowwjz.value = true isshowwjz.value = true
// //
// isshowwjz.value=Profilevo.value.orgId===row.highLevelOrgId?true:false isshowwjz.value=Profilevo.value.orgId===row.highLevelOrgId?true:false
isshowysb.value=Profilevo.value.orgId===row.orgId?true:false
nextTick(() => { nextTick(() => {
/* 计算右侧诊断*/ /* 计算右侧诊断*/
const canvasContainer = document.getElementById('elform') const canvasContainer = document.getElementById('elform')

View File

@ -177,6 +177,7 @@ 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)
@ -266,6 +267,8 @@ const resetForm = () => {
warningProcess: undefined, warningProcess: undefined,
readremark: undefined readremark: undefined
} }
//
warintinfo.value=''
} }
defineExpose({ opendiag }) // open defineExpose({ opendiag }) // open
/** 提交表单 */ /** 提交表单 */

View File

@ -38,7 +38,7 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="接报医生" prop="applyhighLevelname"> <el-form-item label="接报医生" prop="applyhighLevelname">
<el-input v-model="rowinfo.applyhighLevelname" disabled /> <el-input v-model="formData.receiveDoctor" disabled />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -51,7 +51,7 @@
<el-input v-model="formData.remark" type="textarea" :rows="5" /> <el-input v-model="formData.remark" type="textarea" :rows="5" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="report">上报</el-button> <el-button type="primary" @click="report" :disabled="isreportshow">上报</el-button>
<el-button @click="() => (dialogVisible = false)">取消</el-button> <el-button @click="() => (dialogVisible = false)">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -72,7 +72,7 @@ const formLoading = ref(false) // 表单的加载中1修改时的数据加
const formRef = ref() // Ref const formRef = ref() // Ref
const rowinfo = ref() // const rowinfo = ref() //
const Profilevo = ref<ProfileVO>({} as ProfileVO) // const Profilevo = ref<ProfileVO>({} as ProfileVO) //
const isreportshow = ref(false) //
/** 打开弹窗 */ /** 打开弹窗 */
const opendiag = async (type, row) => { const opendiag = async (type, row) => {
// const reportDate = await isdata(row.examId, row.orgId) // const reportDate = await isdata(row.examId, row.orgId)
@ -80,14 +80,33 @@ const opendiag = async (type, row) => {
// message.alertError('') // message.alertError('')
// return // return
// } // }
formLoading.value = true formLoading.value = true
dialogVisible.value = true
dialogTitle.value = t('action.' + type) dialogTitle.value = t('action.' + type)
resetForm() resetForm()
rowinfo.value = row rowinfo.value = row
//
const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId)
if (data) {
isreportshow.value = true
//
formData.value.warningContent = data.warningContent
//
formData.value.receiveDoctor = data.receiveDoctor
formData.value.reportDoctor = data.reportDoctor
formData.value.remark = data.remark
} else {
isreportshow.value = false
formData.value.receiveDoctor = rowinfo.value.applyhighLevelname
//
formData.value.reportDoctor = Profilevo.value.nickname
}
await getlogininfo() await getlogininfo()
formData.value.reportDoctor = Profilevo.value.nickname
formLoading.value = false formLoading.value = false
dialogVisible.value = true
} }
// //
async function isdata(examId: String, orgId: String) { async function isdata(examId: String, orgId: String) {
@ -106,11 +125,13 @@ async function report() {
formData.value.reportOrgId = Profilevo.value.orgId formData.value.reportOrgId = Profilevo.value.orgId
formData.value.reportorgName = orgInfo.value.orgName formData.value.reportorgName = orgInfo.value.orgName
const data = formData.value as unknown as WarningVO const data = formData.value as unknown as WarningVO
await WarningApi.createWarning(data) const re = await WarningApi.createWarning(data)
if (re) {
message.alertSuccess('上报成功')
}
dialogVisible.value = false dialogVisible.value = false
} }
const formData = ref({ const formData = ref({
id: undefined, id: undefined,
orgId: undefined, orgId: undefined,