You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

137 lines
3.4 KiB

import request from '@/utils/request'
export default {
// 查询分页列表
listPage: function(params) {
return request({
url: '/crm/v1/crmcustomertemp/asListPage',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 初始化
fetchDetailsBySid: function(data) {
return request({
url: '/crm/v1/crmcustomertemp/fetchSid/' + data,
method: 'get'
})
},
save: function(data) {
return request({
url: '/crm/v1/crmcustomertemp/save',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
update: function(data) {
return request({
url: '/crm/v1/crmcustomertemp/update/' + data.sid,
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 根据当前登录用户的部分sid查询客户单位信息
selCustomerOrgList: function(data) {
return request({
url: '/crm/v1/crmcustomerorg/selCustomerOrgList',
method: 'get',
params: data
})
},
// 定点企业禁用
disableState: function(data) {
return request({
url: '/crm/v1/crmcustomerorg/disableState',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 定点企业启用
enable: function(data) {
return request({
url: '/crm/v1/crmcustomerorg/enable',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
deleteBySids: function(data) {
return request({
url: '/crm/v1/crmcustomertemp/del/',
method: 'DELETE',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 车辆列表
vehList: function(params) {
return request({
url: '/as/v1/ascustomervehicle/vehList',
method: 'get',
params: params
})
},
// 新增、编辑车辆信息
details: function(data) {
return request({
url: '/as/v1/ascustomervehicle/fetchDetailsBySid/' + data,
method: 'get'
})
},
// 保存车辆信息
saveCustomerVeh: function(data) {
return request({
url: '/as/v1/ascustomervehicle/saveCustomerVeh',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 删除车辆信息
delBySids: function(data) {
return request({
url: '/as/v1/ascustomervehicle/delBySids',
method: 'DELETE',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 对接人列表
personList: function(params) {
return request({
url: '/as/v1/ascustomerperson/personList',
method: 'get',
params: params
})
},
// 删除对接人信息
delPersonBySids: function(data) {
return request({
url: '/as/v1/ascustomerperson/delBySids',
method: 'DELETE',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 快捷新增客户--初始化
quickAddInit: function(params) {
return request({
url: '/as/v1/ascustomervehicle/quickAddInit',
method: 'get',
params: params
})
},
// 快捷新增客户--保存
quickAddSave: function(data) {
return request({
url: '/as/v1/ascustomervehicle/quickAddSave',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
}
}