From 0285ef2cfa0b7e8b3f760b3ece4276e6f076e91d Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Thu, 28 Sep 2023 15:05:35 +0800 Subject: [PATCH] query seo --- .../doctorCheck/PatientRegisterBase.vue | 20 +- .../doctorCheck/PatientRegisterList.vue | 105 ++++---- .../patientRegister/PatientRegisterEdit.vue | 235 +++++++++++++++++- .../patientRegister/PatientRegisterList.vue | 3 +- .../PatientRegisterRecoverList.vue | 10 +- .../PatientRegisterRefuseList.vue | 28 +-- .../PatientRegisterSignList.vue | 10 +- .../patientRegister/patientRegisterQuery.vue | 7 +- src/utlis/proFunc.js | 1 + 9 files changed, 330 insertions(+), 89 deletions(-) diff --git a/src/components/doctorCheck/PatientRegisterBase.vue b/src/components/doctorCheck/PatientRegisterBase.vue index ecec33d..ffe8b2e 100644 --- a/src/components/doctorCheck/PatientRegisterBase.vue +++ b/src/components/doctorCheck/PatientRegisterBase.vue @@ -129,9 +129,13 @@ export default { ...mapMutations(['doctorCheckPrBaseInit','sumPREditInit']), //按条码号查个人数据 onQueryByPatientRegisterNo() { - let val = this.doctorCheck.prBase.patientRegisterNo - console.log(`/api/app/patient-register/patient-register-or-patient?SType=1&PatientRegisterNo=${val}`) - getapi(`/api/app/patient-register/patient-register-or-patient?SType=1&PatientRegisterNo=${val}`) + let patientRegisterNo = this.doctorCheck.prBase.patientRegisterNo + let body = { + sType:1, + patientRegisterNo + } + console.log(`/api/app/patientregister/getpatientregisterorpatient`,body) + postapi('/api/app/patientregister/getpatientregisterorpatient',body) .then((res) => { if (res.code != -1) { @@ -147,9 +151,13 @@ export default { //按条码号查个人数据 onQueryByPatientNo() { - let val = this.doctorCheck.prBase.patientNo - console.log(`/api/app/patient-register/patient-register-or-patient?SType=2&PatientNo=${val}`) - getapi(`/api/app/patient-register/patient-register-or-patient?SType=2&PatientNo=${val}`) + let patientNo = this.doctorCheck.prBase.patientNo + let body = { + sType:2, + patientNo + } + console.log(`/api/app/patientregister/getpatientregisterorpatient`,body) + postapi('/api/app/patientregister/getpatientregisterorpatient',body) .then((res) => { if (res.code != -1) { console.log('按条码号查个人数据',res.data) diff --git a/src/components/doctorCheck/PatientRegisterList.vue b/src/components/doctorCheck/PatientRegisterList.vue index d2243d0..1d680e3 100644 --- a/src/components/doctorCheck/PatientRegisterList.vue +++ b/src/components/doctorCheck/PatientRegisterList.vue @@ -40,31 +40,19 @@ - - - - - - - - - - + class="el-table__body-wrapper tbody" highlight-current-row @row-click="rowick" ref="dataList"> + + - + - + + + + + + + @@ -161,14 +159,11 @@ import { mapState, mapMutations } from "vuex"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { dddw, objCopy, arrayReduce } from "@/utlis/proFunc"; -import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; -import Camera from "../../components/patientRegister/Camera.vue"; + import CusOrgOCX from "../../components/report/CusOrgOCX.vue" export default { components: { - PatientRegisterEdit, - Camera, CusOrgOCX, }, props: ['win'], @@ -213,38 +208,48 @@ export default { //查询 query() { - let body = {} - - console.log(`this.patientRegister.query`, this.patientRegister.query) - - if (this.patientRegister.query.customerOrgFlag) { - if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId[0] + let body = {},customerOrgs=[] + + if (this.report.dataCusOrgOCX.length > 0) { + this.report.dataCusOrgOCX.forEach(e => { + let rd = { + startDate: moment(e.startDate).format('yyyy-MM-DD'), + endDate: moment(e.endDate).format('yyyy-MM-DD'), + dateType: e.dateType == 'summaryDate' ? '3':(e.dateType == 'medicalStartDate' ? '2':'1') + } + + if (e.customerOrgId) { + rd.customerOrgId = e.customerOrgId + if(e.customerOrgId == this.dict.personOrgId){ + rd.customerOrgRegisterId = null + rd.customerOrgGroupId = [] + }else{ + rd.customerOrgRegisterId = e.customerOrgRegister.id + rd.customerOrgGroupId = e.customerOrgGroupIds + } + } + customerOrgs.push(rd) + }) } - if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex - - if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName - - if (this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag - - //StartDate EndDate - if (this.patientRegister.query.dateRange) { - body.startDate = moment(new Date(this.patientRegister.query.dateRange[0])).format("yyyy-MM-DD") - body.endDate = moment(new Date(this.patientRegister.query.dateRange[1])).format("yyyy-MM-DD") - } - - - if (this.patientRegister.query.idCardNo) body = { idNo: this.patientRegister.query.idCardNo } - - if (this.patientRegister.query.patientNo) body = { patientNo: this.patientRegister.query.patientNo } - - if (this.patientRegister.query.patientRegisterNo) body = { patientRegisterNo: this.patientRegister.query.patientRegisterNo } - - - console.log('/api/app/patientregister/getlistinfilter', body) - postapi('/api/app/patientregister/getlistinfilter', body) + body.customerOrgs = customerOrgs + if(this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName + if(this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex + if(this.patientRegister.query.isAudit) body.isAudit = this.patientRegister.query.isAudit + if(this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag + body.maxResultCount = 500 + // "patientName": "string", + // "sexId": "string", + // "isAudit": "string", + // "completeFlag": "string", + // "maxResultCount": 0 + + console.log('/api/patientregister/getpeisrecordlist', body) + postapi('/api/patientregister/getpeisrecordlist', body) .then((res) => { - this.dataList = res.data; + if(res.code != -1){ + this.dataList = res.data.items; + } }); }, diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 43385c4..5c355b8 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -449,6 +449,153 @@ 确定 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确定 + + + +