周沫沫历险记
2 years ago
7 changed files with 57 additions and 38 deletions
@ -1,5 +1,6 @@ |
|||
'use strict'; |
|||
|
|||
import * as reserveItem from './reserve-item'; |
|||
|
|||
export default { |
|||
...reserveItem |
|||
} |
@ -0,0 +1,13 @@ |
|||
'use strict'; |
|||
import { RouteTable, RouteRequest, ApiTable, basicAction } from '$utils' |
|||
|
|||
export function getReserveItemReport(type) { |
|||
return dispatch => basicAction({ |
|||
type: 'get', |
|||
dispatch: dispatch, |
|||
actionType: 'GET_RESERVEITEM_REPORT', |
|||
url: `${ApiTable.getReserveItemReport.replace('{:type}', type)}`, |
|||
msg: { error: '获取储备项目统计信息失败' }, |
|||
reducer: { name: 'reserveItemReport' } |
|||
}); |
|||
} |
@ -1,14 +0,0 @@ |
|||
'use strict'; |
|||
import { RouteTable, RouteRequest } from '$utils' |
|||
|
|||
export function getServiceUrl() { |
|||
return dispatch => { |
|||
return RouteRequest.get(RouteTable.getWeeklyService) |
|||
.then(res => { |
|||
return dispatch({ |
|||
type: "SERVER_WEEKLY_URL", |
|||
payload: res |
|||
}) |
|||
}); |
|||
} |
|||
} |
@ -0,0 +1,5 @@ |
|||
export const RESERVEITEM_TYPE = { |
|||
periodicStatistics: 1, //周期统计
|
|||
depSummary: 2, |
|||
lostStatistic: 3 |
|||
} |
Loading…
Reference in new issue