|
|
|
@ -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"> |
|
|
|
@ -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) { |
|
|
|
@ -359,6 +359,37 @@ export default { |
|
|
|
|
|
|
|
postapi('/api/app/peisreport/getpatientregisterreport', body).then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
|
|
|
|
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.loadOpts.totalCount = res.data.totalCount |
|
|
|
|
|
|
|
@ -366,11 +397,14 @@ export default { |
|
|
|
this.patientRegister.prList = []; |
|
|
|
} |
|
|
|
this.patientRegister.prList = this.patientRegister.prList.concat(res.data.items) |
|
|
|
if (body.skipCount == 0 && this.patientRegister.prList.length == 1) { |
|
|
|
|
|
|
|
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++ |
|
|
|
@ -380,6 +414,7 @@ export default { |
|
|
|
this.dataTransOpts.refresh.register_check.M++ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|