import request from '@/utils/request' // 查询物料信息列表 export function listMaterial(query) { return request({ url: '/bs/material/list', method: 'get', params: query }) } // 查询物料信息详细 export function getMaterial(id) { return request({ url: '/bs/material/' + id, method: 'get' }) } // 新增物料信息 export function addMaterial(data) { return request({ url: '/bs/material', method: 'post', data: data }) } // 修改物料信息 export function updateMaterial(data) { return request({ url: '/bs/material', method: 'put', data: data }) } // 删除物料信息 export function delMaterial(id) { return request({ url: '/bs/material/' + id, method: 'delete' }) }