|
|
|
@ -1,42 +1,60 @@ |
|
|
|
<template> |
|
|
|
<div style="margin-left: 10px;"> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="prList">人员列表</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="dialogVisibleSetStartDate = true">体检日期</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnAddPr">增加人员</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" >编辑人员</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" >删除人员</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" >上一人</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" >下一人</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="save">保存结果</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="edit">修改结果</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="del">删除结果</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="delItem">删除项目</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass">历次结果</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass">体检报告</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass">生成小结</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="toSumDoctorCheck">总检</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="audit">审核</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="unAudit">取消审核</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass">排队</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" class="btnClass" @click="addSummary">新增小结</el-button> |
|
|
|
</div> |
|
|
|
<!-- 体检人员列表 |
|
|
|
@ -45,29 +63,129 @@ |
|
|
|
</el-dialog> |
|
|
|
--> |
|
|
|
<el-drawer title="体检人员列表" :visible.sync="doctorCheck.doctorCheckDialogVisible" direction="rtl" |
|
|
|
:wrapperClosable="false"> |
|
|
|
:wrapperClosable="false" style="z-index:30001;"> |
|
|
|
<PatientRegisterList win="doctorCheck" /> |
|
|
|
</el-drawer> |
|
|
|
|
|
|
|
<!-- 体检人员登记 --> |
|
|
|
<el-dialog style="z-index:30001;" |
|
|
|
:title="patientRegister.patientRegisterRd.id ? '体检人员--编辑' : '体检人员--新增'" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
:close-on-click-modal="false" |
|
|
|
fullscreen @close="closeDialogPR" |
|
|
|
> |
|
|
|
<PatientRegisterEdit style="z-index:30001;" |
|
|
|
:formInitData="formData" |
|
|
|
:editTimes="editTimes" |
|
|
|
/> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
title="设置体检日期" style="z-index:30002;" |
|
|
|
:visible.sync="dialogVisibleSetStartDate" |
|
|
|
:close-on-click-modal="false" :show-close="false" |
|
|
|
width="300px" |
|
|
|
> |
|
|
|
<div style="padding: 0 20px;"> |
|
|
|
<span style="margin-right:5px ;">体检日期</span> |
|
|
|
<el-date-picker v-model="medicalStartDateTemp" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="出生日期" |
|
|
|
prefix-icon="" size="small" style="width:150px;"/> |
|
|
|
</div> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogVisibleSetStartDate = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="btnSetStartDate">确 定</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import { arrayExistObj,objCopy } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; |
|
|
|
import PatientRegisterList from "./PatientRegisterList.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
PatientRegisterEdit, |
|
|
|
PatientRegisterList, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
|
|
|
|
medicalStartDate:'', //设置体检日期 |
|
|
|
medicalStartDateTemp:'', //设置体检日期 临时体检日期 |
|
|
|
medicalStartDateDatas:[], // 设置体检日期 的人员信息登记信息,按登记日期排序 |
|
|
|
|
|
|
|
dialogVisibleSetStartDate:false, //设置体检日期窗口 |
|
|
|
editTimes:0, |
|
|
|
nextTodialogVisible:false, //设置完体检日期是否显示 体检人员登记窗口 |
|
|
|
dialogVisible:false, //体检人员登记窗口 |
|
|
|
formData:{ |
|
|
|
registerManType:'doctor', //登记人员类型,客服:customer 医生:doctor 支持在医生诊台处理登记人员 |
|
|
|
id: "", //id |
|
|
|
patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000... |
|
|
|
patientNo: "", //档案号 |
|
|
|
customerOrgId: null, //单位编号 |
|
|
|
customerOrgGroupId: null, //分组 |
|
|
|
medicalPackageId: null, //套餐 |
|
|
|
patientName: "", //姓名 |
|
|
|
birthDate: null, //日期型 |
|
|
|
sexId: "U", //性别 默认未知U |
|
|
|
age: null, //年龄 |
|
|
|
jobCardNo: "", //工卡号 |
|
|
|
medicalCardNo: "", //体检卡号 |
|
|
|
maritalStatusId: "9", //婚姻状况 默认未知 |
|
|
|
medicalTypeId: null, //体检类别 |
|
|
|
personnelTypeId: null, //人员类别 |
|
|
|
jobPost: "", //职务 |
|
|
|
jobTitle: "", //职称 |
|
|
|
salesman: "", //介绍人 |
|
|
|
sexHormoneTermId: null, //性激素期限 |
|
|
|
isNameHide: "N", //隐藏姓名 |
|
|
|
isPhoneFollow: "N", //电话随访 |
|
|
|
isVip: "N", //vip客户 |
|
|
|
remark: "", // |
|
|
|
isLock: "N", //是否锁住 |
|
|
|
completeFlag: "1", //完成标志 0:预登记,1:未检,2:部份已检,3:已总检 【创建编辑时不操作】 |
|
|
|
isMedicalStart: "N", //体检开始标志 【创建编辑时不操作】 |
|
|
|
patientRegisterNo: "", //条码号 【创建编辑时不操作】 |
|
|
|
medicalTimes: 1, //条码号 【创建编辑时不操作】 |
|
|
|
organizationUnitId: null, //体检中心 |
|
|
|
address: "", //地址 |
|
|
|
email: "", //email |
|
|
|
idNo: "", //身份证号 |
|
|
|
telephone: "", //电话 |
|
|
|
mobileTelephone: "", //手机号 |
|
|
|
nationId: null, //民族编号 |
|
|
|
birthPlaceId: null, //籍惯(出生地) |
|
|
|
postalCode: "", //邮编 |
|
|
|
creatorId: null, |
|
|
|
creationTime: "", |
|
|
|
lastModificationTime: "", |
|
|
|
lastModifierId: null, |
|
|
|
isVipBox: false, //vip客户 |
|
|
|
isNameHideBox: false, //隐藏姓名 |
|
|
|
isPhoneFollowBox: false, //电话随访 |
|
|
|
isLockBox: false, //是否锁住 |
|
|
|
customerOrgRegisterId: null, |
|
|
|
isMaxMedicalTimes: 'N', |
|
|
|
}, //单位 记录 目前新增与更新是一致 |
|
|
|
formInitData:{}, |
|
|
|
medicalStartDateLoadOpts:{ //按体检日期 查询参数 |
|
|
|
totalCount:0, |
|
|
|
skipCount:0, |
|
|
|
maxResultCount:50000, |
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
created() { }, |
|
|
|
created() { |
|
|
|
this.formInitData = Object.assign({},this.formData) |
|
|
|
this.medicalStartDateTemp = new Date() |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
@ -82,9 +200,73 @@ export default { |
|
|
|
...mapActions(["getCustomerOrgGroup"]), |
|
|
|
|
|
|
|
prList() { |
|
|
|
console.log('this.doctorCheck.doctorCheckDialogVisible', this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
// console.log('this.doctorCheck.doctorCheckDialogVisible', this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
this.doctorCheck.doctorCheckDialogVisible = true |
|
|
|
console.log('this.doctorCheck.doctorCheckDialogVisible2', this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
// console.log('this.doctorCheck.doctorCheckDialogVisible2', this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//设置体检日期 |
|
|
|
btnSetStartDate(){ |
|
|
|
this.medicalStartDate = this.medicalStartDateTemp |
|
|
|
this.dialogVisibleSetStartDate = false |
|
|
|
if(this.nextTodialogVisible) this.btnAddPr() |
|
|
|
}, |
|
|
|
|
|
|
|
//人员登记 |
|
|
|
btnAddPr(){ |
|
|
|
debugger |
|
|
|
if(this.medicalStartDate){ |
|
|
|
this.formData = Object.assign({},this.formInitData,{medicalStartDate:this.medicalStartDate}) |
|
|
|
this.dialogVisible = true |
|
|
|
setTimeout(() =>{ |
|
|
|
this.editTimes++ |
|
|
|
},100) |
|
|
|
}else{ |
|
|
|
this.nextTodialogVisible = true |
|
|
|
this.dialogVisibleSetStartDate = true |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//关闭登记窗口触发 |
|
|
|
closeDialogPR(){ |
|
|
|
this.patientRegister.prList.forEach(e =>{ |
|
|
|
e.choosed = false |
|
|
|
}) |
|
|
|
let body = Object.assign({patientRegisterNo:this.patientRegister.patientRegisterRd.patientRegisterNo},this.loadOpts) |
|
|
|
postapi("/api/app/patientregister/getlistinfilter", body).then(res =>{ |
|
|
|
console.log('closeDialogPR',res.data.items) |
|
|
|
if(res.code != -1 && res.data.items.length > 0){ |
|
|
|
let currentRow = Object.assign({},res.data.items[0]) |
|
|
|
let lfind = arrayExistObj(this.patientRegister.prList,'id',currentRow.id) |
|
|
|
if(lfind > -1){ |
|
|
|
currentRow = this.patientRegister.prList[lfind] |
|
|
|
objCopy(Object.assign({},res.data.items[0]),currentRow) |
|
|
|
this.patientRegister.prList[lfind].choosed = true |
|
|
|
}else{ |
|
|
|
lfind = this.patientRegister.prList.length |
|
|
|
currentRow.choosed = true |
|
|
|
currentRow.index = lfind |
|
|
|
this.patientRegister.prList.push(currentRow) |
|
|
|
} |
|
|
|
|
|
|
|
if(lfind > -1){ |
|
|
|
setTimeout(() => { |
|
|
|
this.$refs['info'].setCurrentRow(currentRow) |
|
|
|
this.setForm(currentRow) |
|
|
|
// this.patientRegister.query.customerOrgParentId = this.patientRegister.prList[lfind].customerOrgParentId; |
|
|
|
this.patientRegister.customerOrgGroupChange = 0; //控制体检列表记录切换时,0 无需触发更换分组操作 |
|
|
|
this.patientRegister.medicalPackageChange = 0; //控制体检列表记录切换时,0 无需触发更换套餐操作 |
|
|
|
// this.getCustomerOrgGroup(this.patientRegister.prList[lfind].customerOrgParentId); |
|
|
|
this.dict.asbItem = [...this.dict.asbItemAll]; |
|
|
|
this.getPatientRegisterAbs(currentRow.id); |
|
|
|
|
|
|
|
}, 100) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//操作判断 |
|
|
|
@ -382,12 +564,11 @@ export default { |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
@import '../../assets/css/global_button.css'; |
|
|
|
.listBtn { |
|
|
|
margin-top: 5px; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
.btnClass { |
|
|
|
margin-top: 1px; |
|
|
|
width: 100px; |
|
|
|
height: 26px; |
|
|
|
padding: 5px 5px; /*原始 默认值 500 */ |
|
|
|
} |
|
|
|
</style> |