diff --git a/src/components/doctorCheck/PatientRegisterList.vue b/src/components/doctorCheck/PatientRegisterList.vue index 7bfade1..59e821a 100644 --- a/src/components/doctorCheck/PatientRegisterList.vue +++ b/src/components/doctorCheck/PatientRegisterList.vue @@ -43,9 +43,9 @@ style="width:140px;text-align: left;" multiple collapse-tags> - + ref="quickAsbOCX" style="width:200px;text-align: left;margin-left: 2px;" multiple collapse-tags> @@ -178,6 +178,12 @@ 条。 + + + + + + 0) tableH = tableH - 105 + return tableH }, }, methods: { @@ -500,7 +510,7 @@ export default { if (this.local.query.sex) body.sexId = this.local.query.sex if (this.local.query.isAudit) body.isAudit = this.local.query.isAudit if (this.local.query.completeFlag) body.completeFlag = this.local.query.completeFlag - if (this.local.query.checkAsb) body.asbitems = [this.local.query.checkAsb] + if (Array.isArray(this.local.query.checkAsbs) && this.local.query.checkAsbs.length > 0) body.asbitems = this.local.query.checkAsbs if (this.local.query.haveImage) body.isPicture = 'Y' if (this.local.query.checkCompleteFlag) body.asbitemCompleteFlag = this.local.query.checkCompleteFlag if (this.local.query.isAuditCheck) body.asbitemIsAudit = this.local.query.isAuditCheck @@ -541,9 +551,12 @@ export default { // 刷新最大记录数 this.loadOpts.totalCount = res.data.totalCount - if (body.skipCount == 0) this.dataList = []; + if (body.skipCount == 0){ + this.dataList = [] + this.checkStatistics = [] + } this.dataList = this.dataList.concat(res.data.items) - + this.checkStatistics = res.data.checkStatistics||[] } }) // .finally(() =>{ diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index a3b1bd4..270c2ab 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -1937,12 +1937,13 @@ export default { this.patientRegister.query.isSeries, this.patientRegister.query.patientRegisterNo ); - if ( - !( - this.patientRegister.query.isSeries == "Y" && - this.patientRegister.query.patientRegisterNo - ) - ) { + if (this.patientRegister.query.isSeries == "Y" && this.patientRegister.query.patientRegisterNo){ + // 如果已经存在列表中,则不在添加 + for (let index = curLoad.length - 1; index > -1; index--) { + const e = curLoad[index]; + if(arrayExistObj(this.tableData,'id',e.id) > -1) curLoad.splice(index,1) + } + }else{ if (body.skipCount == 0) { //查询 this.tableData = []; diff --git a/src/components/report/PatientRegisterListNobtn.vue b/src/components/report/PatientRegisterListNobtn.vue index 2cf227a..510efab 100644 --- a/src/components/report/PatientRegisterListNobtn.vue +++ b/src/components/report/PatientRegisterListNobtn.vue @@ -528,17 +528,12 @@ export default { postapi('/api/app/peisreport/getpatientregisterreport', body).then(res => { if (res.code > -1) { this.lazyLoading = false - if (this.patientRegister.query.isSeries == 'Y' && this.patientRegister.query.patientRegisterNo) { - if (this.dataTransOpts.tableM.patient_register.length == 0) { - this.patientRegister.prList = this.prListTrans(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(this.prListTrans(res.data.items)) - // this.dataTransOpts.tableM.patient_register.push(res.data.items[0]) - } + // 连续扫码 + // console.log('this.patientRegister.query',this.patientRegister.query) + if (this.patientRegister.query.isSeries == 'Y' && this.patientRegister.query.patientRegisterNo ) { + + if (res.data.items.length > 0 && arrayExistObj(this.patientRegister.prList, 'patientRegisterId', res.data.items[0].patientRegisterId) == -1) { + this.patientRegister.prList = this.patientRegister.prList.concat(this.prListTrans(res.data.items)) } if (this.patientRegister.prList.length > 0 && res.data.items.length > 0) { @@ -550,12 +545,12 @@ export default { } } - // 选中 - this.$nextTick(function () { - this.patientRegister.prList.forEach(row => { - if (arrayExistObj(this.dataTransOpts.tableM.patient_register, 'patientRegisterId', row.patientRegisterId) == -1) this.$refs['info'].toggleRowSelection(row) - }) - }); + // 连续扫码,自动选中新扫的码 (换成虚拟表后,无法自动勾选了) + // this.$nextTick(function () { + // this.patientRegister.prList.forEach(row => { + // this.$refs['info'].toggleRowSelection(row) + // }) + // }); } else { // 刷新最大记录数 diff --git a/src/components/sumDoctorCheck/CheckDetails.vue b/src/components/sumDoctorCheck/CheckDetails.vue index 18ce30c..80b3a09 100644 --- a/src/components/sumDoctorCheck/CheckDetails.vue +++ b/src/components/sumDoctorCheck/CheckDetails.vue @@ -10,9 +10,9 @@ cellspacing="0" bordercolor="#909399" style="border-collapse:collapse;"> {{ item2.asbitemNames }} - {{ '检查日期:' + item2.checkDate.substring(0, 10) + ' 检查医生:' + - item2.checkDoctorName - }} + + {{ getCheckDisp(item2) }} + @@ -64,11 +64,10 @@ style="font-size:14px;border-collapse:collapse;"> {{ details.asbitemNames }} - {{ '检查日期:' + details.checkDate + ' 检查医生:' + - details.checkDoctorName - }} + + {{ getCheckDisp(details) }} + - 项目 本次结果 @@ -107,6 +106,7 @@ import { mapState } from 'vuex'; import Sortable from "sortablejs"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { arrayExistObj, deepCopy, getColorStr } from '@/utlis/proFunc'; +import g from 'file-saver'; export default { components: {}, props: ["patientRegisterId", "tabChoosed", "refParams",], @@ -185,7 +185,29 @@ export default { }); }, - + // 获取检查显示 + getCheckDisp(details){ + let ret = '' + if(details.checkDate && details.checkDoctorName){ + ret = '检 查 日 期 : ' + details?.checkDate.substring(0, 10) + ' 检查医生:' + details.checkDoctorName + } + if(details.previousCheckDate && details.previousCheckDoctorName){ + if(ret){ + ret += '\n上 次 日 期 : ' + details?.previousCheckDate.substring(0, 10) + ' 检查医生:' + details.previousCheckDoctorName + }else{ + ret = '上 次 日 期 : ' + details?.previousCheckDate.substring(0, 10) + ' 检查医生:' + details.previousCheckDoctorName + } + } + if(details.previousTwoCheckDate && details.previousTwoCheckDoctorName){ + if(ret){ + ret += '\n上上次日期: ' + details?.previousTwoCheckDate.substring(0, 10) + ' 检查医生:' + details.previousTwoCheckDoctorName + }else{ + ret = '上上次日期: ' + details?.previousTwoCheckDate.substring(0, 10) + ' 检查医生:' + details.previousTwoCheckDoctorName + } + } + return ret + }, + mergeSummarys(array, itemKey) { let ret = ''