123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- import request from '@/utils/request'
- // ******客户管理******
- // 客户管理查询
- export function customerMageGetAll(data) {
- return request({
- url: '/buyer/getAll',
- method: 'post',
- data
- })
- }
- // 标签查询
- export function getLabels(data) {
- return request({
- url: '/buyer/getLabels',
- method: 'post',
- data
- })
- }
- // 贴标签
- export function customerSaveUserLabel(data) {
- return request({
- url: '/buyer/saveUserLabel',
- method: 'post',
- data
- })
- }
- // 加入或取消黑名单
- export function customerBlacklist(data) {
- return request({
- url: '/buyer/blacklist',
- method: 'post',
- data
- })
- }
- // 更新积分
- export function updateBuyerCredit(data) {
- return request({
- url: '/buyer/updateCredit',
- method: 'post',
- data
- })
- }
- // 更新积分
- export function exportBuyerUser(data) {
- return request({
- url: '/buyer/export',
- method: 'post',
- data,
- responseType: 'blob'
- })
- }
- // 客户详情查询
- export function customerMageGetById(data) {
- return request({
- url: '/buyer/getById',
- method: 'post',
- data
- })
- }
- // 导出标签
- export const excel_platform_label = (data = {}) => request({
- url: 'label/excel_platform_label',
- method: 'post',
- data,
- responseType: 'blob'
- })
- // ******标签管理******
- // 标签管理查询
- export function tipsGetAll(data) {
- return request({
- url: '/label/getAll',
- method: 'post',
- data
- })
- }
- // 添加标签
- export function tipsAdd(data) {
- return request({
- url: '/label/save',
- method: 'post',
- data
- })
- }
- // 修改标签
- export function tipsUpdate(data) {
- return request({
- url: '/label/update',
- method: 'post',
- data
- })
- }
- // 删除标签
- export function tipsDelete(data) {
- return request({
- url: '/label/delete',
- method: 'post',
- data
- })
- }
- // 标签编辑查询
- export function tipsGetById(data) {
- return request({
- url: '/label/getById',
- method: 'post',
- data
- })
- }
- // 指定关系
- export function appointRelationship(data){
- return request({
- url:"/buyer/appoint",
- method:"post",
- data
- })
- }
- // 指定用户关系 团长 合伙人等
- export function appointUserRelationship(data){
- return request({
- url:"/shopApi/syncShop",
- method:"post",
- data
- })
- }
|