更新
This commit is contained in:
parent
ff935b560e
commit
c8556fa630
@ -133,7 +133,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="title_d">待收款
|
<view class="title_d">待收款
|
||||||
<view class="sm_" @click="goxiangqing(3)">更多 ></view>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="box_">
|
<view class="box_">
|
||||||
<common-time-select v-model="rangeDsk" @subsection-change="slectRangeDskCount"></common-time-select>
|
<common-time-select v-model="rangeDsk" @subsection-change="slectRangeDskCount"></common-time-select>
|
||||||
|
|||||||
@ -8,8 +8,8 @@
|
|||||||
<image src="./assets/name.png" mode=""></image>
|
<image src="./assets/name.png" mode=""></image>
|
||||||
<view class="top_i_text">员工排名与项目统计</view>
|
<view class="top_i_text">员工排名与项目统计</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
<u-subsection :list="tabList" :current="tabIndex" @change="changeTab"></u-subsection>
|
||||||
<view class="cont_box">
|
<view class="cont_box">
|
||||||
<view class="cont_top">
|
<view class="cont_top">
|
||||||
<view class="ds_">
|
<view class="ds_">
|
||||||
@ -32,42 +32,82 @@
|
|||||||
</uni-datetime-picker>
|
</uni-datetime-picker>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="user_box">
|
<view v-if="tabIndex == 0">
|
||||||
<view class="user_left">
|
<view class="user_box">
|
||||||
<view class="user_name">总计</view>
|
<view class="user_left">
|
||||||
|
<view class="user_name">总计</view>
|
||||||
|
</view>
|
||||||
|
<view class="user_right">
|
||||||
|
<view class="user_kar" v-for="(item,index) in allCounts" :key="index">
|
||||||
|
<view class="">{{ item.projectName }}</view>
|
||||||
|
<view class="num_">{{ item.total }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="user_right">
|
<!-- 循环 -->
|
||||||
<view class="user_kar" v-for="(item,index) in allCounts" :key="index">
|
<view class="user_box" v-for="(items,index) in List" :key="index">
|
||||||
<view class="">{{ item.projectName }}</view>
|
<view class="user_left" @click="goDetail(items)">
|
||||||
<view class="num_">{{ item.total }}</view>
|
<view class="user_img">
|
||||||
|
<view class="user_p_img" v-show="index == 0">
|
||||||
|
<image src="./assets/top1.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="user_p_img" v-show="index == 1">
|
||||||
|
<image src="./assets/top2.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="user_p_img" v-show="index == 2">
|
||||||
|
<image src="./assets/top3.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<image src="/static/imgs/yh.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="user_name">{{ items.nickname }}</view>
|
||||||
|
<view class="user_ramk">服务{{ items.totalCount }}次</view>
|
||||||
|
</view>
|
||||||
|
<view class="user_right">
|
||||||
|
<view class="user_kar" v-for="(item,index) in items.children" :key="index">
|
||||||
|
<view class="">{{ item.projectName }}</view>
|
||||||
|
<view>
|
||||||
|
|
||||||
|
<view class="num_">{{ item.count }}</view>
|
||||||
|
<view class="num_1">{{ item.percentage }}%</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 循环 -->
|
<view v-if="tabIndex == 1">
|
||||||
<view class="user_box" v-for="(items,index) in List" :key="index">
|
<view class="user_box" v-for="(items,index) in List" :key="index">
|
||||||
<view class="user_left" @click="goDetail(items)">
|
<view class="user_left" @click="goDetail(items)">
|
||||||
<view class="user_img">
|
<view class="user_img">
|
||||||
<view class="user_p_img" v-show="index == 0">
|
<view class="user_p_img" v-show="index == 0">
|
||||||
<image src="./assets/top1.png" mode=""></image>
|
<image src="./assets/top1.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="user_p_img" v-show="index == 1">
|
||||||
|
<image src="./assets/top2.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="user_p_img" v-show="index == 2">
|
||||||
|
<image src="./assets/top3.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<image src="/static/imgs/yh.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="user_p_img" v-show="index == 1">
|
<view class="user_name">{{ items.nickname }}</view>
|
||||||
<image src="./assets/top2.png" mode=""></image>
|
<view class="user_ramk">总产值{{ items.totalPassOutputValue }}</view>
|
||||||
</view>
|
|
||||||
<view class="user_p_img" v-show="index == 2">
|
|
||||||
<image src="./assets/top3.png" mode=""></image>
|
|
||||||
</view>
|
|
||||||
<image src="/static/imgs/yh.png" mode=""></image>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="user_name">{{ items.nickname }}</view>
|
<view class="user_right">
|
||||||
<view class="user_ramk">服务{{ items.totalCount }}次</view>
|
<view class="user_kar">
|
||||||
</view>
|
<view class="">初检公示产值</view>
|
||||||
<view class="user_right">
|
<view class="num_1">{{ items.initialInspectionOutputValue }}</view>
|
||||||
<view class="user_kar" v-for="(item,index) in items.children" :key="index">
|
</view>
|
||||||
<view class="">{{ item.projectName }}</view>
|
<view class="user_kar">
|
||||||
<view>
|
<view class="">复检公示产值</view>
|
||||||
|
<view class="num_1">{{ items.recheckInspectionOutputValue }}</view>
|
||||||
<view class="num_">{{ item.count }}</view>
|
</view>
|
||||||
<view class="num_1">{{ item.percentage }}%</view>
|
<view class="user_kar">
|
||||||
|
<view class="">初检合格产值</view>
|
||||||
|
<view class="num_1">{{ items.initialInspectionPassOutputValue }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="user_kar">
|
||||||
|
<view class="">复检合格产值</view>
|
||||||
|
<view class="num_1">{{ items.recheckInspectionPassOutputValue }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -94,7 +134,9 @@
|
|||||||
value: "month",
|
value: "month",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
tabList: ['工作量排名', '产值排名'],
|
||||||
tapIndex: 0,
|
tapIndex: 0,
|
||||||
|
tabIndex: 0,
|
||||||
show: false,
|
show: false,
|
||||||
mode: 'range',
|
mode: 'range',
|
||||||
titles: "员工统计",
|
titles: "员工统计",
|
||||||
@ -137,23 +179,42 @@
|
|||||||
this.tapIndex = index
|
this.tapIndex = index
|
||||||
this.slectRange(index)
|
this.slectRange(index)
|
||||||
},
|
},
|
||||||
|
changeTab(index) {
|
||||||
|
this.tabIndex = index
|
||||||
|
this.getStaffCount()
|
||||||
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, // 获取员工统计
|
}, // 获取员工统计
|
||||||
getStaffCount() {
|
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({
|
request({
|
||||||
url: "/partnerOwn/partner/getStaffCount",
|
url: '/inspection/statistics/queryOutputMoneyStatisticsRanking',
|
||||||
method: "post",
|
method: 'POST',
|
||||||
data: this.queryParams,
|
data: this.queryParams,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.List = res.data;
|
this.List = res.data;
|
||||||
this.allCounts = this.summarizeByProjectName(res.data);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}, // 补零:1 → 01
|
|
||||||
pad(n) {
|
|
||||||
return n.toString().padStart(2, "0");
|
|
||||||
},
|
},
|
||||||
// Date → "YYYY-MM-DD"
|
// Date → "YYYY-MM-DD"
|
||||||
formatDate(d) {
|
formatDate(d) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user