心电模块危急值相关

This commit is contained in:
lxd 2024-12-05 11:34:08 +08:00
parent 7628120b07
commit 3132ed4506

View File

@ -4,7 +4,6 @@
title="危急值上报详情" title="危急值上报详情"
width="1000px" width="1000px"
style="height: 720px" style="height: 720px"
:before-close="handleClose"
> >
<div class="modal"> <div class="modal">
<div class="modal-content"> <div class="modal-content">
@ -21,18 +20,18 @@
<span>检查端收到提醒</span> <span>检查端收到提醒</span>
</el-timeline-item> </el-timeline-item>
<el-timeline-item <el-timeline-item
:timestamp="new Date(newdatetime).toLocaleString().replace(/\//g, '-')" :timestamp="formData.checkDateTime"
placement="top" placement="top"
v-if="isshowwjztime" v-if="isshowwjztime"
> >
<span>检查端确认危急值</span> <span>检查端确认危急值</span>
</el-timeline-item> </el-timeline-item>
<el-timeline-item <el-timeline-item
:timestamp="new Date(newdatetime).toLocaleString().replace(/\//g, '-')" :timestamp="formData.checkDateTime"
placement="top" placement="top"
v-if="isshowwjztime" v-if="isshowwjztime"
> >
<span>发送确认通知</span> <span>检查端发送确认回执</span>
</el-timeline-item> </el-timeline-item>
</el-timeline> </el-timeline>
</div> </div>
@ -47,6 +46,7 @@
<el-input <el-input
style="width: 160px" style="width: 160px"
:value="formatDate(rowinfo.examDate, 'YYYY-MM-DD HH:mm:ss')" :value="formatDate(rowinfo.examDate, 'YYYY-MM-DD HH:mm:ss')"
disabled
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -102,10 +102,10 @@
</el-col> </el-col>
</el-row> </el-row>
<el-form-item label="危急值内容:" label-width="100px"> <el-form-item label="危急值内容:" label-width="100px">
<el-input :value="warintinfo.warningContent" type="textarea" rows="3" /> <el-input v-model="warintinfo.warningContent" type="textarea" rows="3" />
</el-form-item> </el-form-item>
<el-form-item label="备注:" label-width="100px"> <el-form-item label="备注:" label-width="100px">
<el-input :value="warintinfo.remark" type="textarea" rows="2" /> <el-input v-model="warintinfo.remark" type="textarea" rows="2" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -130,10 +130,8 @@
<el-date-picker <el-date-picker
v-model="formData.checkDateTime" v-model="formData.checkDateTime"
type="datetime" type="datetime"
value-format="x"
placeholder="检查时间" placeholder="检查时间"
style="width: 190px" style="width: 190px"
:default-value="new Date()"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -144,7 +142,7 @@
</el-form> </el-form>
</div> </div>
<el-form-item> <el-form-item>
<el-button type="primary" @click="save">确认</el-button> <el-button type="primary" @click="save" :disabled="issaveshow">确认</el-button>
<el-button @click="() => (dialogVisible = false)">取消</el-button> <el-button @click="() => (dialogVisible = false)">取消</el-button>
</el-form-item> </el-form-item>
</div> </div>
@ -157,7 +155,7 @@
import { ref } from 'vue' 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 { formatDate } from '@/utils/formatTime' import { formatDate, getNowDateTime } from '@/utils/formatTime'
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
@ -166,7 +164,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 receivename = ref() // const receivename = ref() //
const dealname = ref() // const dealname = ref() //
const isshowwjztime = ref(false) // const isshowwjztime = ref(false) //
@ -174,27 +172,34 @@ const opendiag = async (row) => {
// //
rowinfo.value = row rowinfo.value = row
resetForm() resetForm()
await getlogininfo() 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)
} else { } else {
conreadDateTime.value = data.readDateTime conreadDateTime.value = data.readDateTime
} }
//
if (data.checkDateTime) { if (data.checkDateTime) {
formData.value.checkDateTime = formattedDate(data.checkDateTime)
isshowwjztime.value = true isshowwjztime.value = true
issaveshow.value=true
} else { } else {
formData.value.checkDateTime = new Date().toLocaleString().replace(/\//g, '-')
isshowwjztime.value = false isshowwjztime.value = false
issaveshow.value=false
} }
receivename.value = Profilevo.value.nickname receivename.value = Profilevo.value.nickname
dealname.value = Profilevo.value.nickname dealname.value = Profilevo.value.nickname
dialogVisible.value = true dialogVisible.value = true
} }
// //
async function save() { async function save() {
formData.value.id = warintinfo.value.id formData.value.id = warintinfo.value.id
formData.value.receiveDoctor = receivename.value formData.value.receiveDoctor = receivename.value
formData.value.dealDoctor = dealname.value formData.value.dealDoctor = dealname.value
@ -203,12 +208,14 @@ 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
message.alertSuccess('确认成功')
} }
} }
// //
async function updatereadDateTime(id) { async function updatereadDateTime(id) {
conreadDateTime.value = new Date().toLocaleString() conreadDateTime.value = new Date().toLocaleString().replace(/\//g, '-')
await WarningApi.updateWarningdate(id, conreadDateTime.value, '') await WarningApi.updateWarningdate(id, conreadDateTime.value, '')
} }
// //
@ -232,13 +239,13 @@ const formData = ref({
reportorgName: undefined, reportorgName: undefined,
reportDoctor: '', reportDoctor: '',
reportDate: undefined, reportDate: undefined,
warningContent: '', warningContent: undefined,
receiveDoctor: undefined, receiveDoctor: undefined,
dealDoctor: undefined, dealDoctor: undefined,
checkDateTime: '', checkDateTime: '',
remark: undefined, remark: undefined,
warningProcess: undefined, warningProcess: undefined,
readremark: '' readremark: undefined
}) })
/** 重置表单 */ /** 重置表单 */
const resetForm = () => { const resetForm = () => {
@ -251,13 +258,13 @@ const resetForm = () => {
reportorgName: undefined, reportorgName: undefined,
reportDoctor: '', reportDoctor: '',
reportDate: undefined, reportDate: undefined,
warningContent: '', warningContent: undefined,
receiveDoctor: undefined, receiveDoctor: undefined,
dealDoctor: undefined, dealDoctor: undefined,
checkDateTime: '', checkDateTime: '',
remark: undefined, remark: undefined,
warningProcess: undefined, warningProcess: undefined,
readremark: '' readremark: undefined
} }
} }
defineExpose({ opendiag }) // open defineExpose({ opendiag }) // open