123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- 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 getMyAssistList(query) {
- return request({
- url: '/crm/customer/getMyAssistList',
- method: 'get',
- params: query
- })
- }
- export function getCustomerDetails(query) {
- return request({
- url: '/crm/customer/getCustomerDetails/',
- method: 'get',
- params: query
- })
- }
- export function getCustomerDetails1(query) {
- return request({
- url: '/crm/customer/getCustomerDetails1/',
- method: 'get',
- params: query
- })
- }
- export function getLineCustomerDetails(query) {
- return request({
- url: '/crm/customer/getLineCustomerDetails/',
- method: 'get',
- params: query
- })
- }
- export function getCustomer1(customerId) {
- return request({
- url: '/crm/customer/query1/' + customerId,
- method: 'get'
- })
- }
- 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 exportCustomerByIds(customerId) {
- return request({
- url: '/crm/customer/'+ customerId,
- method: 'post',
- })
- }
- export function assignToUser(data) {
- return request({
- url: '/crm/customer/assignToUser',
- method: 'post',
- data: data
- })
- }
- export function assistToUser(data) {
- return request({
- url: '/crm/customer/assistToUser',
- 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 importVisitTemplate() {
- return request({
- url: '/crm/customer/importVisitTemplate',
- 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
- })
- }
|