outSourcing.js
3.5 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import * as types from '../constants/ActionTypes';
const initialState = {
// formDefind :[],
// providerList :{},
// recruitProviderList:{},
// providerDel :{},
// is_import :'init',
// errorMeg :'',
// provider_is_ok :'init',
// providerAccount :{},
outSouringList : {}
};
export default function environment(state = initialState,action) {
switch(action.type) {
// case types.DETAIL_RANGE_AGENTS:
// return Object.assign({}, state, {
// agentDetailList: action.agentDetailList,
// total_direct: action.total_direct,
// total_bylower: action.total_bylower,
// total_count: action.total_count,
// });
case types.LIST_OUTSOURCING:
return Object.assign({}, state, {
outSouringList: action.outSouringList,
});
case types.LIST_OUTSOURCING_STORE:
return Object.assign({}, state, {
outSouringStoreList: action.outSouringStoreList,
});
case types.DETAIL_OUTSOURCING_STORE:
return Object.assign({}, state, {
outSouringStoreDetail: action.outSouringStoreDetail,
});
case types.LIST_OUTSOURCING_SKU:
return Object.assign({}, state, {
outSouringSkuList: action.outSouringSkuList,
});
case types.LIST_OUTSOURCING_HUMAN:
return Object.assign({}, state, {
outSouringCheckerList: action.outSouringCheckerList,
});
case types.LIST_OUTSOURCING_INSPECTOR:
return Object.assign({}, state, {
outSouringInspectorList: action.outSouringInspectorList,
});
case types.LIST_OUTSOURCING_CLERK:
return Object.assign({}, state, {
outSouringClerkList: action.outSouringClerkList,
});
case types.LIST_CASCADER_SKU:
return Object.assign({}, state, {
skuCascaderList: action.skuCascaderList,
});
case types.LIST_CHECK:
return Object.assign({}, state, {
outSouringCheckList: action.outSouringCheckList,
});
case types.LIST_CHECK_DETAIL:
return Object.assign({}, state, {
outSouringCheckDetail: action.outSouringCheckDetail,
});
case types.LIST_ATTENDENCE:
return Object.assign({}, state, {
outSouringAttendenceList: action.outSouringAttendenceList,
});
case types.LIST_ATTENDENCE_PRIVATE:
return Object.assign({}, state, {
outSouringAttendencePrivateList: action.outSouringAttendencePrivateList,
});
case types.LIST_ATTENDENCE_DETAIL:
return Object.assign({}, state, {
outSouringAttendenceDetailList: action.outSouringAttendenceDetailList,
});
case types.LIST_BRAND_OPTION:
return Object.assign({}, state, {
outSouringBrandOptionsList: action.outSouringBrandOptionsList,
});
case types.LIST_STORE_OPTION:
return Object.assign({}, state, {
outSouringStoreOptionsList: action.outSouringStoreOptionsList,
});
case types.PROJECT_NAME:
return Object.assign({}, state, {
project_name: action.project_name,
});
default:
return state;
}
}