|
|
|
@ -1,24 +1,24 @@ |
|
|
|
<template> |
|
|
|
<div style="margin-left: 10px;"> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'人员列表')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="prList">人员列表</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'体检日期')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="dialogVisibleSetStartDate = true">体检日期</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'增加人员')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnAddPr">增加人员</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'编辑人员')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnEditPr">编辑人员</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'删除人员')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnDelPr">删除人员</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'上一人')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnPrev">上一人</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'下一人')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnNext">下一人</el-button> |
|
|
|
</div> |
|
|
|
<!-- |
|
|
|
@ -26,28 +26,28 @@ |
|
|
|
<el-button type="primary" class="btnClass" @click="save">保存结果</el-button> |
|
|
|
</div> |
|
|
|
--> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'修改结果')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnEdit">修改结果</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'删除结果')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnDel">删除结果</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'放弃明细项目检查')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="refuseItem" style="font-size:11px;">放弃明细项目检查</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'删除明细项目')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="delItem">删除明细项目</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'取消审核')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="unAudit">取消审核</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'历次结果')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnCheckHistory">历次结果</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'体检报告')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="report">体检报告</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'总检')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="toSumDoctorCheck">总检</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -141,7 +141,7 @@ |
|
|
|
<script> |
|
|
|
import { mapState, mapActions, mapMutations} from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { arrayExistObj,objCopy } from "../../utlis/proFunc"; |
|
|
|
import { getPagePriv,checkPagePriv, deepCopy, arrayExistObj,objCopy } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; |
|
|
|
import PatientRegisterList from "./PatientRegisterList.vue"; |
|
|
|
@ -166,6 +166,10 @@ export default { |
|
|
|
|
|
|
|
data() { |
|
|
|
return { |
|
|
|
pagePriv:{ |
|
|
|
routeUrlorPageName:'doctorCheck', //当前页面归属路由或归属页面权限名称 |
|
|
|
privs:[] // 页面权限 |
|
|
|
}, |
|
|
|
medicalStartDate:'', //设置体检日期 |
|
|
|
medicalStartDateTemp:'', //设置体检日期 临时体检日期 |
|
|
|
medicalStartDateDatas:[], // 设置体检日期 的人员信息登记信息,按登记日期排序 (用于上一人,下一人) |
|
|
|
@ -241,6 +245,10 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
//获取用户当前页面的权限 |
|
|
|
let userPriv = window.sessionStorage.getItem('userPriv') |
|
|
|
if(userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
|
|
|
|
this.formInitData = Object.assign({},this.formData) |
|
|
|
this.medicalStartDateTemp = new Date() |
|
|
|
}, |
|
|
|
@ -257,6 +265,7 @@ export default { |
|
|
|
methods: { |
|
|
|
...mapActions(["getCustomerOrgGroup"]), |
|
|
|
...mapMutations(['doctorCheckPrBaseInit']), |
|
|
|
checkPagePriv, |
|
|
|
|
|
|
|
prList() { |
|
|
|
// console.log('this.doctorCheck.doctorCheckDialogVisible', this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
|