From 0cd7a3a72f35b9932f4522b22417a20fe8bc3ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Mon, 8 Jul 2024 14:33:13 +0800 Subject: [PATCH] xg --- src/api/system/question.js | 3 +- src/views/components/DepartmentList.vue | 12 ++++ src/views/manage/message/index.vue | 4 +- src/views/manage/propaganda/index.vue | 4 +- src/views/manage/script/index.vue | 4 +- src/views/manage/servicepackage/index.vue | 23 +++--- src/views/manage/template/index.vue | 4 +- .../operationInfo/operationInfo/index.vue | 4 +- src/views/system/question/index.vue | 72 ++++++------------- 9 files changed, 59 insertions(+), 71 deletions(-) diff --git a/src/api/system/question.js b/src/api/system/question.js index e67e549..8998451 100644 --- a/src/api/system/question.js +++ b/src/api/system/question.js @@ -54,10 +54,11 @@ export function getDepartmentList(query) { } //科室 -export function selectUserDepartment() { +export function selectUserDepartment(query) { return request({ url: '/system/department/selectUserDepartment', method: 'get', + params: query }) } diff --git a/src/views/components/DepartmentList.vue b/src/views/components/DepartmentList.vue index 7e42755..9fdac9f 100644 --- a/src/views/components/DepartmentList.vue +++ b/src/views/components/DepartmentList.vue @@ -60,6 +60,7 @@ import { listOperationNum } from "@/api/operationInfo/operationInfo"; import { listWechatTemplateNum, } from "@/api/manage/template"; +import { getDepartmentList } from "@/api/system/question"; import { listScriptNum } from "@/api/manage/script"; import { listMessageNum } from "@/api/manage/message"; import { selectNumByDept } from "@/api/manage/propaganda"; @@ -178,8 +179,11 @@ export default { method = selectNumByDept(this.querydepartmen) } else if (this.methods == 'listServicePackageNum') { method = listServicePackageNum(this.querydepartmen) + } else if (this.methods == 'getDepartmentList') { + method = getDepartmentList(this.querydepartmen) } method.then(response => { + console.log(response) this.DepartmentoList = response.data.deptNumList; this.hospitalAgencyName = response.data.hospitalAgencyName this.count = 0; @@ -188,6 +192,14 @@ export default { this.count += item.countNum; } }); + if (this.methods == 'getDepartmentList') { + this.$emit("clickdepartment", { + hospitalAgencyId: this.querydepartmen.hospitalAgencyId, + itemid: '', + itemName: '', + hospitalAgencyName: this.hospitalAgencyName + }); + } this.$emit("clickdepartment", { hospitalAgencyId: this.querydepartmen.hospitalAgencyId, itemid: '', diff --git a/src/views/manage/message/index.vue b/src/views/manage/message/index.vue index c11c82e..222f988 100644 --- a/src/views/manage/message/index.vue +++ b/src/views/manage/message/index.vue @@ -7,7 +7,7 @@
-
-
- + style="width: 208px"> @@ -119,7 +119,7 @@ - + @@ -136,13 +136,14 @@
- + - @@ -151,7 +152,7 @@ - + @@ -707,7 +708,7 @@ export default { }, // 点击病种 clickdisease() { - if (!this.form.departmentName) { + if (this.form.departmentName == '请选择科室') { this.$modal.msgError("请先选择科室"); } else { this.querydisease.departmentId = this.form.departmentId @@ -796,7 +797,7 @@ export default { this.informationqueryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId this.queryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId this.$refs.DepartmentList.resetQuery() - this.resetForm("queryForm"); + this.resetForm("queryForms"); this.handleQuery(); }, // 多选框选中数据 @@ -988,7 +989,7 @@ export default { ::v-deep .el-input-group { - width: 204px !important; + width: 208px !important; } .container { diff --git a/src/views/manage/template/index.vue b/src/views/manage/template/index.vue index 1c984cd..0cb7893 100644 --- a/src/views/manage/template/index.vue +++ b/src/views/manage/template/index.vue @@ -7,7 +7,7 @@
-
- -
-
科室名称
-
- -
-
-
- {{ item.departmentName }} -
- {{ item.countNum }} -
-
+ +
@@ -106,22 +96,17 @@