From 2bb2afba26b8f0a702fa1ab38921cfee2c675c86 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 23 Apr 2024 14:28:14 +0800 Subject: [PATCH] jihua --- src/views/dashboard/index.vue | 64 +- src/views/task/list/components/addUnit.vue | 61 +- src/views/task/list/components/showPlan.vue | 21 +- src/views/task/list/outline.vue | 37 +- src/views/task/list/patrol.vue | 9 + src/views/task/list/plan.vue | 26 +- src/views/task/list/planunit.vue | 765 ++++++++++++++++++++ src/views/task/list/unit.vue | 45 +- 8 files changed, 982 insertions(+), 46 deletions(-) create mode 100644 src/views/task/list/planunit.vue diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index de6e5c1..c1955e0 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -181,6 +181,23 @@ + + +
+
+ 科室任务统计 +
+
+
+ + + +
+
+ +
@@ -429,7 +446,48 @@ export default { } }, ], - + depList:[], + depTable:[{ + prop:'dep', + label:'月份/科室', + + },{ + prop:'yiyue', + label:'一月', + },{ + prop:'eryue', + label:'二月', + },{ + prop:'sanyue', + label:'三月', + },{ + prop:'siyue', + label:'四月', + },{ + prop:'wuyue', + label:'五月', + },{ + prop:'liuyue', + label:'六月', + },{ + prop:'qiyue', + label:'七月', + },{ + prop:'bayue', + label:'八月', + },{ + prop:'jiuyue', + label:'九月', + },{ + prop:'shiyue', + label:'十月', + },{ + prop:'shiyiyue', + label:'十一月', + },{ + prop:'shieryue', + label:'十二月', + }], icon1: require('@/assets/index/icon1.png'), icon2: require('@/assets/index/icon2.png'), icon3: require('@/assets/index/icon3.png'), @@ -817,6 +875,10 @@ export default { let x_dep = [] for(var d of res.department){ x_dep.push(d.name) + this.depList.push({ + dep:d.name, + // yiyue:(d.mission.total+d.mission_plan.total) +'/' + (d.mission.no_end+d.mission_plan.no_end) + }) all_dep.push({ value:d.mission.total+d.mission_plan.total, plan:d.mission_plan.total, diff --git a/src/views/task/list/components/addUnit.vue b/src/views/task/list/components/addUnit.vue index a33f2da..2f8b396 100644 --- a/src/views/task/list/components/addUnit.vue +++ b/src/views/task/list/components/addUnit.vue @@ -2,6 +2,26 @@
+ + - @@ -416,7 +424,6 @@ // }); // }); this.currentTableList = this.filterBySelectedMonths(this.list,this.selectMonth) - console.log("this.currentTableList",this.currentTableList) this.total = res.total }, @@ -546,6 +553,13 @@ showPlan(id) { this.$refs.showPlan.id = id this.$refs.showPlan.isShow = true + }, + editUnit(row,type){ + this.$refs.addUnit.plan_id = row.id + this.$refs.addUnit.setType(type) + this.$refs.addUnit.setNameContent(row.out_line_content,row.content) + this.$refs.addUnit.setMenuLevel(row.menu,row.level) + this.$refs.addUnit.isShow = true }, deleteList(id) { var that = this; diff --git a/src/views/task/list/planunit.vue b/src/views/task/list/planunit.vue new file mode 100644 index 0000000..e419d10 --- /dev/null +++ b/src/views/task/list/planunit.vue @@ -0,0 +1,765 @@ + + + + + diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue index 1f4f49f..465777e 100644 --- a/src/views/task/list/unit.vue +++ b/src/views/task/list/unit.vue @@ -23,8 +23,8 @@ - +
@@ -42,6 +42,7 @@
+
{{selectMonth.join('、')}}共有{{currentTableList.length}}项任务,{{auditStatus2.length}}项未完成
{ @@ -567,7 +579,6 @@ r.monthName = allMonths[parseInt(dateArr[1])-1] let _index = monthObj[r.monthName]<10?"0"+monthObj[r.monthName]:monthObj[r.monthName] r.monthIndex = parseInt(dateArr[0])+""+_index - console.log(r.monthName,r.monthIndex) } @@ -653,8 +664,12 @@ } this.list = res.data - this.currentTableList = this.filterBySelectedMonths(this.list,this.selectMonth) - console.log("this.currentTableList",this.currentTableList) + let _arr = [] + let _arr2 = [] + _arr = this.filterBySelectedMonths(this.list,this.selectMonth) + this.currentTableList = _arr + _arr2 = _arr.filter(item=>item.audit_status===2) + this.auditStatus2= _arr2 this.total = res.total @@ -663,16 +678,22 @@ this.selectMonth = val ? this.allMonths : []; this.isIndeterminate = false; let _arr = [] + let _arr2 = [] _arr = this.filterBySelectedMonths(this.list,this.selectMonth) this.currentTableList = _arr + _arr2 = _arr.filter(item=>item.audit_status===2) + this.auditStatus2= _arr2 }, changeMonth(e){ let checkedCount = e.length; this.checkAll = checkedCount === this.allMonths.length; this.isIndeterminate = checkedCount > 0 && checkedCount < this.allMonths.length; let _arr = [] + let _arr2 = [] _arr = this.filterBySelectedMonths(this.list,this.selectMonth) this.currentTableList = _arr + _arr2 = _arr.filter(item=>item.audit_status===2) + this.auditStatus2= _arr2 }, filterBySelectedMonths(arr, selectMonth) { if (!selectMonth || selectMonth.length === 0) {