import request from '@/utils/request'; // //获取机具类型树 export function equipmentTypeTree(data) { return request({ url: '/material/select/getDeviceTypeTree', method: 'post', data: data }); } //获取设备编号列表 export function getMachineListByCode(query) { return request({ url: '/base/machine/getMachineList', method: 'get', params: query }); } //新增盘带报废 export function addScrapInfo(data) { return request({ url: '/material/scrap/addList ', method: 'post', data: data }); } //获取盘带报废列表 export function getInventoryList(query) { return request({ url: '/material/scrap/inventoryList', method: 'get', params: query }); } //获取盘带报废详情 export function getScrapInfo(query) { return request({ url: '/material/scrap/getDetailsList', method: 'get', params: query }); } //修改盘带报废 export function editScrapInfo(data) { return request({ url: '/material/scrap/updateList ', method: 'post', data: data }); } //一级页面删除盘带报废 export function applyRemove(data) { return request({ url: '/material/scrap/delete ', method: 'post', data: data }); } //盘点报废通过与驳回 export function inventoryPass(data) { return request({ url: '/material/scrap/inventoryApprove', method: 'post', data: data }); }