From f82fabcba3791ad3c3e7ce0d70e592c2d99f2c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Wed, 26 Mar 2025 10:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E5=91=BC=E8=AE=B0=E5=BD=95=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=9D=A1=E4=BB=B6=E6=89=B9=E6=AC=A1=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/myPagination/index.vue | 14 +-- src/views/manage/ImportDetails/index.vue | 28 ++--- src/views/manage/Patientmanagement/index.vue | 3 +- src/views/manage/blacklist/index.vue | 6 +- src/views/manage/components/sn.vue | 125 +++++++++++-------- src/views/manage/patientInfo/index.vue | 3 +- 6 files changed, 88 insertions(+), 91 deletions(-) diff --git a/src/components/myPagination/index.vue b/src/components/myPagination/index.vue index 6383fac..280571a 100644 --- a/src/components/myPagination/index.vue +++ b/src/components/myPagination/index.vue @@ -91,7 +91,7 @@ export default { */ name: "Pagination", //由父组件传递总条数 每页显示数 连续页码数 当前页下标 - props: ["total", "pageSize", "indexFromWrap", "indexFrom"], + props: ["total", "pageSize", "indexFromWrap"], data() { return { lxyms: 7, @@ -214,18 +214,6 @@ export default { deep: true, immediate: true, }, - indexFrom: { - handler(val) { - if (val) { - this.currentpageSize = val; - } else { - this.currentpageSize = 10; - } - }, - deep: true, - immediate: true, - }, - }, }; diff --git a/src/views/manage/ImportDetails/index.vue b/src/views/manage/ImportDetails/index.vue index 8cc4da8..1734b0d 100644 --- a/src/views/manage/ImportDetails/index.vue +++ b/src/views/manage/ImportDetails/index.vue @@ -58,23 +58,20 @@ - --> - - - - -
@@ -90,9 +87,6 @@ - - - -
- + @@ -155,7 +147,6 @@ export default { components: { SearchFilter, cardlist }, data() { return { - indexFrom: 100, searchData: {}, maxTableHeight: undefined, attendingPhysicianlist: [], @@ -501,12 +492,7 @@ export default { const layoutDiv = this.$refs.layout; const formDiv = this.$refs.topform; const mb8Div = this.$refs.mb8; - this.maxTableHeight = - windowInnerHeight - - 134 - - this.getBoxPadding(layoutDiv) - - this.getBoxHeight(mb8Div) - - this.getBoxHeight(formDiv); + this.maxTableHeight = windowInnerHeight - 134 - this.getBoxPadding(layoutDiv) - this.getBoxHeight(mb8Div) - this.getBoxHeight(formDiv); }, // 屏幕resize监听 screenChange() { diff --git a/src/views/manage/Patientmanagement/index.vue b/src/views/manage/Patientmanagement/index.vue index e5be900..8a2aa2f 100644 --- a/src/views/manage/Patientmanagement/index.vue +++ b/src/views/manage/Patientmanagement/index.vue @@ -146,7 +146,7 @@ + :indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"> @@ -167,7 +167,6 @@ export default { components: { SearchFilter, cardlist }, data() { return { - indexFrom: 100, searchData: {}, maxTableHeight: undefined, attendingPhysicianlist: [], diff --git a/src/views/manage/blacklist/index.vue b/src/views/manage/blacklist/index.vue index c76b581..e62c790 100644 --- a/src/views/manage/blacklist/index.vue +++ b/src/views/manage/blacklist/index.vue @@ -1,8 +1,8 @@ + - + @@ -120,6 +123,8 @@ import { patientInfoImportBatchlist } from "@/api/manage/patientInfoImport"; import stationAcatar from "../../system/stationAvatar/index.vue"; import { selectAgencyList, getAgencyList } from "@/api/manage/selectAgencyList"; +import { getPatientList } from "@/api/manage/patientInfo"; +import { usergetList } from "@/api/unitconfig/patientConfiguration"; export default { props: ["templateId"], @@ -168,12 +173,17 @@ export default { importTimeStart: "", importTimeEnd: "", campusAgencyId: null, + importName: null, }, + patientInfoList: [], + departmentlist: [], + ImportDetailtotal: 0, ImportDetailqueryParams: { sn: null, + pageNum: 1, + pageSize: 10, patientName: null, patientPhone: null, - birthDate: null, patientType: null, visitMethod: null, mainDiagnosis: null, @@ -187,11 +197,7 @@ export default { wardId: null, wardName: null, surgicalName: null, - admissionTimeStart: null, - admissionTimeEnd: null, outpatientNumber: null, - visitDateStart: null, - visitDateEnd: null, dischargeMethod: null, patientSource: null, } @@ -210,28 +216,31 @@ export default { }, }, methods: { - // 流水号/明细 - handsn(row) { - this.ImportDetailqueryParams.sn = row.sn; + /** 搜索按钮操作 */ + ImportDetailhandleQuery() { + this.ImportDetailqueryParams.pageNum = 1; + this.getsn(); + }, + /** 重置按钮操作 */ + ImportDetailresetQuery() { + this.ImportDetailqueryParams = { + pageNum: 1, + pageSize: 10, + sn: this.ImportDetailqueryParams.sn + }; + this.getsn(); + }, + getsn() { getPatientList(this.ImportDetailqueryParams).then((response) => { - response.rows.forEach((e) => { - e.birthDate ? (e.age = getAge(e.birthDate)) : e.age; - }); - response.rows.forEach((e) => { - e.Timeimport = this.$route.query.Timeimport - }); this.patientInfoList = response.rows; - this.total = response.total; - this.ImportDetailsopen = true + this.ImportDetailtotal = response.total; }); - // this.$router.push({ - // path: "/patient/ImportDetails", - // query: { - // path: "/patient/patientinfoimport", - // sn: row.sn, - // Timeimport: row.createTime, - // }, - // }); + }, + // 流水号/明细 + async handsn(row) { + this.ImportDetailqueryParams.sn = row.sn; + await this.getsn() + this.ImportDetailsopen = true }, //获取医院list selectAgencyinfo() { @@ -272,13 +281,24 @@ export default { // selectAgencyList(query).then(res => { if (type) { if (!typetwo) { - this.form.campusAgencyId = null + this.queryParams.campusAgencyId = null } } else { - this.queryParams.campusAgencyId = null + this.ImportDetailqueryParams.campusAgencyId = null } + //医生 + this.usergetListinfo(); // }) }, + //主治医生 + usergetListinfo() { + usergetList({ + hospitalAgencyId: this.queryParams.hospitalAgencyId, + postName: "DOCTOR", + }).then((res) => { + this.attendingPhysicianlist = res.data; + }); + }, //选中院区获取科室 changecampusAgency(id, type, typetwo) { this.getAgencyListinfo('CAMPUS', id, type) @@ -286,9 +306,9 @@ export default { //清空医院 clearhospitalAgency(type) { if (type) { - this.form.campusAgencyId = null - this.form.departmentId = null - this.form.wardId = null + this.ImportDetailqueryParams.campusAgencyId = null + this.ImportDetailqueryParams.departmentId = null + this.ImportDetailqueryParams.wardId = null } else { this.queryParams.campusAgencyId = null this.queryParams.departmentId = null @@ -298,9 +318,9 @@ export default { //清空院区 clearcampusAgency(type) { if (type) { - this.form.departmentId = null - this.form.wardId = null - this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type) + this.ImportDetailqueryParams.departmentId = null + this.ImportDetailqueryParams.wardId = null + this.getAgencyListinfo('HOSPITAL', this.ImportDetailqueryParams.hospitalAgencyId, type) } else { this.queryParams.departmentId = null this.queryParams.wardId = null @@ -353,7 +373,12 @@ export default { resetQuery() { this.queryParams = { pageNum: 1, - pageSize: 10 + pageSize: 10, + importName: null, + hospitalAgencyId: null, + importTimeStart: "", + importTimeEnd: "", + campusAgencyId: null, } this.createTime = ''; this.handleQuery(); diff --git a/src/views/manage/patientInfo/index.vue b/src/views/manage/patientInfo/index.vue index 23bb0c8..69ce3bd 100644 --- a/src/views/manage/patientInfo/index.vue +++ b/src/views/manage/patientInfo/index.vue @@ -153,7 +153,7 @@ + :indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"> @@ -175,7 +175,6 @@ export default { data() { return { type: "card", - indexFrom: "", searchData: {}, maxTableHeight: undefined, attendingPhysicianlist: [],