...
|
...
|
@@ -41,16 +41,22 @@ export default function refoundStatisticsReducer(state = initialState, action) { |
|
|
let amountRate = additionInfo.allAmountRate || 0;
|
|
|
let countRate = additionInfo.allNumberRate || 0;
|
|
|
let percentRate = additionInfo.returnRingRate || 0;
|
|
|
let sumHasTrendData = additionInfo.allAmountRateFlag;
|
|
|
let countHasTrendData = additionInfo.allNumberRateFlag;
|
|
|
let percentHasTrendData = additionInfo.returnRingRateFlag;
|
|
|
|
|
|
let nextState = state.set('isFetching', false)
|
|
|
.set('error', null)
|
|
|
.set('refoundSum', additionInfo.allAmount || 0)
|
|
|
.set('sumHasTrendData', sumHasTrendData)
|
|
|
.set('sumRatio', Math.abs(amountRate))
|
|
|
.set('sumRise', amountRate >= 0)
|
|
|
.set('refoundCount', additionInfo.allNumber || 0)
|
|
|
.set('countHasTrendData', countHasTrendData)
|
|
|
.set('countRatio', Math.abs(countRate))
|
|
|
.set('countRise', countRate >= 0)
|
|
|
.set('refoundPercent',additionInfo.returnAmountRate || 0)
|
|
|
.set('percentHasTrendData', percentHasTrendData)
|
|
|
.set('percentRatio', Math.abs(percentRate))
|
|
|
.set('percentRise', percentRate >= 0)
|
|
|
.set('sixMonths', Immutable.fromJS(sixMonths))
|
...
|
...
|
|