From c08db47108981d145c0d6bcb966ffc8682e6bc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Wed, 10 Jul 2024 17:56:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/DepartmentList.vue | 41 +- src/views/manage/message/index.vue | 4 +- src/views/manage/propaganda/index.vue | 4 +- src/views/manage/script/index.vue | 511 +++----------- src/views/manage/servicepackage/index.vue | 625 ++++-------------- src/views/manage/template/index.vue | 4 +- .../operationInfo/operationInfo/index.vue | 251 ++----- 7 files changed, 288 insertions(+), 1152 deletions(-) diff --git a/src/views/components/DepartmentList.vue b/src/views/components/DepartmentList.vue index fe8d4c3..cb8b437 100644 --- a/src/views/components/DepartmentList.vue +++ b/src/views/components/DepartmentList.vue @@ -98,7 +98,7 @@ export default { watch: { 'querydepartmen.departmentName'(val) { this.querydepartmen.departmentName = val - this.Departmentlist(); + this.Departmentlist(1); }, modal(val) { this.vmodal = val @@ -125,10 +125,13 @@ export default { this.HOSPITALlist = JSON.parse(localStorage.getItem('HOSPITALlist')) }, nurseclick(item) { - this.itemid = null - this.departmentName = null - this.querydepartmen.hospitalAgencyId = item.id - this.Departmentlist(); + if (this.querydepartmen.hospitalAgencyId != item.id) { + this.querydepartmen.departmentName = '' + this.itemid = null + this.departmentName = null + this.querydepartmen.hospitalAgencyId = item.id + this.Departmentlist(); + } this.open = false }, changeswitch(e) { @@ -181,7 +184,7 @@ export default { this.$emit("clickdepartment", obj); }, // 科室列表 - Departmentlist() { + Departmentlist(val) { let method = undefined if (this.methods == 'listOperationNum') { method = listOperationNum(this.querydepartmen) @@ -226,18 +229,20 @@ export default { method.then(response => { this.DepartmentoList = response.data.deptNumList; this.hospitalAgencyName = response.data.hospitalAgencyName - this.count = 0; - this.DepartmentoList.forEach((item) => { - if (item.countNum != null) { - this.count += item.countNum; - } - }); - this.$emit("clickdepartment", { - hospitalAgencyId: this.querydepartmen.hospitalAgencyId, - itemid: this.itemid, - itemName: this.departmentName, - hospitalAgencyName: this.hospitalAgencyName - }); + if (!val) { + this.count = 0; + this.DepartmentoList.forEach((item) => { + if (item.countNum != null) { + this.count += item.countNum; + } + }); + this.$emit("clickdepartment", { + hospitalAgencyId: this.querydepartmen.hospitalAgencyId, + itemid: this.itemid, + itemName: this.departmentName, + hospitalAgencyName: this.hospitalAgencyName + }); + } }); }, } diff --git a/src/views/manage/message/index.vue b/src/views/manage/message/index.vue index 8195574..3e2cd79 100644 --- a/src/views/manage/message/index.vue +++ b/src/views/manage/message/index.vue @@ -539,9 +539,9 @@ export default { this.queryParams.departmentId = null; this.informationqueryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId this.queryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId - this.$refs.DepartmentList.resetQuery() this.resetForm("queryForms"); - this.handleQuery(); + this.$refs.DepartmentList.resetQuery() + // this.handleQuery(); }, // 多选框选中数据 handleSelectionChange(selection) { diff --git a/src/views/manage/propaganda/index.vue b/src/views/manage/propaganda/index.vue index 27f08fc..de04863 100644 --- a/src/views/manage/propaganda/index.vue +++ b/src/views/manage/propaganda/index.vue @@ -1376,9 +1376,9 @@ export default { this.queryParams.createTimeStart = null this.informationqueryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId this.queryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId - this.$refs.DepartmentList.resetQuery() this.resetForm("queryForms"); - this.handleQuery(); + this.$refs.DepartmentList.resetQuery() + // this.handleQuery(); }, // 多选框选中数据 handleSelectionChange(selection) { diff --git a/src/views/manage/script/index.vue b/src/views/manage/script/index.vue index 16bdbab..1619a12 100644 --- a/src/views/manage/script/index.vue +++ b/src/views/manage/script/index.vue @@ -2,168 +2,66 @@
- +
- - - + + + - + - + - + - - + + - 搜索 - 重置 + 搜索 + 重置
- 新增 - 导入 + v-hasPermi="['manage:script:add']">新增 + 导入 - +
- - - - - - - + + + + + + + - - - + + +
- +
- + - + - + - {{ form.departmentName }} + ">{{ form.departmentName }} - {{ form.diseaseTypeName }} + ">{{ form.diseaseTypeName }} - + - - + + - + - - - + + + - + - + - - + + - + - 搜索 - 重置 + 搜索 + 重置 - + - + - + - - + + - + - 搜索 - 重置 + 搜索 + 重置 - + - + - + - +
@@ -530,17 +218,8 @@
- - + +