Merge branch 'master' of http://114.55.171.231:3000/lxd/ECG
This commit is contained in:
commit
7666ed77f0
@ -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-input的DOM引用
|
const inputRef = ref() // 用于获取el-input的DOM引用
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
//关闭打印窗口
|
//关闭打印窗口
|
||||||
|
Loading…
Reference in New Issue
Block a user