This commit is contained in:
Euni4U 2024-12-23 18:17:35 +08:00
commit 7666ed77f0

View File

@ -64,6 +64,9 @@
<el-button type="primary" plain @click="ECGApplyDialog" <el-button type="primary" plain @click="ECGApplyDialog"
><el-icon><User /></el-icon></el-button ><el-icon><User /></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-button type="primary" plain @click="openECGDialog" v-if="isshowwjz"
><el-icon><Warning /></el-icon></el-button ><el-icon><Warning /></el-icon></el-button
> >
@ -417,7 +420,7 @@
@click="getuporghiorgid(Primarykey, orgid)" @click="getuporghiorgid(Primarykey, orgid)"
>申请诊断</el-button >申请诊断</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> </div>
</el-form> </el-form>
</div> </div>
@ -594,6 +597,9 @@ const snapshotTime = ref() //心电事件快照事件
const isChildVisible = ref(false) const isChildVisible = ref(false)
const inputRef = ref() // el-inputDOM const inputRef = ref() // el-inputDOM
const saveFormVO = ref<EcganalysisparasVO>({} as EcganalysisparasVO) 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 Profilevo = ref<ProfileVO>({} as ProfileVO) //
const age = ref() // const age = ref() //
const Isgrid = ref(1) // 1 0 const Isgrid = ref(1) // 1 0
@ -617,6 +623,8 @@ const isshowysb = ref(false)
const ECGReportDialog = ref() // const ECGReportDialog = ref() //
const ECGCompare = ref() // const ECGCompare = ref() //
const ECGApply = ref() // const ECGApply = ref() //
const keyid = ref() //ID
const savedisabled = ref(false) //
// //
const treeDefaultProps = { const treeDefaultProps = {
children: 'children', children: 'children',
@ -631,6 +639,7 @@ const open = async (row: any) => {
dialogTitle.value = '心电分析' dialogTitle.value = '心电分析'
resetForm() resetForm()
id.value = row.regId id.value = row.regId
keyid.value = row.id
Primarykey.value = row.id Primarykey.value = row.id
orgid.value = row.orgId orgid.value = row.orgId
rowinfo.value = row rowinfo.value = row
@ -639,6 +648,7 @@ const open = async (row: any) => {
queryParams.value = data queryParams.value = data
snapshotTime.value = formattedDate(queryParams.value.snapshotTime) snapshotTime.value = formattedDate(queryParams.value.snapshotTime)
await getlogininfo() await getlogininfo()
await getPatientexamlist(keyid.value)
calculateAge(row.birthday) calculateAge(row.birthday)
Isgrid.value = 1 // Isgrid.value = 1 //
isChildVisible.value = true isChildVisible.value = true
@ -665,6 +675,32 @@ const open = async (row: any) => {
if (warningdata.reportDate) { if (warningdata.reportDate) {
isshowysb.value = Profilevo.value.orgId === row.orgId ? true : false 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
} }
// //
@ -704,6 +740,7 @@ const queryParams = ref({
}) })
// //
async function save() { async function save() {
saveFormVO.value.id = queryParams.value.id saveFormVO.value.id = queryParams.value.id
saveFormVO.value.hr = queryParams.value.hr saveFormVO.value.hr = queryParams.value.hr
saveFormVO.value.pAxle = queryParams.value.paxle saveFormVO.value.pAxle = queryParams.value.paxle
@ -725,15 +762,24 @@ async function save() {
// saveFormVO.value.departName=queryParams.value.departName // saveFormVO.value.departName=queryParams.value.departName
const ret = await EcganalysisparasApi.SaveEcganalysisparas(saveFormVO.value) const ret = await EcganalysisparasApi.SaveEcganalysisparas(saveFormVO.value)
if (ret) { if (ret) {
//pdf //
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) const data = await EcganalysisparasApi.getexamIDdata('MZCF0191729074962197_44', orgid.value)
queryParams.value = data queryParams.value = data
message.alertSuccess('保存成功') message.alertSuccess('保存成功')
emit('success')
//ElMessage.info('pdf') //ElMessage.info('pdf')
setTimeout(() => { // setTimeout(() => {
isprintimage.value = true // isprintimage.value = true
}, 900) // }, 900)
} }
} }
@ -778,6 +824,8 @@ function resetForm() {
IsFD.value = false // IsFD.value = false //
lineratio.value = 0.05 //线 lineratio.value = 0.05 //线
suduratio.value = 1 //线 suduratio.value = 1 //线
applyFormVO.value = {} as PatientexamlistVO
examineFormVO.value={} as PatientexamlistVO
} }
// //