|
|
|
|
@ -7,8 +7,11 @@ import { HT_HOST } from '../config';
|
|
|
|
|
import { resultDataCb } from '../components/DateGroupRadio/date';
|
|
|
|
|
import { isEmpty } from '../utils/commons';
|
|
|
|
|
|
|
|
|
|
const defaultParams = { WebCode: 'all', IncludeTickets: 1, IncludeInternal: 1, };
|
|
|
|
|
|
|
|
|
|
export const fetchBizOrderCount = async (params, type='', typeVal='') => {
|
|
|
|
|
const { errcode, errmsg, ...result } = await fetchJSON(HT_HOST + '/service-web/QueryData/GetOrderCount_biz', {
|
|
|
|
|
...defaultParams,
|
|
|
|
|
...params,
|
|
|
|
|
COLI_ApplyDate1: params.Date1,
|
|
|
|
|
COLI_ApplyDate2: params.Date2,
|
|
|
|
|
@ -38,6 +41,7 @@ const _typeRes = {
|
|
|
|
|
};
|
|
|
|
|
export const fetchBizOrderCountByType = async (type, params) => {
|
|
|
|
|
const { errcode, errmsg, ...result } = await fetchJSON(HT_HOST + '/service-web/QueryData/GetOrderCountByType_biz', {
|
|
|
|
|
...defaultParams,
|
|
|
|
|
...params,
|
|
|
|
|
COLI_ApplyDate1: params.Date1,
|
|
|
|
|
COLI_ApplyDate2: params.Date2,
|
|
|
|
|
@ -60,6 +64,7 @@ export const fetchBizOrderCountByType = async (type, params) => {
|
|
|
|
|
const _detailRes = { ordercount1: [], ordercount2: [] };
|
|
|
|
|
export const fetchBizOrderDetailByType = async (params, type='', typeVal='', orderContent='detail') => {
|
|
|
|
|
const { errcode, errmsg, ...result } = await fetchJSON(HT_HOST + '/service-web/QueryData/GetOrderCountByType_Sub_biz', {
|
|
|
|
|
...defaultParams,
|
|
|
|
|
SubOrderType: orderContent,
|
|
|
|
|
...params,
|
|
|
|
|
COLI_ApplyDate1: params.Date1,
|
|
|
|
|
|