forked from angelo/web-retail-h5
feat(bonus): 奖金明细60天内数据
This commit is contained in:
parent
441d84a00d
commit
b58166d6e5
|
@ -1,13 +1,12 @@
|
|||
<template>
|
||||
<view class="bonus-detail-page">
|
||||
<view class="header-section">
|
||||
<!-- 今日实发合计 -->
|
||||
<view class="summary-bar">
|
||||
<!-- <view class="summary-bar">
|
||||
<text class="summary-text"
|
||||
>今日实发合计:
|
||||
<text class="summary-amount">{{ realIncomeTotal }}</text></text
|
||||
>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 日期筛选 -->
|
||||
<view class="date-filter">
|
||||
|
@ -119,14 +118,14 @@ export default {
|
|||
onLoad() {
|
||||
this.setDefaultDateRange()
|
||||
this.handleSearch()
|
||||
this.getBonusTotal()
|
||||
// this.getBonusTotal()
|
||||
},
|
||||
methods: {
|
||||
setDefaultDateRange() {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
end.setDate(end.getDate() - 1)
|
||||
start.setDate(end.getDate() - 15) // 默认查询最近15天
|
||||
start.setDate(end.getDate() - 60) // 默认查询最近15天
|
||||
|
||||
this.startDate = this.formatDate(start)
|
||||
this.endDate = this.formatDate(end)
|
||||
|
|
Loading…
Reference in New Issue