更新
This commit is contained in:
parent
ff935b560e
commit
c8556fa630
@ -133,7 +133,6 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="title_d">待收款
|
||||
<view class="sm_" @click="goxiangqing(3)">更多 ></view>
|
||||
</view>
|
||||
<view class="box_">
|
||||
<common-time-select v-model="rangeDsk" @subsection-change="slectRangeDskCount"></common-time-select>
|
||||
|
@ -8,8 +8,8 @@
|
||||
<image src="./assets/name.png" mode=""></image>
|
||||
<view class="top_i_text">员工排名与项目统计</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<u-subsection :list="tabList" :current="tabIndex" @change="changeTab"></u-subsection>
|
||||
<view class="cont_box">
|
||||
<view class="cont_top">
|
||||
<view class="ds_">
|
||||
@ -32,42 +32,82 @@
|
||||
</uni-datetime-picker>
|
||||
|
||||
</view>
|
||||
<view class="user_box">
|
||||
<view class="user_left">
|
||||
<view class="user_name">总计</view>
|
||||
<view v-if="tabIndex == 0">
|
||||
<view class="user_box">
|
||||
<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 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 class="user_box" v-for="(items,index) in List" :key="index">
|
||||
<view class="user_left" @click="goDetail(items)">
|
||||
<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 class="user_box" v-for="(items,index) in List" :key="index">
|
||||
<view class="user_left" @click="goDetail(items)">
|
||||
<view class="user_img">
|
||||
<view class="user_p_img" v-show="index == 0">
|
||||
<image src="./assets/top1.png" mode=""></image>
|
||||
<view v-if="tabIndex == 1">
|
||||
<view class="user_box" v-for="(items,index) in List" :key="index">
|
||||
<view class="user_left" @click="goDetail(items)">
|
||||
<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_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 class="user_name">{{ items.nickname }}</view>
|
||||
<view class="user_ramk">总产值{{ items.totalPassOutputValue }}</view>
|
||||
</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 class="user_right">
|
||||
<view class="user_kar">
|
||||
<view class="">初检公示产值</view>
|
||||
<view class="num_1">{{ items.initialInspectionOutputValue }}</view>
|
||||
</view>
|
||||
<view class="user_kar">
|
||||
<view class="">复检公示产值</view>
|
||||
<view class="num_1">{{ items.recheckInspectionOutputValue }}</view>
|
||||
</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>
|
||||
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user