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 }) }, 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' } }) }, }