|
@@ -3,18 +3,18 @@
|
|
|
* @Author: 空白格
|
|
|
* @Date: 2022-06-20 09:15:39
|
|
|
* @LastEditors: 空白格
|
|
|
- * @LastEditTime: 2022-06-20 15:49:36
|
|
|
+ * @LastEditTime: 2022-11-16 13:38:03
|
|
|
* @FilePath: \parking_operation\pages\collectorManagement\performanceRanking\performanceRanking.vue
|
|
|
* @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
|
|
|
-->
|
|
|
|
|
|
<template>
|
|
|
<view class="performance-ranking">
|
|
|
- <!-- <view class="performance-ranking-search">
|
|
|
+ <view class="performance-ranking-search">
|
|
|
<view class="performance-ranking-search-item">
|
|
|
<uni-datetime-picker v-model="dateRange" type="daterange" @change="dateChange" />
|
|
|
</view>
|
|
|
- <view class="performance-ranking-search-item">
|
|
|
+ <!-- <view class="performance-ranking-search-item">
|
|
|
<yealuoInputs
|
|
|
v-if="loadAcheve"
|
|
|
ref="yealuoInputs"
|
|
@@ -30,8 +30,8 @@
|
|
|
<view class="performance-ranking-search-item btn-item">
|
|
|
<u-button text="搜索" size="small" class="custom-btn" type="primary" @click="handleQuery"></u-button>
|
|
|
<u-button text="重置" size="small" class="custom-btn" @click="handleReset"></u-button>
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
+ </view> -->
|
|
|
+ </view>
|
|
|
<view class="performance-ranking-content">
|
|
|
<TableRanking
|
|
|
:loading="tableData.loading"
|
|
@@ -62,8 +62,8 @@ export default {
|
|
|
payeeNoList: undefined,
|
|
|
beginTime: undefined,
|
|
|
endTime: undefined,
|
|
|
- sortField: 'realAmount',
|
|
|
- sortOrder: 'desc',
|
|
|
+ sortField: 'realAmount',
|
|
|
+ sortOrder: 'desc',
|
|
|
pageNum: 1,
|
|
|
pageSize: 10
|
|
|
},
|
|
@@ -77,11 +77,23 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
field: '姓名',
|
|
|
- key: 'payeeName'
|
|
|
+ key: 'payeeName',
|
|
|
+ width: 80
|
|
|
},
|
|
|
{
|
|
|
field: '实收金额(元)',
|
|
|
- key: 'realAmount'
|
|
|
+ key: 'realAmount',
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: '追缴现金金额(元)',
|
|
|
+ key: 'pursueCashAmt',
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: '追缴非现金金额(元)',
|
|
|
+ key: 'pursueOtherAmt',
|
|
|
+ width: 100
|
|
|
}
|
|
|
],
|
|
|
tableData: {
|
|
@@ -93,6 +105,8 @@ export default {
|
|
|
},
|
|
|
onShow() {
|
|
|
// this.getCollectorList();
|
|
|
+ const today = uni.$u.timeFormat(new Date(), 'yyyy-mm-dd');
|
|
|
+ this.dateRange = [today, today];
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
@@ -102,33 +116,32 @@ export default {
|
|
|
* @returns {any}
|
|
|
*/
|
|
|
getCollectorList() {
|
|
|
- uni.$u.api.tollCollectorPerformanceApi
|
|
|
- .getAllTollCollectorApi()
|
|
|
- .then((res) => {
|
|
|
- const { code, rows } = res;
|
|
|
- if (code === 200) {
|
|
|
- this.collectorList = rows.map((item) => {
|
|
|
- return { id: item.payeeNo, value: item.payeeName };
|
|
|
- });
|
|
|
- this.loadAcheve = true;
|
|
|
- }
|
|
|
- });
|
|
|
+ uni.$u.api.tollCollectorPerformanceApi.getAllTollCollectorApi().then((res) => {
|
|
|
+ const { code, rows } = res;
|
|
|
+ if (code === 200) {
|
|
|
+ this.collectorList = rows.map((item) => {
|
|
|
+ return { id: item.payeeNo, value: item.payeeName };
|
|
|
+ });
|
|
|
+ this.loadAcheve = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
/**
|
|
|
* 获取数据
|
|
|
*/
|
|
|
getList() {
|
|
|
this.tableData.loading = true;
|
|
|
- uni.$u.api.statisticalReportApi
|
|
|
- .getTollCollectorAchieveListApi({ ...this.params })
|
|
|
- .then((res) => {
|
|
|
- const { code, rows, total } = res;
|
|
|
- if (code === 200) {
|
|
|
- this.tableData.tableData.list = rows;
|
|
|
- this.tableData.tableData.total = total;
|
|
|
- }
|
|
|
- this.tableData.loading = false;
|
|
|
- });
|
|
|
+ if (this.dateRange.length) (this.params.beginTime = this.dateRange[0]), (this.params.endTime = this.dateRange[1]);
|
|
|
+ uni.$u.api.statisticalReportApi.getTollCollectorAchieveListApi({ ...this.params }).then((res) => {
|
|
|
+ const { code, rows, total } = res;
|
|
|
+ if (code === 200) {
|
|
|
+ this.tableData.tableData.list = rows.map((item) => {
|
|
|
+ return { ...item, pursueAmt: item.pursueOtherAmt + item.pursueCashAmt };
|
|
|
+ });
|
|
|
+ this.tableData.tableData.total = total;
|
|
|
+ }
|
|
|
+ this.tableData.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
handleQuery() {
|
|
|
this.getList();
|
|
@@ -164,6 +177,7 @@ export default {
|
|
|
dateChange(e) {
|
|
|
this.params.beginTime = e[0];
|
|
|
this.params.endTime = e[1];
|
|
|
+ this.getList();
|
|
|
},
|
|
|
/**
|
|
|
* 分页触发
|
|
@@ -177,10 +191,10 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
- page {
|
|
|
- background-color: #1767f2;
|
|
|
- min-height: calc(100vh - 44px);
|
|
|
- }
|
|
|
+page {
|
|
|
+ background-color: #1767f2;
|
|
|
+ min-height: calc(100vh - 44px);
|
|
|
+}
|
|
|
</style>
|
|
|
<style lang="scss" scoped>
|
|
|
@import './performanceRanking.scss';
|