import request from "@/utils/request";

export interface StacInfo {
  houseName?: string;
  houseNo?: string;
  xNum?: number;
  yNum?: number;
}

export interface StackObj {
  area?: string;
  coordinate?: string; //	储位坐标
  currentLayer?: number; //当前使用层数
  deptId?: string;
  enable?: number;
  houseName?: string;
  houseNo?: string;
  id?: string;
  layer?: number; //	可使用层数
  lineId?: string;
  lineNo?: string;
  locationNo?: string;
  lockState?: number;
  materialType?: string;
  name?: string;
  orgId?: string;
  size?: string;
  state?: number; //	储位状态；0-空闲；1-半载； 2-满载
  type?: number; //	储位类型 1 线边仓 2 干燥柜 3 货架
}

export enum StackState {
  NORMALE = 0, // 正常情况下
  SELECT_OUT = 1, // 选择调出
  SELECT_IN = 2, // 选择调入
}

// 线边仓配置查询
export function getStackInfo(data?: any) {
  return request({
    url: "/api/v1/wms/position/lineStockInfo",
    method: "get",
    data,
  });
}
