import request from '@/utils/request' // 创建农资采购 export function createInputsBuy(data) { return request({ url: '/product/inputs-buy/create', method: 'post', data: data }) } // 更新农资采购 export function updateInputsBuy(data) { return request({ url: '/product/inputs-buy/update', method: 'put', data: data }) } // 删除农资采购 export function deleteInputsBuy(id) { return request({ url: '/product/inputs-buy/delete?id=' + id, method: 'delete' }) } // 获得农资采购 export function getInputsBuy(id) { return request({ url: '/product/inputs-buy/get?id=' + id, method: 'get' }) } // 获得农资采购分页 export function getInputsBuyPage(query) { return request({ url: '/product/inputs-buy/page', method: 'get', params: query }) } // 导出农资采购 Excel export function exportInputsBuyExcel(query) { return request({ url: '/product/inputs-buy/export-excel', method: 'get', params: query, responseType: 'blob' }) } // 获得农资采购单号 export function getInputsBuyNumberList(count) { return request({ url: '/product/inputs-buy/getInputsBuyNumberList?count=' + count, method: 'get' }) } // 获得农资采购(通过出库单号,用于新增) export function getInputsBuyByOutbound(query) { return request({ url: '/product/inputs-buy/getInputsBuyByOutbound', method: 'get', params: query, }) } // 冻结 export function getInputsBuyFreeze(id) { return request({ url: '/product/inputs-buy/freeze?id='+id, method: 'put', }) } // 激活 export function getInputsBuyActive(id) { return request({ url: '/product/inputs-buy/active?id='+id, method: 'put', }) } // 上链 export function getInputsBuyUpChain(id) { return request({ url: '/product/inputs-buy/upChain?id='+id, method: 'put', }) }