saleStatisticsInitialState.js
873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* # guideInitialState.js
*
*
*/
'use strict';
/**
* ## Import immutable record
*/
import {List, Record} from 'immutable';
/**
* ## InitialState
*
* The fields we're concerned with
*/
let InitialState = Record({
isFetching: false,
error: null,
type: 0,
day: '',
startDay: '',
endDay: '',
month: '',
goodsAmount: 0, //有效订单商品金额
amountHasTrendData: false, //金额是否有环比数据
amountRise: true, //金额环比是否上升
amountRisePercent: '', //金额环比上升百分比
goodsCount: 0, //有效订单商品件数
countHasTrendData: false, //件数是否有环比数据
countRise: true, //件数环比是否上升
countRisePercent: '', //件数环比上升百分比
sevenDays: List(), //7天交易趋势天数数组
trendInSevenDays: List(), //7天交易趋势数据
});
export default InitialState;