fuliqi
2024-01-24 29c1e7eb5ac16e90d8991a86c1c071bc312ec8d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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()