|
@@ -10,7 +10,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="total">
|
|
<view class="total">
|
|
<view>
|
|
<view>
|
|
- 停车数量<text>{{ totalData.num || 0 }}</text>辆,实收金额<text>{{ totalData.really || 0 }}</text>元
|
|
|
|
|
|
+ 停车数量<text>{{ totalData.vehicleCount || 0 }}</text>辆,实收金额<text>{{ totalData.realAmount || 0 }}</text>元
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -28,15 +28,18 @@
|
|
default: () => {
|
|
default: () => {
|
|
return [{
|
|
return [{
|
|
field: '停车场名称',
|
|
field: '停车场名称',
|
|
- width: 120
|
|
|
|
|
|
+ width: 120,
|
|
|
|
+ key: 'parkingName'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: '停车数量(次)',
|
|
field: '停车数量(次)',
|
|
- width: 120
|
|
|
|
|
|
+ width: 120,
|
|
|
|
+ key: 'vehicleCount'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: '实收金额(元)',
|
|
field: '实收金额(元)',
|
|
- width: 80
|
|
|
|
|
|
+ width: 80,
|
|
|
|
+ key: 'realAmount'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -64,6 +67,35 @@
|
|
}
|
|
}
|
|
this.currentDate = data
|
|
this.currentDate = data
|
|
this.tableData.current = 1
|
|
this.tableData.current = 1
|
|
|
|
+ this.getList();
|
|
|
|
+ this.getTotal();
|
|
|
|
+ },
|
|
|
|
+ getList() {
|
|
|
|
+ this.loading = true
|
|
|
|
+ uni.$u.api.statisticalReportApi.getParkingReallyIncomeApi({
|
|
|
|
+ pageNum: this.tableData.current,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ beginTime: this.beginTime,
|
|
|
|
+ endTime: this.endTime
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.tableData.list = res.rows
|
|
|
|
+ this.tableData.total = res.total
|
|
|
|
+ }
|
|
|
|
+ this.loading = false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getTotal() {
|
|
|
|
+ uni.$u.api.statisticalReportApi.getParkingReallyIncomeTotalApi({
|
|
|
|
+ beginTime: this.beginTime,
|
|
|
|
+ endTime: this.endTime
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ const { realAmount, vehicleCount } = res.data
|
|
|
|
+ this.totalData.realAmount = realAmount
|
|
|
|
+ this.totalData.vehicleCount = vehicleCount
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|