|
|
|
@ -2,8 +2,8 @@ |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-table :data="patientRegister.prList" border ref="info" id="info" |
|
|
|
:height="(window.pageHeight < 600) ? 230 : (window.pageHeight - 370)" highlight-current-row @row-click="rowClick" |
|
|
|
size="small" @selection-change="handleSelectionChange"> |
|
|
|
:height="(window.pageHeight < 600) ? 230 : (window.pageHeight - 370)" highlight-current-row |
|
|
|
@row-click="rowClick" size="small" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column type="selection" width="40" align="center" /> |
|
|
|
<el-table-column prop="completeFlag" label="体检进度" sortable> |
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -27,21 +27,21 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="font-family: 'Microsoft YaHei';">{{ scope.row.isUploadAppoint == "Y" ? "√" : "" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="isUpload" label="报告上传" align="center" sortable> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="font-family: 'Microsoft YaHei';">{{ scope.row.isUpload == "Y" ? "√" : "" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerOrgName" label="单位" width="180" sortable/> |
|
|
|
<el-table-column prop="departmentName" label="部门" width="180" sortable/> |
|
|
|
<el-table-column prop="patientName" label="姓名" align="center" sortable/> |
|
|
|
<el-table-column prop="mobileTelephone" label="手机" width="130" sortable/> |
|
|
|
<el-table-column prop="sexName" label="性别" align="center" sortable/> |
|
|
|
<el-table-column prop="age" label="年龄" align="center" sortable/> |
|
|
|
<el-table-column prop="patientRegisterNo" label="条码号" width="150" align="center" sortable/> |
|
|
|
<el-table-column prop="patientNo" label="档案号" align="center" sortable/> |
|
|
|
<el-table-column prop="medicalTimes" label="体检次数" align="center" sortable/> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerOrgName" label="单位" width="180" sortable /> |
|
|
|
<el-table-column prop="departmentName" label="部门" width="180" sortable /> |
|
|
|
<el-table-column prop="patientName" label="姓名" align="center" sortable /> |
|
|
|
<el-table-column prop="mobileTelephone" label="手机" width="130" sortable /> |
|
|
|
<el-table-column prop="sexName" label="性别" align="center" sortable /> |
|
|
|
<el-table-column prop="age" label="年龄" align="center" sortable /> |
|
|
|
<el-table-column prop="patientRegisterNo" label="条码号" width="150" align="center" sortable /> |
|
|
|
<el-table-column prop="patientNo" label="档案号" align="center" sortable /> |
|
|
|
<el-table-column prop="medicalTimes" label="体检次数" align="center" sortable /> |
|
|
|
<el-table-column label="分组/套餐" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.medicalPackageName"> |
|
|
|
@ -59,7 +59,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="idNo" label="身份证" width="150" align="center" sortable/> |
|
|
|
<el-table-column prop="idNo" label="身份证" width="150" align="center" sortable /> |
|
|
|
<el-table-column prop="birthDate" label="出生日期" width="100" align="center" sortable> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.birthDate"> |
|
|
|
@ -67,32 +67,32 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="email" label="邮箱" width="180" sortable/> |
|
|
|
<el-table-column prop="telephone" label="电话" width="130" sortable/> |
|
|
|
<el-table-column prop="address" label="地址" width="400" sortable/> |
|
|
|
<el-table-column prop="medicalCardNo" label="体检卡号" sortable/> |
|
|
|
<el-table-column prop="jobCardNo" label="工卡号" sortable/> |
|
|
|
<el-table-column prop="maritalStatusName" label="婚姻状况" align="center" sortable/> |
|
|
|
<el-table-column prop="medicalTypeName" label="体检类别" min-width="100" align="center" sortable/> |
|
|
|
<el-table-column prop="personnelTypeName" label="人员类别" min-width="100" align="center" sortable/> |
|
|
|
<el-table-column prop="jobPost" label="职务" sortable/> |
|
|
|
<el-table-column prop="jobTitle" label="职称" sortable/> |
|
|
|
<el-table-column prop="salesman" label="介绍人" sortable/> |
|
|
|
<el-table-column prop="email" label="邮箱" width="180" sortable /> |
|
|
|
<el-table-column prop="telephone" label="电话" width="130" sortable /> |
|
|
|
<el-table-column prop="address" label="地址" width="400" sortable /> |
|
|
|
<el-table-column prop="medicalCardNo" label="体检卡号" sortable /> |
|
|
|
<el-table-column prop="jobCardNo" label="工卡号" sortable /> |
|
|
|
<el-table-column prop="maritalStatusName" label="婚姻状况" align="center" sortable /> |
|
|
|
<el-table-column prop="medicalTypeName" label="体检类别" min-width="100" align="center" sortable /> |
|
|
|
<el-table-column prop="personnelTypeName" label="人员类别" min-width="100" align="center" sortable /> |
|
|
|
<el-table-column prop="jobPost" label="职务" sortable /> |
|
|
|
<el-table-column prop="jobTitle" label="职称" sortable /> |
|
|
|
<el-table-column prop="salesman" label="介绍人" sortable /> |
|
|
|
<el-table-column prop="isVip" label="VIP" width="50" align="center" sortable> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.isVip == "Y" ? "是" : "否" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="summaryDoctorName" label="总检人" align="center" sortable/> |
|
|
|
<el-table-column prop="summaryDate" label="总检时间" width="150" align="center" sortable/> |
|
|
|
<el-table-column prop="registerName" label="登记人" align="center" sortable/> |
|
|
|
<el-table-column prop="registerDate" label="登记时间" width="150" align="center" sortable/> |
|
|
|
<el-table-column prop="summaryDoctorName" label="总检人" align="center" sortable /> |
|
|
|
<el-table-column prop="summaryDate" label="总检时间" width="150" align="center" sortable /> |
|
|
|
<el-table-column prop="registerName" label="登记人" align="center" sortable /> |
|
|
|
<el-table-column prop="registerDate" label="登记时间" width="150" align="center" sortable /> |
|
|
|
<el-table-column prop="isLock" label="锁住" align="center" width="60" sortable> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.isLock == "Y" ? "是" : "否" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
"sexHormoneTermId": "00000000-0000-0000-0000-000000000000", |
|
|
|
"interposeMeasure": null, |
|
|
|
@ -127,7 +127,7 @@ |
|
|
|
条。</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
@ -150,7 +150,7 @@ export default { |
|
|
|
props: ['fromType'], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
|
|
|
|
|
|
|
|
dialogVisible: false, |
|
|
|
dialogCamera: false, |
|
|
|
dialogGuide: false, |
|
|
|
@ -265,7 +265,7 @@ export default { |
|
|
|
this.patientRegister.prList = []; |
|
|
|
let body = {} |
|
|
|
|
|
|
|
console.log(`this.patientRegister.query`, this.patientRegister.query) |
|
|
|
// console.log(`this.patientRegister.query`, this.patientRegister.query) |
|
|
|
|
|
|
|
body = deepCopy(this.patientRegister.query) |
|
|
|
if (this.patientRegister.query.customerOrgFlag) { |
|
|
|
@ -276,7 +276,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex |
|
|
|
if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex |
|
|
|
|
|
|
|
//StartDate EndDate |
|
|
|
if (this.patientRegister.query.dateRange) { |
|
|
|
@ -284,7 +284,7 @@ export default { |
|
|
|
body.endDate = moment(new Date(this.patientRegister.query.dateRange[1])).format("yyyy-MM-DD") |
|
|
|
} |
|
|
|
|
|
|
|
console.log('body',body) |
|
|
|
console.log('body', body) |
|
|
|
|
|
|
|
if (this.patientRegister.query.idCardNo) body = { idNo: this.patientRegister.query.idCardNo } |
|
|
|
|
|
|
|
@ -359,25 +359,60 @@ export default { |
|
|
|
|
|
|
|
postapi('/api/app/peisreport/getpatientregisterreport', body).then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
// 刷新最大记录数 |
|
|
|
this.loadOpts.totalCount = res.data.totalCount |
|
|
|
|
|
|
|
if (body.skipCount == 0) { //查询 |
|
|
|
this.patientRegister.prList = []; |
|
|
|
} |
|
|
|
this.patientRegister.prList = this.patientRegister.prList.concat(res.data.items) |
|
|
|
if (body.skipCount == 0 && this.patientRegister.prList.length == 1) { |
|
|
|
this.rowClick(this.patientRegister.prList[0]) |
|
|
|
this.$refs['info'].setCurrentRow(this.patientRegister.prList[0]); |
|
|
|
if (this.patientRegister.query.isSeries == 'Y' && this.patientRegister.query.patientRegisterNo) { |
|
|
|
if (this.dataTransOpts.tableM.patient_register.length == 0) { |
|
|
|
this.patientRegister.prList = res.data.items |
|
|
|
// this.dataTransOpts.tableM.patient_register = res.data.items |
|
|
|
} else { |
|
|
|
// console.log('isSeries',this.patientRegister.prList,res.data.items[0].patientRegisterId) |
|
|
|
// console.log('isSeries',arrayExistObj(this.patientRegister.prList,'patientRegisterId',res.data.items[0].patientRegisterId)) |
|
|
|
if (res.data.items.length > 0 && arrayExistObj(this.patientRegister.prList, 'patientRegisterId', res.data.items[0].patientRegisterId) == -1) { |
|
|
|
this.patientRegister.prList = this.patientRegister.prList.concat(res.data.items) |
|
|
|
// this.dataTransOpts.tableM.patient_register.push(res.data.items[0]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.patientRegister.prList.length > 0 && res.data.items.length > 0) { |
|
|
|
let lfind = arrayExistObj(this.patientRegister.prList, 'patientRegisterId', res.data.items[0].patientRegisterId) |
|
|
|
if (lfind > -1) { |
|
|
|
// this.$refs['info'].setCurrentRow(); |
|
|
|
this.$refs['info'].setCurrentRow(this.patientRegister.prList[lfind]); |
|
|
|
this.rowClick(this.patientRegister.prList[lfind]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 选中 |
|
|
|
this.$nextTick(function () { |
|
|
|
this.patientRegister.prList.forEach(row => { |
|
|
|
if(arrayExistObj(this.dataTransOpts.tableM.patient_register, 'patientRegisterId', row.patientRegisterId) == -1) this.$refs['info'].toggleRowSelection(row) |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$refs['info'].setCurrentRow(); |
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '' } |
|
|
|
// 刷新个人资料 |
|
|
|
this.dataTransOpts.refresh.patient_register.S++ |
|
|
|
// 刷新总检状态 |
|
|
|
this.dataTransOpts.refresh.sumDoctor.M++ |
|
|
|
// 刷新检查项目 |
|
|
|
this.dataTransOpts.refresh.register_check.M++ |
|
|
|
// 刷新最大记录数 |
|
|
|
this.loadOpts.totalCount = res.data.totalCount |
|
|
|
|
|
|
|
if (body.skipCount == 0) { //查询 |
|
|
|
this.patientRegister.prList = []; |
|
|
|
} |
|
|
|
this.patientRegister.prList = this.patientRegister.prList.concat(res.data.items) |
|
|
|
|
|
|
|
if (body.skipCount == 0 && this.patientRegister.prList.length > 0) { |
|
|
|
this.rowClick(this.patientRegister.prList[0]) |
|
|
|
this.$refs['info'].setCurrentRow(); |
|
|
|
this.$refs['info'].setCurrentRow(this.patientRegister.prList[0]); |
|
|
|
} else { |
|
|
|
this.$refs['info'].setCurrentRow(); |
|
|
|
|
|
|
|
this.dataTransOpts.tableS.patient_register = { id: '' } |
|
|
|
// 刷新个人资料 |
|
|
|
this.dataTransOpts.refresh.patient_register.S++ |
|
|
|
// 刷新总检状态 |
|
|
|
this.dataTransOpts.refresh.sumDoctor.M++ |
|
|
|
// 刷新检查项目 |
|
|
|
this.dataTransOpts.refresh.register_check.M++ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|