123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- import request from '@/utils/request'
- export function getFullCustomerList(query) {
- return request({
- url: '/crm/customer/getFullCustomerList',
- method: 'get',
- params: query
- })
- }
- export function getLineCustomerList(query) {
- return request({
- url: '/crm/customer/getLineCustomerList',
- method: 'get',
- params: query
- })
- }
- export function getCustomerList(query) {
- return request({
- url: '/crm/customer/getCustomerList',
- method: 'get',
- params: query
- })
- }
- export function getCustomerListByIds(query) {
- return request({
- url: '/crm/customer/getCustomerListByIds',
- method: 'get',
- params: query
- })
- }
- export function getMyCustomerList(query) {
- return request({
- url: '/crm/customer/getMyCustomerList',
- method: 'get',
- params: query
- })
- }
- export function getCustomerDetails(query) {
- return request({
- url: '/crm/customer/getCustomerDetails/',
- method: 'get',
- params: query
- })
- }
- export function getCustomerListBySearch(query) {
- return request({
- url: '/crm/customer/getCustomerListBySearch',
- method: 'get',
- params: query
- })
- }
- export function exportCustomer(query) {
- return request({
- url: '/crm/customer/export',
- method: 'get',
- params: query
- })
- }
- export function assignToUser(data) {
- return request({
- url: '/crm/customer/assignToUser',
- method: 'post',
- data: data
- })
- }
- export function assignUser(data) {
- return request({
- url: '/crm/customer/assignUser',
- method: 'post',
- data: data
- })
- }
- export function receive(data) {
- return request({
- url: '/crm/customer/receive',
- method: 'post',
- data: data
- })
- }
- export function recover(data) {
- return request({
- url: '/crm/customer/recover',
- method: 'post',
- data: data
- })
- }
- // 下载用户导入模板
- export function importLineTemplate() {
- return request({
- url: '/crm/customer/importLineTemplate',
- method: 'get'
- })
- }
- export function addCustomer(data) {
- return request({
- url: '/crm/customer/add',
- method: 'post',
- data: data
- })
- }
- export function addMyCustomer(data) {
- return request({
- url: '/crm/customer/addMyCustomer',
- method: 'post',
- data: data
- })
- }
- // 修改客户
- export function updateCustomer(data) {
- return request({
- url: '/crm/customer/edit',
- method: 'put',
- data: data
- })
- }
- export function updateCustomerSource(data) {
- return request({
- url: '/crm/customer/updateCustomerSource',
- method: 'post',
- data: data
- })
- }
|