clewOrder.js 1.23 KB
import { http } from '@/main'

const url1 = '/rop-scrm-entmicro/router'
const url = '/rop-scrm-shopmall/router'
//门店号选择服务
const getMerchantList = params => {
    params.method = 'entmicro.api.merchant.listDepartmentTree.select.merchant'
    return http({
        url: url1,
        method: 'post',
        data: params,
        sign: true
    })
}

//分页查询线索喜报配置信息
const getClueReportList = params => {
    params.method = `scrm.api.shopmall.clueReportConfig.page`
    return http({
        url,
        method: 'post',
        data: params,
        sign: true
    })
}

// 新增或修改喜报配置
const updateClueReportConfig = params => {
    params.method = `scrm.api.shopmall.clueReportConfig.insertOrUpdate`
    return http({
        url,
        method: 'post',
        data: params,
        sign: true,
        returnAll: true
    })
}
// 根据ID获取线索喜报配置信息
const getClueDetailById = params => {
    params.method = `scrm.api.shopmall.clueReportConfig.getById`
    return http({
        url,
        method: 'post',
        data: params,
        sign: true,
        returnAll: true
    })
}
export default { getMerchantList, getClueReportList, updateClueReportConfig,getClueDetailById }