/* * @Author: zwq * @Date: 2023-11-02 14:31:42 * @LastEditors: zwq * @LastEditTime: 2023-11-04 14:56:10 * @Description: */ import request from '@/utils/request' // 创建库位 export function createWarehouseLocation(data) { return request({ url: '/extend/warehouse-location/create', method: 'post', data: data }) } // 更新库位 export function updateWarehouseLocation(data) { return request({ url: '/extend/warehouse-location/update', method: 'put', data: data }) } // 删除库位 export function deleteWarehouseLocation(id) { return request({ url: '/extend/warehouse-location/delete?id=' + id, method: 'delete' }) } // 获得库位 export function getWarehouseLocation(id) { return request({ url: '/extend/warehouse-location/get?id=' + id, method: 'get' }) } // 获得库位列表(通过仓库id) export function listByWarehouse(id) { return request({ url: '/extend/warehouse-location/listByWarehouse?warehouseId=' + id, method: 'get' }) } // 获得库位列表(All) export function listAll() { return request({ url: '/extend/warehouse-location/listAll', method: 'get' }) } // 获得库位code export function getCode() { return request({ url: '/extend/warehouse-location/getCode', method: 'get' }) } // 获得库位分页 export function getWarehouseLocationPage(data) { return request({ url: '/extend/warehouse-location/page', method: 'POST', data: data }) } // 获得库存总览数据 export function getOverview(data) { return request({ url: '/extend/warehouse-monitoring/getOverview', method: 'POST', data: data }) } // 获得库位占用率数据 export function getRate(data) { return request({ url: '/extend/warehouse-monitoring/getRate', method: 'POST', data: data }) } // 导出库位 Excel export function exportWarehouseLocationExcel(query) { return request({ url: '/extend/warehouse-location/export-excel', method: 'get', params: query, responseType: 'blob' }) }