diff --git a/pages/statistics/business.vue b/pages/statistics/business.vue index 0de81fe..77f756b 100644 --- a/pages/statistics/business.vue +++ b/pages/statistics/business.vue @@ -133,7 +133,6 @@ 待收款 - 更多 > diff --git a/pages/statistics/staffStatistics/index.vue b/pages/statistics/staffStatistics/index.vue index 8962062..08beac9 100644 --- a/pages/statistics/staffStatistics/index.vue +++ b/pages/statistics/staffStatistics/index.vue @@ -8,8 +8,8 @@ 员工排名与项目统计 - + @@ -32,42 +32,82 @@ - - - 总计 + + + + 总计 + + + + {{ item.projectName }} + {{ item.total }} + + - - - {{ item.projectName }} - {{ item.total }} + + + + + + + + + + + + + + + + {{ items.nickname }} + 服务{{ items.totalCount }}次 + + + + {{ item.projectName }} + + + {{ item.count }} + {{ item.percentage }}% + + - - - - - - + + + + + + + + + + + + + + - - - - - - - + {{ items.nickname }} + 总产值{{ items.totalPassOutputValue }} - {{ items.nickname }} - 服务{{ items.totalCount }}次 - - - - {{ item.projectName }} - - - {{ item.count }} - {{ item.percentage }}% + + + 初检公示产值 + {{ items.initialInspectionOutputValue }} + + + 复检公示产值 + {{ items.recheckInspectionOutputValue }} + + + 初检合格产值 + {{ items.initialInspectionPassOutputValue }} + + + 复检合格产值 + {{ items.recheckInspectionPassOutputValue }} @@ -94,7 +134,9 @@ value: "month", }, ], + tabList: ['工作量排名', '产值排名'], tapIndex: 0, + tabIndex: 0, show: false, mode: 'range', titles: "员工统计", @@ -137,23 +179,42 @@ this.tapIndex = index this.slectRange(index) }, + changeTab(index) { + this.tabIndex = index + this.getStaffCount() + }, goBack() { uni.navigateBack() }, // 获取员工统计 getStaffCount() { + if (this.tabIndex == 0) { + request({ + url: "/partnerOwn/partner/getStaffCount", + method: "post", + data: this.queryParams, + }).then((res) => { + this.$nextTick(() => { + this.List = res.data; + this.allCounts = this.summarizeByProjectName(res.data); + }); + }); + } else { + this.queryOutputMoneyStatisticsRanking() + } + }, // 补零:1 → 01 + pad(n) { + return n.toString().padStart(2, "0"); + }, + queryOutputMoneyStatisticsRanking() { request({ - url: "/partnerOwn/partner/getStaffCount", - method: "post", + url: '/inspection/statistics/queryOutputMoneyStatisticsRanking', + method: 'POST', data: this.queryParams, }).then((res) => { this.$nextTick(() => { this.List = res.data; - this.allCounts = this.summarizeByProjectName(res.data); }); }); - }, // 补零:1 → 01 - pad(n) { - return n.toString().padStart(2, "0"); }, // Date → "YYYY-MM-DD" formatDate(d) {