心电模块危急值相关

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