123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- import request from '@/utils/request'
- export function listLineCustomer(query) {
- return request({
- url: '/crm/customer/lineList',
- method: 'get',
- params: query
- })
- }
- export function getCustomerListByIds(query) {
- return request({
- url: '/crm/customer/getCustomerListByIds',
- method: 'get',
- params: query
- })
- }
- export function addLineCustomer(data) {
- return request({
- url: '/crm/customer/addLine',
- method: 'post',
- data: data
- })
- }
- // 修改客户
- export function updateLineCustomer(data) {
- return request({
- url: '/crm/customer/editLine',
- method: 'put',
- data: data
- })
- }
- export function updateCustomerSource(data) {
- return request({
- url: '/crm/customer/updateCustomerSource',
- method: 'post',
- data: data
- })
- }
- // 删除客户
- export function delLineCustomer(customerId) {
- return request({
- url: '/crm/customer/removeLine/' + customerId,
- method: 'delete'
- })
- }
- // 查询客户详细
- export function getLineCustomer(customerId) {
- return request({
- url: '/crm/customer/queryLine/' + customerId,
- method: 'get'
- })
- }
- // 导出客户
- export function exportLineCustomer(query) {
- return request({
- url: '/crm/customer/exportLine',
- method: 'get',
- params: query
- })
- }
- export function exportCustomer(query) {
- return request({
- url: '/crm/customer/export',
- method: 'get',
- params: query
- })
- }
- // 下载用户导入模板
- export function importLineTemplate() {
- return request({
- url: '/crm/customer/importLineTemplate',
- method: 'get'
- })
- }
- export function assignCustomer(data) {
- return request({
- url: '/crm/customer/assign',
- method: 'post',
- data: data
- })
- }
- export function assignCrmToCompany(data) {
- return request({
- url: '/crm/customer/assignCrmToCompany',
- method: 'post',
- data: data
- })
- }
- export function listCustomer(query) {
- return request({
- url: '/crm/customer/list',
- method: 'get',
- params: query
- })
- }
- export function getCustomer(customerId) {
- return request({
- url: '/crm/customer/query/' + customerId,
- method: 'get'
- })
- }
- export function getCustomer1(customerId) {
- return request({
- url: '/crm/customer/query1/' + customerId,
- method: 'get'
- })
- }
- export function getCustomer2(customerId) {
- return request({
- url: '/crm/customer/query2/' + customerId,
- method: 'get'
- })
- }
- export function addCustomer(data) {
- return request({
- url: '/crm/customer',
- method: 'post',
- data: data
- })
- }
- // 修改客户
- export function updateCustomer(data) {
- return request({
- url: '/crm/customer',
- method: 'put',
- data: data
- })
- }
- // 删除客户
- export function delCustomer(customerId) {
- return request({
- url: '/crm/customer/' + customerId,
- method: 'delete'
- })
- }
|