import service from '../service' // 库存调拨api // 请求参数 const serviceUrl = '/wly-warehouse-service' const axiosConfig = { url: null, method: 'post', data: null, showLoading: null, headers: { 'Content-Type': 'application/json' } } export class InventoryAllocationApi { //分页查询商品库存列表 getList = (params, showLoading = true) => { axiosConfig.url = `${serviceUrl}/stock/query/stockChannelTransferFlow` axiosConfig.data = params axiosConfig.showLoading = showLoading return service(axiosConfig) } //新增调拨 addAllot = (params, showLoading = true) => { axiosConfig.url = `${serviceUrl}/stock/manage/transferStockChannel` axiosConfig.data = params axiosConfig.showLoading = showLoading return service(axiosConfig) } } export default new InventoryAllocationApi()