import request from '@/utils/request' export function getMaterialList(params) { return request({ url: '/material/list', method: 'get', params }) } // 获取所有项目 export function getProductList(params) { return request({ url: '/product/page', method: 'get', params }) } // 获取所有父项目对应的子项目 export function getProductSonList(params) { return request({ url: '/product/father', method: 'get', params }) } // 添加物料 export function addMaterial(data) { return request({ url: '/material/add', method: 'post', data }) } // 添加标准 export function addStandards(data) { return request({ url: '/standards/add', method: 'post', data }) } // 添加规格 export function addSpecifications(data) { return request({ url: '/specifications/add', method: 'post', data }) }