internalSettle.js
679 Bytes
import * as types from '../constants/ActionTypes';
const initialState = {
internal_settle_list:{},
internal_settle_othercost_detail:{}
};
export default function environment(state = initialState, action) {
switch (action.type) {
case types.GET_INTERNAL_SETTLE_LIST:
return Object.assign({}, state, {
internal_settle_list: action.internal_settle_list,
});
case types.GET_INTERNAL_SETTLE_OTHER_COST_DETAIL:
return Object.assign({}, state, {
internal_settle_othercost_detail: action.internal_settle_othercost_detail,
});
default:
return state;
}
}