心电工作台增加审核功能

This commit is contained in:
lxd 2024-12-23 15:10:20 +08:00
parent 1b873209f3
commit dce4e2b833

View File

@ -61,6 +61,9 @@
<el-button type="primary" plain @click="print"
><el-icon><Printer /></el-icon></el-button
>
<el-button type="primary" plain @click="process"
><el-icon><Edit /></el-icon></el-button
>
<el-button type="primary" plain @click="openECGDialog" v-if="isshowwjz"
><el-icon><Warning /></el-icon></el-button
>
@ -414,7 +417,7 @@
@click="getuporghiorgid(Primarykey, orgid)"
>申请诊断</el-button
>
<el-button style="width: 200px" type="primary" @click="save">保存</el-button>
<el-button style="width: 200px" type="primary" @click="save" :disabled="savedisabled">保存</el-button>
</div>
</el-form>
</div>
@ -590,6 +593,9 @@ const snapshotTime = ref() //心电事件快照事件
const isChildVisible = ref(false)
const inputRef = ref() // el-inputDOM
const saveFormVO = ref<EcganalysisparasVO>({} as EcganalysisparasVO)
//
const applyFormVO = ref<PatientexamlistVO>({} as PatientexamlistVO)
const examineFormVO = ref<PatientexamlistVO>({} as PatientexamlistVO)
const Profilevo = ref<ProfileVO>({} as ProfileVO) //
const age = ref() //
const Isgrid = ref(1) // 1 0
@ -612,6 +618,8 @@ const isshowwjz = ref(false)
const isshowysb = ref(false)
const ECGReportDialog = ref() //
const ECGCompare = ref() //
const keyid = ref() //ID
const savedisabled = ref(false) //
//
const treeDefaultProps = {
children: 'children',
@ -626,6 +634,7 @@ const open = async (row: any) => {
dialogTitle.value = '心电分析'
resetForm()
id.value = row.regId
keyid.value = row.id
Primarykey.value = row.id
orgid.value = row.orgId
rowinfo.value = row
@ -634,6 +643,7 @@ const open = async (row: any) => {
queryParams.value = data
snapshotTime.value = formattedDate(queryParams.value.snapshotTime)
await getlogininfo()
await getPatientexamlist(keyid.value)
calculateAge(row.birthday)
Isgrid.value = 1 //
isChildVisible.value = true
@ -660,6 +670,32 @@ const open = async (row: any) => {
if (warningdata.reportDate) {
isshowysb.value = Profilevo.value.orgId === row.orgId ? true : false
}
//
savedisabled.value=applyFormVO.value.reportstatus === '已审核'?true:false
}
//
async function process() {
if (applyFormVO.value.reportstatus === '已分析') {
//
await message.delConfirm('是否进行审核操作', '审核')
const response = await PatientexamlistApi.examine(keyid.value)
if (response) {
message.alertSuccess('审核成功')
await getPatientexamlist(keyid.value)
emit('success')
savedisabled.value=true
}
} else if (applyFormVO.value.reportstatus === '已审核') {
message.warning('已经审核,无需再次审核')
} else {
message.warning('请先进行保存')
}
}
//
async function getPatientexamlist(id) {
const data = await PatientexamlistApi.getPatientexamlist(id)
applyFormVO.value = data
}
//
@ -699,6 +735,7 @@ const queryParams = ref({
})
//
async function save() {
saveFormVO.value.id = queryParams.value.id
saveFormVO.value.hr = queryParams.value.hr
saveFormVO.value.pAxle = queryParams.value.paxle
@ -720,15 +757,24 @@ async function save() {
// saveFormVO.value.departName=queryParams.value.departName
const ret = await EcganalysisparasApi.SaveEcganalysisparas(saveFormVO.value)
if (ret) {
//
examineFormVO.value.id = keyid.value
examineFormVO.value.diagDoctor = Profilevo.value.doctorname
examineFormVO.value.diagDoctorId = Profilevo.value.doctorID
examineFormVO.value.reportstatus = '已分析'
await PatientexamlistApi.examineupdatelist(examineFormVO.value)
//
await getPatientexamlist(keyid.value)
//pdf
const data = await EcganalysisparasApi.getexamIDdata('MZCF0191729074962197_44', orgid.value)
queryParams.value = data
message.alertSuccess('保存成功')
emit('success')
//ElMessage.info('pdf')
setTimeout(() => {
isprintimage.value = true
}, 900)
// setTimeout(() => {
// isprintimage.value = true
// }, 900)
}
}
@ -773,6 +819,8 @@ function resetForm() {
IsFD.value = false //
lineratio.value = 0.05 //线
suduratio.value = 1 //线
applyFormVO.value = {} as PatientexamlistVO
examineFormVO.value={} as PatientexamlistVO
}
//