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