心电模块危急值相关
This commit is contained in:
parent
7628120b07
commit
3132ed4506
@ -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 方法,用于打开弹窗
|
||||
|
Loading…
Reference in New Issue
Block a user