Browse Source

1000

master
pengjun 2 years ago
parent
commit
033712f400
  1. 31
      src/components/report/PatientRegisterListNobtn.vue
  2. 22
      src/views/report/report.vue

31
src/components/report/PatientRegisterListNobtn.vue

@ -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

22
src/views/report/report.vue

@ -150,11 +150,11 @@ export default {
});
//
getapi("/api/app/customer-org-group").then((res) => {
if (res.code != -1) {
this.dict.customerOrgGroupAll = res.data.items;
}
});
// getapi("/api/app/customer-org-group").then((res) => {
// if (res.code != -1) {
// this.dict.customerOrgGroupAll = res.data.items;
// }
// });
//
getapi("/api/app/pay-mode").then((res) => {
@ -184,12 +184,12 @@ export default {
//
watch: {
//
"patientRegister.query.times"(newVal, oldVal) {
if (newVal != oldVal) {
//alert('')
this.query();
}
},
// "patientRegister.query.times"(newVal, oldVal) {
// if (newVal != oldVal) {
// //alert('')
// this.query();
// }
// },
},
};
</script>

Loading…
Cancel
Save