'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: '查询随机抽查明细失败' }, }); }