|
|
|
@ -2,7 +2,7 @@ |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-table :data="patientRegister.prList" border ref="info" id="info" |
|
|
|
:height="(window.pageHeight < 600) ? 240 : (window.pageHeight - 360)" highlight-current-row @row-click="rowClick" |
|
|
|
: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="体检进度"> |
|
|
|
@ -179,7 +179,7 @@ export default { |
|
|
|
loadOpts: { |
|
|
|
totalCount: 0, |
|
|
|
skipCount: 0, |
|
|
|
maxResultCount: 100, |
|
|
|
maxResultCount: 1000, |
|
|
|
}, |
|
|
|
loadOptsInit: {}, |
|
|
|
}; |
|
|
|
@ -208,15 +208,15 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//获取单位分组 /api/app/customer-org-group/in-customer-org-id/3a0c0444-d7a0-871f-4074-19faf1655caf |
|
|
|
getCustomerOrgGroup(customerOrgld) { |
|
|
|
getapi(`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}`) |
|
|
|
.then((res) => { |
|
|
|
console.log("getCustomerOrgGroup", res.data); |
|
|
|
if (res.code == 1) { |
|
|
|
this.patientRegister.customerOrgGroup = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// getCustomerOrgGroup(customerOrgld) { |
|
|
|
// getapi(`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}`) |
|
|
|
// .then((res) => { |
|
|
|
// console.log("getCustomerOrgGroup", res.data); |
|
|
|
// if (res.code == 1) { |
|
|
|
// this.patientRegister.customerOrgGroup = res.data; |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
|
|
|
|
//点击体检次数行 |
|
|
|
rowClick(row) { |
|
|
|
@ -232,7 +232,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async load() { |
|
|
|
await this.Query() |
|
|
|
await this.queryEvent() |
|
|
|
}, |
|
|
|
|
|
|
|
//滚动加载数据 |
|
|
|
@ -245,7 +245,7 @@ export default { |
|
|
|
if (this.dom.scrollTop + this.dom.clientHeight + 20 > this.dom.scrollHeight && !this.lazyLoading) { |
|
|
|
// 获取到的不是全部数据 当滚动到底部 |
|
|
|
console.log('scrollTop', this.dom.scrollTop, 'clientHeight', this.dom.clientHeight, 'scrollHeight', this.dom.scrollHeight); |
|
|
|
if ((Number(this.loadOpts.skipCount) + 1) * Number(this.loadOpts.maxResultCount) >= Number(this.loadOpts.totalCount)) { |
|
|
|
if (Number(this.loadOpts.skipCount) * Number(this.loadOpts.maxResultCount) >= Number(this.loadOpts.totalCount)) { |
|
|
|
this.lazyLoading = false |
|
|
|
} else { |
|
|
|
this.lazyLoading = true |
|
|
|
@ -264,10 +264,10 @@ export default { |
|
|
|
//查询 |
|
|
|
async btnQuery() { |
|
|
|
this.loadOpts.skipCount = 0 |
|
|
|
this.Query() |
|
|
|
this.queryEvent() |
|
|
|
}, |
|
|
|
|
|
|
|
async Query() { |
|
|
|
async queryEvent() { |
|
|
|
if (this.fromType == 'report') { |
|
|
|
this.reportQuery() |
|
|
|
return |
|
|
|
@ -322,6 +322,7 @@ export default { |
|
|
|
|
|
|
|
// 报告查询 |
|
|
|
reportQuery() { |
|
|
|
console.log('reportQuery this.loadOpts',this.loadOpts) |
|
|
|
if (this.loadOpts.skipCount != 0 && this.loadOpts.skipCount * this.loadOpts.maxResultCount >= this.loadOpts.totalCount) { |
|
|
|
this.$message.info({ showClose: true, message: "数据已全部拉取!" }) |
|
|
|
return |
|
|
|
|