import request from "@/utils/request";
import {param} from "@/utils";
//获得可用仓
export function warehouseAdjustmentList(params){
  return request({
    url:'/ecw/warehouse/adjustmentList',
    method:'post',
    params:params
  })
}
//发起调仓请求
export function  orderWarehouseInAdjustApply(data){
  return request({
    url:'/order/order-warehouse-in/adjust-apply',
    method:'put',
    data:data,
  })
}

//获取订单列表
export function ecwOrderList(params){
  return request({
    url:'/ecw/order/list',
    method:'get',
    params:params,
  })
}
//申请退仓
export function orderWarehouseInDelete(data){
  return request({
    url:'/order/order-warehouse-in/rollback-apply',
     method:'put',
    data:data,
  })
}
//通过bpmFormId 获得仓库审核单详情
 export function warehouseApprovalGetByFormId(params){
  return request({
    url:'order/order-warehouse-approval/get-by-form-id',
    method:'get',
    params:params
  })
 }
  export function warehouseAreaPositionList(params){
    return request({
      url:'/ecw/warehouse/list',
      method:'get',
      params:params
    })
}
// 根据审核ID获得仓库审核单详情
export function warehouseApprovalGetById(params){
  return request({
    url:'/order/order-warehouse-approval/get-by-id',
    method:'get',
    params,
  })
}
