|
|
|
@ -1,14 +1,14 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" @click="doctorCheck.doctorCheckDialogVisible=true">人员列表</el-button> |
|
|
|
<el-button type="primary" @click="doctorCheck.doctorCheckDialogVisible = true">人员列表</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" @click="toDoctorCheck">医生诊台</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" @click="save">保存</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" @click="edit">修改</el-button> |
|
|
|
</div> |
|
|
|
@ -29,31 +29,33 @@ |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" @click="intervene">干预措施</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 人员档案列表 --> |
|
|
|
<el-dialog |
|
|
|
title="人员档案列表" |
|
|
|
:visible.sync="doctorCheck.doctorCheckDialogVisible" |
|
|
|
width="1000px" |
|
|
|
:append-to-body="true" |
|
|
|
> |
|
|
|
<PatientRegisterList/> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog title="人员档案列表" :visible.sync="doctorCheck.doctorCheckDialogVisible" width="1000px" |
|
|
|
:append-to-body="true"> |
|
|
|
<PatientRegisterList /> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
import PatientRegisterList from "../doctorCheck/PatientRegisterList.vue"; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
PatientRegisterList, |
|
|
|
components: { |
|
|
|
PatientRegisterList, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
|
|
|
|
dialogVisible: false, |
|
|
|
tableData: [ |
|
|
|
{ |
|
|
|
col: 'col', |
|
|
|
details: [{id:1, name: '000' }, {id:2, name: '001' }] |
|
|
|
} |
|
|
|
], |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -61,7 +63,7 @@ export default { |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -69,55 +71,55 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
//总检 |
|
|
|
toDoctorCheck(){ |
|
|
|
toDoctorCheck() { |
|
|
|
this.$router.push({ path: "/doctorCheck" }); |
|
|
|
}, |
|
|
|
|
|
|
|
//操作判断 |
|
|
|
optGrant(optType){ |
|
|
|
let ret = '' |
|
|
|
optGrant(optType) { |
|
|
|
let ret = '' |
|
|
|
if (!this.sumDoctorCheck.sumPREdit.id) return '请选择体检人员' |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isLock == 'Y') return '人员已锁定,不可执行此操作' |
|
|
|
|
|
|
|
if(optType == 'save'){ |
|
|
|
|
|
|
|
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 (optType == 'edit') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,无需执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!' |
|
|
|
} |
|
|
|
if(optType == 'del'){ |
|
|
|
if (optType == 'del') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,无需执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!' |
|
|
|
} |
|
|
|
if(optType == 'audit'){ |
|
|
|
if (optType == 'audit') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该检查项目尚未保存,不可执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return "该人员检查已审核,无需再执行此操作" |
|
|
|
} |
|
|
|
if(optType == 'unAudit'){ |
|
|
|
if (optType == 'unAudit') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,不可执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'N') return "该人员检查尚未审核,无需执行此操作" |
|
|
|
} |
|
|
|
if(optType == 'report'){ |
|
|
|
if (optType == 'report') { |
|
|
|
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员检查尚未总检,不可执行此操作" |
|
|
|
if (this.sumDoctorCheck.sumPREdit.isAudit == 'N') return "该人员检查尚未审核,不可执行此操作" |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ret |
|
|
|
}, |
|
|
|
|
|
|
|
//保存数据 |
|
|
|
save() { |
|
|
|
let ret = this.optGrant('save') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//更新总检 |
|
|
|
this.updateSumDoctorCheck(); |
|
|
|
|
|
|
|
@ -129,17 +131,17 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//修改结果 |
|
|
|
edit(){ |
|
|
|
edit() { |
|
|
|
let ret = this.optGrant('edit') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
this.sumDoctorCheck.sumPREdit.completeFlag = '2' |
|
|
|
}, |
|
|
|
|
|
|
|
//取消结果 |
|
|
|
del(){ |
|
|
|
del() { |
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
//summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, |
|
|
|
@ -167,23 +169,23 @@ export default { |
|
|
|
this.$message({ type: "error", message: `取消总检失败,原因:${err}` }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//审核 |
|
|
|
audit(){ |
|
|
|
audit() { |
|
|
|
let ret = this.optGrant('audit') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
let body ={ |
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
//auditDate: "string" 不传时,取当前时间 |
|
|
|
isAudit:'Y' |
|
|
|
isAudit: 'Y' |
|
|
|
} |
|
|
|
|
|
|
|
console.log(`/api/app/patientregister/updatepatientregisterauditordoctor`,body) |
|
|
|
postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`,body) |
|
|
|
console.log(`/api/app/patientregister/updatepatientregisterauditordoctor`, body) |
|
|
|
postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`, body) |
|
|
|
.then((res) => { |
|
|
|
console.log("audit", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
@ -197,22 +199,22 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//取消审核 |
|
|
|
unAudit(){ |
|
|
|
unAudit() { |
|
|
|
let ret = this.optGrant('unAudit') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let body ={ |
|
|
|
} |
|
|
|
|
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
//auditDate: "string" 不传时,取当前时间 |
|
|
|
isAudit:'N' |
|
|
|
isAudit: 'N' |
|
|
|
} |
|
|
|
|
|
|
|
console.log(`/api/app/patientregister/updatepatientregisterauditordoctor`,body) |
|
|
|
postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`,body) |
|
|
|
console.log(`/api/app/patientregister/updatepatientregisterauditordoctor`, body) |
|
|
|
postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`, body) |
|
|
|
.then((res) => { |
|
|
|
console.log("unAudit", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
@ -226,34 +228,35 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//体检报告 |
|
|
|
report(){ |
|
|
|
report() { |
|
|
|
let ret = this.optGrant('report') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//体检报告 |
|
|
|
reCheck(){ |
|
|
|
reCheck() { |
|
|
|
let ret = this.optGrant('reCheck') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//干预措施 |
|
|
|
intervene(){ |
|
|
|
intervene() { |
|
|
|
let ret = this.optGrant('intervene') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//更新总检 |
|
|
|
updateSumDoctorCheck() { |
|
|
|
updateSumDoctorCheck() { |
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, |
|
|
|
@ -274,7 +277,7 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//更新综述 |
|
|
|
saveCheckSummary() { |
|
|
|
let body = [] |
|
|
|
@ -324,7 +327,7 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
addSummary(){ |
|
|
|
addSummary() { |
|
|
|
if (!this.sumDoctorCheck.sumPREdit.id) { |
|
|
|
alert("请选择检查项目") |
|
|
|
return |
|
|
|
@ -336,7 +339,7 @@ export default { |
|
|
|
}) |
|
|
|
this.doctorCheck.checkSuggestionList.push({ |
|
|
|
registerCheckId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
suggestion: '', |
|
|
|
suggestion: '', |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -360,6 +363,6 @@ export default { |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
.listBtn { |
|
|
|
margin-top: 10px; |
|
|
|
margin-top: 10px; |
|
|
|
} |
|
|
|
</style> |