@@ -164,7 +159,7 @@ const warintinfo = ref()
const rowinfo = ref() //外面传递的患者信息
const conreadDateTime = ref() //检查段收到时间
const Profilevo = ref
({} as ProfileVO) //当前登录人信息
-const issaveshow=ref(false)//是否显示保存按钮
+const issaveshow = ref(false) //是否显示保存按钮
const receivename = ref() //接受医生
const dealname = ref() //处理医生
const isshowwjztime = ref(false) //是否显示确认危急值时间
@@ -173,11 +168,10 @@ const opendiag = async (row) => {
rowinfo.value = row
resetForm()
await getlogininfo() // 使用 ISO 格式的时间字符串
-
+
//查询当前患者的危急值相关信息
const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId)
warintinfo.value = data
-
//处理时间轴相关
if (!data.readDateTime) {
await updatereadDateTime(data.id)
@@ -188,11 +182,11 @@ const opendiag = async (row) => {
if (data.checkDateTime) {
formData.value.checkDateTime = formattedDate(data.checkDateTime)
isshowwjztime.value = true
- issaveshow.value=true
+ issaveshow.value = true
} else {
formData.value.checkDateTime = new Date().toLocaleString().replace(/\//g, '-')
isshowwjztime.value = false
- issaveshow.value=false
+ issaveshow.value = false
}
receivename.value = Profilevo.value.nickname
@@ -209,7 +203,7 @@ async function save() {
const data = await WarningApi.SaveupdateWarning(savedata)
if (data) {
isshowwjztime.value = true
- issaveshow.value=true
+ issaveshow.value = true
message.alertSuccess('确认成功')
}
}
@@ -267,8 +261,8 @@ const resetForm = () => {
warningProcess: undefined,
readremark: undefined
}
- //重置一下数据
- warintinfo.value=''
+ //重置一下数据
+ warintinfo.value = ''
}
defineExpose({ opendiag }) // 提供 open 方法,用于打开弹窗
/** 提交表单 */
diff --git a/src/views/ECG/ECGWaring/ECGWarningDialog.vue b/src/views/ECG/ECGWaring/ECGWarningDialog.vue
index 34c461f9..ff3f7064 100644
--- a/src/views/ECG/ECGWaring/ECGWarningDialog.vue
+++ b/src/views/ECG/ECGWaring/ECGWarningDialog.vue
@@ -63,6 +63,7 @@ import { ref } from 'vue'
import { getUserProfile, ProfileVO } from '@/api/system/user/profile'
import { WarningApi, WarningVO } from '@/api/system/warning'
import { ReportPrintStatisticsApi } from '@/api/applyregistration/reportPrintStatistics'
+import { PatientexamlistApi, PatientexamlistVO } from '@/api/tblist/patientexamlist'
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
const orgInfo = ref('')
@@ -103,7 +104,7 @@ const opendiag = async (type, row) => {
//上报医生
formData.value.reportDoctor = Profilevo.value.nickname
}
-
+
formLoading.value = false
dialogVisible.value = true
}
@@ -126,6 +127,8 @@ async function report() {
const data = formData.value as unknown as WarningVO
const re = await WarningApi.createWarning(data)
if (re) {
+ //更新数据列表的危急值状态
+ await PatientexamlistApi.Updatetblistwarning(rowinfo.value.id, '1')
message.alertSuccess('上报成功')
}
dialogVisible.value = false
diff --git a/src/views/tblist/patientexamlistECG/index.vue b/src/views/tblist/patientexamlistECG/index.vue
index 1c3c3d92..3cf499a5 100644
--- a/src/views/tblist/patientexamlistECG/index.vue
+++ b/src/views/tblist/patientexamlistECG/index.vue
@@ -198,6 +198,12 @@
已申请
+
+
+
+
+
+