import {request} from '../utils/request' //新增客商 export function addCustomer(data){ return request({ url: '/aggregate/platformcompany', method: 'post', data:data }) } //编辑客商 export function editCustomer(data){ return request({ url: '/aggregate/platformcompany', method: 'put', data:data }) } //客商列表 export function getCustomerList(data){ return request({ url: '/aggregate/platformcompany/page', method: 'get', data:data }) } //id获取客商信息 export function getCustomerById(id){ return request({ url: '/aggregate/platformcompany/'+id, method: 'get', // data:data }) } //获取客商选项 export function getCustomerOption(){ return request({ url: '/aggregate/platformcompany/options', method: 'get', // data:data }) } //搜索客商选项 export function getCustomerOptionById(id){ return request({ url: '/aggregate/platformcompany/options/'+id, method: 'get', // data:data }) } //新增物料 export function addMaterial(data){ return request({ url: '/aggregate/platformmaterial', method: 'post', data:data }) } //编辑物料 export function editMaterial(data){ return request({ url: '/aggregate/platformmaterial', method: 'put', data:data }) } //物料列表 export function getMaterialList(data){ return request({ url: '/aggregate/platformmaterial/page', method: 'get', data:data }) } //id获取物料信息 export function getMaterialById(id){ return request({ url: '/aggregate/platformmaterial/'+id, method: 'get', // data:data }) } //获取物料选项 export function getMaterialOption(){ return request({ url: '/aggregate/platformmaterial/options', method: 'get', // data:data }) } //搜索物料选项 export function getMaterialOptionById(id){ return request({ url: '/aggregate/platformmaterial/options'+id, method: 'get', // data:data }) }