journey.js 1.25 KB
/*
 * @Author: yangming yangming@didihu.com.cn
 * @Date: 2023-09-07 16:54:06
 * @LastEditors: yangming yangming@didihu.com.cn
 * @LastEditTime: 2023-09-27 12:11:28
 * @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { http_sop } from '@/main'

//查询模板实例客户分页列表
const getCustomersList = params => {
  return http_sop({
    url: `process/sop/api/sopInsts/customers`,
    method: 'get',
    data: params,
    sign: false
  })
}
//旅程列表
const byGroupIdSop = params => {
  return http_sop({
    url: 'process/sop/api/sopInsts/byGroupId',
    method: 'get',
    data: params,
    sign: false
  })
}

//旅程列表详情
const getInstIdDetail = params => {
  return http_sop({
    url: 'process/sop/api/sopInsts/' + params.instId,
    method: 'get',
    // data: params,
    sign: false
  })
}
//旅程列表详情
const statistic = params => {
  return http_sop({
    url: 'process/sop/api/sopInsts/customer/statistic',
    method: 'get',
    data: params,
    sign: false
  })
}
export default { getCustomersList, byGroupIdSop, getInstIdDetail, statistic }