|
|
|
@ -449,6 +449,153 @@ |
|
|
|
<el-button type="primary" @click="choosePatient" style="width:90px;">确定</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 体检人员记录列表 --> |
|
|
|
<el-dialog title="体检人员列表" :visible.sync="registerVisible" width="800" :show-close="false" :close-on-click-modal="false" |
|
|
|
:append-to-body="true"> |
|
|
|
<el-table :data="patientRegisters" border width="800" height="480" highlight-current-row |
|
|
|
@row-click="registerRowClick" size="small"> |
|
|
|
<el-table-column prop="completeFlag" label="体检进度"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ ldddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="guidePrintTimes" label="打印" width="50"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<i class="el-icon-printer" v-if="scope.row.guidePrintTimes > 0" style="font-size: 24px;color: green;"></i> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="isLock" label="锁住"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.isLock == "Y" ? "是" : "否" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerOrgParentName" label="单位" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgParentName : scope.row.customerOrgName }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerOrgName" label="部门" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgName : "" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="patientName" label="姓名" /> |
|
|
|
<el-table-column prop="sexId" label="性别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ ldddw(dict.sex, "id", scope.row.sexId, "displayName") }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="age" label="年龄" /> |
|
|
|
<el-table-column prop="patientRegisterNo" label="条码号" width="150" /> |
|
|
|
<el-table-column prop="patientNo" label="档案号" /> |
|
|
|
<el-table-column prop="medicalTimes" label="体检次数"></el-table-column> |
|
|
|
<el-table-column label="分组/套餐" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId === dict.personOrgId"> |
|
|
|
{{ ldddw(dict.medicalPackage, "id", scope.row.medicalPackageId, "displayName") }} |
|
|
|
</div> |
|
|
|
<div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId !== dict.personOrgId"> |
|
|
|
{{ ldddw(dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="nationId" label="民族"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ ldddw(dict.nation, "nationId", scope.row.nationId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="idNo" label="身份证" width="150" /> |
|
|
|
<el-table-column prop="birthDate" label="出生日期" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.birthDate"> |
|
|
|
{{ lmoment(scope.row.birthDate, "yyyy-MM-DD") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="email" label="邮箱" width="180" /> |
|
|
|
<el-table-column prop="mobileTelephone" label="手机" width="100" /> |
|
|
|
<el-table-column prop="telephone" label="电话" width="100" /> |
|
|
|
<el-table-column prop="address" label="地址" width="300" /> |
|
|
|
<el-table-column prop="medicalCardNo" label="体检卡号" /> |
|
|
|
<el-table-column prop="jobCardNo" label="工卡号" /> |
|
|
|
<el-table-column prop="maritalStatusId" label="婚姻状况"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ ldddw(dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="medicalTypeId" label="体检类别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.medicalTypeId !== dict.personOrgId"> |
|
|
|
{{ ldddw(dict.medicalType, "id", scope.row.medicalTypeId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="personnelTypeId" label="人员类别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.personnelTypeId !== dict.personOrgId"> |
|
|
|
{{ ldddw(dict.personnelType, "id", scope.row.personnelTypeId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="jobPost" label="职务" /> |
|
|
|
<el-table-column prop="jobTitle" label="职称" /> |
|
|
|
<el-table-column prop="salesman" label="介绍人" /> |
|
|
|
<el-table-column prop="isVip" label="是否VIP"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.isVip == "Y" ? "是" : "否" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="creatorName" label="登记人" /> |
|
|
|
<el-table-column prop="creationTime" label="登记日期" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ lmoment(scope.row.creationTime, "yyyy-MM-DD") }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="isUpload" label="是否上传"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.isUpload == "Y" ? "是" : "否" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<!-- |
|
|
|
"sexHormoneTermId": "00000000-0000-0000-0000-000000000000", |
|
|
|
"interposeMeasure": null, |
|
|
|
"medicalConclusionId": "00000000-0000-0000-0000-000000000000", |
|
|
|
"reportPrintTimes": 0, |
|
|
|
"isMedicalStart": "N", |
|
|
|
"medicalStartDate": "6/28/2023", |
|
|
|
"isRecoverGuide": "N", |
|
|
|
"summaryDate": "", |
|
|
|
"summaryDoctor": null, |
|
|
|
"isAudit": "N", |
|
|
|
"auditDoctor": null, |
|
|
|
"auditDate": "", |
|
|
|
"isNameHide": "N", |
|
|
|
"isPhoneFollow": "N", |
|
|
|
"thirdInfo": null, |
|
|
|
"guidePrintTimes": null, |
|
|
|
"remark": null, |
|
|
|
"organizationUnitId": "00000000-0000-0000-0000-000000000000", |
|
|
|
"customerOrgRegisterId": "00000000-0000-0000-0000-000000000000", |
|
|
|
"lastModifierName": "", |
|
|
|
"lastModificationTime": null, |
|
|
|
"lastModifierId": null, |
|
|
|
"creatorId": null, |
|
|
|
"id": "3a0c196d-a6d0-37fe-5c32-4806bdc4530f" |
|
|
|
--> |
|
|
|
</el-table> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="registerVisible = false" style="width:90px;">取消</el-button> |
|
|
|
<el-button type="primary" @click="chooseRegister" style="width:90px;">确定</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 拍照(openCamera) 网页模式,已废弃 |
|
|
|
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="600" |
|
|
|
:close-on-click-modal="false" :append-to-body="true"> |
|
|
|
@ -579,6 +726,10 @@ export default { |
|
|
|
patientList: [], //人员列表(用于判断人员多次体检) |
|
|
|
patientChoosed: {}, //查重选中的人员 |
|
|
|
|
|
|
|
registerVisible:false, |
|
|
|
patientRegisters:[], |
|
|
|
registerChoosed:{}, |
|
|
|
|
|
|
|
dialogCamera: false, //拍照组件 |
|
|
|
}; |
|
|
|
}, |
|
|
|
@ -606,35 +757,79 @@ export default { |
|
|
|
|
|
|
|
//快速查找个人数据 |
|
|
|
quickQuery(type) { |
|
|
|
let url = '/api/app/patient-register/patient-register-or-patient?SType=' |
|
|
|
let url1 = '/api/app/patientregister/getpatientregisterorpatient' |
|
|
|
let body={} |
|
|
|
let url2 = '/api/app/patientregister/getlistinfilter' |
|
|
|
|
|
|
|
switch (type) { |
|
|
|
case 'patientNo': |
|
|
|
url += `2&PatientNo=${this.query.patientNo}` |
|
|
|
if(!this.query.patientNo) return; |
|
|
|
body = { |
|
|
|
sType:2, |
|
|
|
patientNo:this.query.patientNo |
|
|
|
} |
|
|
|
this.getpatientregisterorpatient(url1,body) |
|
|
|
break; |
|
|
|
case 'patientRegisterNo': |
|
|
|
url += `1&PatientRegisterNo=${this.query.patientRegisterNo}` |
|
|
|
case 'patientRegisterNo': |
|
|
|
if(!this.query.patientRegisterNo) return; |
|
|
|
body = { |
|
|
|
sType:1, |
|
|
|
patientRegisterNo:this.query.patientRegisterNo |
|
|
|
} |
|
|
|
this.getpatientregisterorpatient(url1,body) |
|
|
|
break; |
|
|
|
case 'tel': |
|
|
|
url += `3&Phone=${this.query.tel}` |
|
|
|
if(!this.query.tel) return; |
|
|
|
body = { |
|
|
|
phone:this.query.tel |
|
|
|
} |
|
|
|
this.getlistinfilter(url2,body); |
|
|
|
break; |
|
|
|
case 'patientName': |
|
|
|
url += `4&PatientName=${this.query.patientName}` |
|
|
|
if(!this.query.patientName) return; |
|
|
|
body = { |
|
|
|
patientName:this.query.patientName |
|
|
|
} |
|
|
|
this.getlistinfilter(url2,body); |
|
|
|
break; |
|
|
|
default: |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
console.log(url) |
|
|
|
getapi(url) |
|
|
|
}, |
|
|
|
|
|
|
|
//按流水号或档案号查客户信息 |
|
|
|
getpatientregisterorpatient(url,body){ |
|
|
|
postapi(url,body) |
|
|
|
.then((res) => { |
|
|
|
console.log('按条码号查个人数据', res) |
|
|
|
console.log('getpatientregisterorpatient', res) |
|
|
|
if (res.code == 1) { |
|
|
|
objCopy(res.data, this.form) |
|
|
|
this.patientRegister.patientRegisterId = res.data.id |
|
|
|
this.patientRegister.photo = res.data.photo |
|
|
|
}else if(res.code == 0){ |
|
|
|
this.$message.info("未找到相关信息") |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//按手机号或姓名查找客户信息 |
|
|
|
getlistinfilter(url,body){ |
|
|
|
postapi(url, body) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
if(res.data.items.length == 0){ |
|
|
|
this.$message.info("未找到相关信息") |
|
|
|
}else if(res.data.items.length == 1){ |
|
|
|
objCopy(res.data.items[0], this.form) |
|
|
|
this.patientRegister.patientRegisterId = res.data.items[0].id |
|
|
|
this.patientRegister.photo = res.data.items[0].photo |
|
|
|
}else{ |
|
|
|
//显示列表,供选择 |
|
|
|
this.patientRegisters = res.data.items |
|
|
|
this.registerVisible = true |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -784,6 +979,24 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
registerRowClick(row){ |
|
|
|
this.registerChoosed = row; |
|
|
|
}, |
|
|
|
|
|
|
|
chooseRegister(){ |
|
|
|
if (!this.registerChoosed) { |
|
|
|
alert("请选中人员档案信息"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
objCopy(this.registerChoosed, this.form) |
|
|
|
this.patientRegister.patientRegisterId = this.registerChoosed.id |
|
|
|
this.patientRegister.photo = this.registerChoosed.photo |
|
|
|
this.registerVisible = false |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ldddw(arrayData, key, value, display) { |
|
|
|
return dddw(arrayData, key, value, display); |
|
|
|
}, |
|
|
|
|