import ajax from './ajax'
import { LOCATION_URL } from '@/config/config'

// 1. 定义基础路径
// const BASE_URL = '/huiqicha'
const BASE_URL = LOCATION_URL
// const BASE_URL = 'https://lhlas-dev.zrubft.com'
// const BASE_URL = 'http://158.226.90.148:10022'
// 获取卡片信息
export const cardList = (custType) => ajax(BASE_URL +
    `/system/campaignStatistics/card?custType=${custType}`,
    {}, 'GET');
//外层列表查询
export const visitingTaskList = (params) => ajax(BASE_URL +
    `/system/campaignStatistics/list?custType=${params.custType}&startTime=${params.startTime}&endTime=${params.endTime}&campaignName=${params.campaignName}&campsource=${params.campsource}&pageNum=${params.pageNum}&pageSize=${params.pageSize}`,
    {}, 'GET');

//支行列表查询
export const branchList = (params) => ajax(BASE_URL +
    `/system/campaignStatistics/checkBranchList?campaignId=${params.campaignId}&pageNum=${params.pageNum}&pageSize=${params.pageSize}`,
    {}, 'GET');

//网点列表查询
export const outletList = (params) => ajax(BASE_URL +
    `/system/campaignStatistics/checkOutletList?deptId=${params.deptId || ''}&campaignId=${params.campaignId}&pageNum=${params.pageNum}&pageSize=${params.pageSize}`,
    {}, 'GET');

//个人列表查询
export const personList = (params) => ajax(BASE_URL +
    `/system/campaignStatistics/checkPersonList?deptId=${params.deptId}&campaignId=${params.campaignId}&personType=${params.personType}&pageNum=${params.pageNum}&pageSize=${params.pageSize}`,
    {}, 'GET');





