四好公路
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.0 KiB

'use strict';
import { basicAction } from '@peace/utils'
import { ApiTable } from '$utils'
export function getReportSpotPrepare(data) {
return dispatch => basicAction({
type: 'post',
dispatch: dispatch,
data,
actionType: 'GET_REPORT_SPOT_PREPARE',
url: `${ApiTable.getReportSpotPrepare}`,
msg: { error: '查询随机乡镇失败' },
});
}
export function getSpotCheck(data) {
return dispatch => basicAction({
type: 'get',
query: data,
dispatch: dispatch,
actionType: 'GET_SPOT_CHECK',
url: `${ApiTable.getSpotCheck}`,
msg: { error: '随机抽查失败' },
});
}
export function getSpotCheckDetail(data) {
return dispatch => basicAction({
type: 'get',
query: data,
dispatch: dispatch,
actionType: 'GET_SPOT_CHECK_Detail',
url: `${ApiTable.getSpotCheckDetail}`,
reducer: { name: 'spotCheckDetail' },
msg: { error: '查询随机抽查明细失败' },
});
}