|
|
|
@ -1,27 +1,28 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'人员列表')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '人员列表')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="prList">人员列表</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'医生诊台')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '医生诊台')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="toDoctorCheck">医生诊台</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'保存')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnSave">保存</el-button> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnSave" |
|
|
|
:disabled="sumBtnDisabled('save')">保存</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'修改')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '修改')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnEdit">修改</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'取消总检')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '取消总检')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnDel">取消总检</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'审核')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '审核')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="audit">审核</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'取消审核')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '取消审核')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="unAudit">取消审核</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'新增建议')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="addSuggtion">新增建议</el-button> |
|
|
|
</div> |
|
|
|
<!-- 直接放在 建议旁边 |
|
|
|
@ -29,13 +30,13 @@ |
|
|
|
<el-button type="primary" class="btnClass" @click="addDiagnosis">疾病诊断</el-button> |
|
|
|
</div> |
|
|
|
--> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'体检报告')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '体检报告')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="report">体检报告</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'复查')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '复查')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="reCheck">复查</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'干预措施')" class="listBtn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '干预措施')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="intervene">干预措施</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -43,7 +44,7 @@ |
|
|
|
<div v-show="sumDoctorCheck.sumDoctorCheckDialogVisible" |
|
|
|
:style="`z-index:3;border-radius: 10px;border: 1px solid #000;background-color:#FFF; position: absolute;top:70px;right:10px;width:300px;height: ${window.pageHeight - 42 - 5 - 30}px;opacity:1;`"> |
|
|
|
|
|
|
|
<PatientRegisterList win="sumDoctorCheck" :winAbsolute="true"/> |
|
|
|
<PatientRegisterList win="sumDoctorCheck" :winAbsolute="true" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
<!-- 抽屉方式,遮罩层不能操作 |
|
|
|
@ -64,7 +65,7 @@ |
|
|
|
|
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { getPagePriv,checkPagePriv, deepCopy,arrayExistObj, parseID } from "../../utlis/proFunc"; |
|
|
|
import { getPagePriv, checkPagePriv, deepCopy, sumBtnDisabled } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
import PatientRegisterList from "../doctorCheck/PatientRegisterList.vue"; |
|
|
|
import SumDiagnosis from "./SumDiagnosis.vue"; |
|
|
|
@ -74,12 +75,12 @@ export default { |
|
|
|
PatientRegisterList, |
|
|
|
SumDiagnosis, |
|
|
|
}, |
|
|
|
props:["fnSetSuggestionFocus"], |
|
|
|
props: ["fnSetSuggestionFocus"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
pagePriv:{ |
|
|
|
routeUrlorPageName:'sumDoctorCheck', //当前页面归属路由或归属页面权限名称 |
|
|
|
privs:[] // 页面权限 |
|
|
|
pagePriv: { |
|
|
|
routeUrlorPageName: 'sumDoctorCheck', //当前页面归属路由或归属页面权限名称 |
|
|
|
privs: [] // 页面权限 |
|
|
|
}, |
|
|
|
dialogVisible: false, |
|
|
|
tableData: [ |
|
|
|
@ -94,7 +95,7 @@ export default { |
|
|
|
created() { |
|
|
|
//获取用户当前页面的权限 |
|
|
|
let userPriv = window.sessionStorage.getItem('userPriv') |
|
|
|
if(userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
@ -103,17 +104,19 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState(["window","dict", "patientRegister", "doctorCheck", "sumDoctorCheck"]), |
|
|
|
...mapState(["window", "dict", "dataTransOpts", "patientRegister", "doctorCheck", "sumDoctorCheck"]), |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
checkPagePriv, |
|
|
|
|
|
|
|
prList() { |
|
|
|
this.sumDoctorCheck.sumDoctorCheckDialogVisible = true |
|
|
|
}, |
|
|
|
|
|
|
|
//诊断列表 |
|
|
|
addDiagnosis(){ |
|
|
|
addDiagnosis() { |
|
|
|
this.sumDoctorCheck.sumDiagnosisVisible = true |
|
|
|
}, |
|
|
|
|
|
|
|
@ -124,48 +127,13 @@ export default { |
|
|
|
this.$router.push({ path: "/doctorCheck" }); |
|
|
|
}, |
|
|
|
|
|
|
|
//操作判断 |
|
|
|
optGrant(optType) { |
|
|
|
let ret = '' |
|
|
|
if (!this.sumDoctorCheck.sumPREdit.id) return '请选择体检人员' |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isLock == 'Y') return '人员已锁定,不可执行此操作' |
|
|
|
|
|
|
|
if (optType == 'save') { |
|
|
|
//if (!this.sumDoctorCheck.sumPREdit.summaryDoctor) return "请选择总检医生" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag == '3') return "该人员已总检,不可再执行此操作,如需操作请点【修改】" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!' |
|
|
|
} |
|
|
|
if (optType == 'edit') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,无需执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!' |
|
|
|
} |
|
|
|
if (optType == 'del') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,无需执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!' |
|
|
|
} |
|
|
|
if (optType == 'audit') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该检查项目尚未保存,不可执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return "该人员检查已审核,无需再执行此操作" |
|
|
|
} |
|
|
|
if (optType == 'unAudit') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,不可执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'N') return "该人员检查尚未审核,无需执行此操作" |
|
|
|
} |
|
|
|
if (optType == 'report') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员检查尚未总检,不可执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'N') return "该人员检查尚未审核,不可执行此操作" |
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
// 按钮可用 |
|
|
|
sumBtnDisabled(btnFlagName) { |
|
|
|
sumBtnDisabled(btnFlagName, this.dataTransOpts.tableS.patient_register) |
|
|
|
}, |
|
|
|
|
|
|
|
//保存数据 |
|
|
|
btnSave() { |
|
|
|
let ret = this.optGrant('save') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning(ret); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
//更新总检 |
|
|
|
this.updateSumDoctorCheck(); |
|
|
|
@ -179,21 +147,13 @@ export default { |
|
|
|
|
|
|
|
//修改结果 |
|
|
|
btnEdit() { |
|
|
|
let ret = this.optGrant('edit') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning(ret); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.sumDoctorCheck.sumPREdit.completeFlag = '2' |
|
|
|
}, |
|
|
|
|
|
|
|
//取消结果 |
|
|
|
btnDel() { |
|
|
|
let ret = this.optGrant('del') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning(ret); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
//summaryDoctor: this.sumDoctorCheck.sumPREdit.summaryDoctor, |
|
|
|
@ -230,11 +190,7 @@ export default { |
|
|
|
|
|
|
|
//审核 |
|
|
|
audit() { |
|
|
|
let ret = this.optGrant('audit') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning(ret); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
@ -258,11 +214,6 @@ export default { |
|
|
|
|
|
|
|
//取消审核 |
|
|
|
unAudit() { |
|
|
|
let ret = this.optGrant('unAudit') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning(ret); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
@ -287,12 +238,8 @@ export default { |
|
|
|
|
|
|
|
//体检报告 |
|
|
|
report() { |
|
|
|
let ret = this.optGrant('report') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning(ret); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(!this.$peisAPI) { |
|
|
|
|
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info("此功能,需要在壳客户端才可运行!") |
|
|
|
return |
|
|
|
} |
|
|
|
@ -349,22 +296,12 @@ export default { |
|
|
|
|
|
|
|
//复查 |
|
|
|
reCheck() { |
|
|
|
console.log("parseID('123456198007240000')", parseID('123456198007240000')) |
|
|
|
let ret = this.optGrant('reCheck') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning(ret); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
console.log("复查") |
|
|
|
}, |
|
|
|
|
|
|
|
//干预措施 |
|
|
|
intervene() { |
|
|
|
let ret = this.optGrant('intervene') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning(ret); |
|
|
|
return; |
|
|
|
} |
|
|
|
console.log("干预措施") |
|
|
|
}, |
|
|
|
|
|
|
|
//更新总检 |
|
|
|
@ -475,10 +412,10 @@ export default { |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
@import '../../assets/css/global_button.css'; |
|
|
|
|
|
|
|
.listBtn { |
|
|
|
margin-top: 10px; |
|
|
|
margin-left: 10px; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |