export class AsnSearchEntity {
  projectCode!: string;
  asnCode!: string;
  orderCode!: string;
  orderType!: string;
  supplierAccount!: string;
  warehouseId!: string;
  state!: Array<number>;
  asnType!: number | null;
  lastUpdateOrderTimeBegin!: string;
  lastUpdateOrderTimeEnd!: string;
  createTimeBegin!: string;
  createTimeEnd!: string;
  createName!: string;
  updateTimeBegin!: string;
  updateTimeEnd!: string;
  updateName!: string;
  asnId!: string;
}

export class AsnReceiptEntity {
  asnId!: string;
  warehouseName!: string;
  warehouseId!: string;
  asnRowReceivingVOList!: Array<AsnRowReceivingVOListEntity>;
}

export class AsnRowReceivingVOListEntity {
  storagePartitionId!: number; // 库存地点id
  asnRowId!: string; // 入库单行id
  orderCode!: string;
  projectCode!: string;
  materialId!: string; // 物料id
  materialCode!: string;
  materialName!: string;
  specsName!: string;
  totalCount!: string; // 总数
  checkCount!: string; // 待检数量
  receivedCount!: string; // 历史收货数量
  receivingCount!: string; // 当此收货数量
}

//===============      AsnDetail      ================================================================
export class AsnDetailSearchEntity {
  asnCode!: string;
  asnStatus!: string;
  orderCode!: string;
  projectCode!: string;
  materialCode!: string;
  materialName!: string;
  supplierName!: string;
  jobNumber!: string;
  searchBeginTime!: string;
  searchEndTime!: string;
  asnId!: string;
  state!: Array<number>;
  states!: Array<number>;
}

// 入库单 上架
export class AsnPutawayEntity {
  asnId!: string;
  stockMaterialList!: Array<AsnPutawayStockMaterialListEntity>;
}

export class AsnPutawayStockMaterialListEntity {
  id!: string; // 主键
  asnId!: string; // 入库单ID
  asnRowId!: string; // 行ID
  warehouseId!: string; // 工厂ID
  areaId!: string; // 库区
  binId!: string; // 库位
  containerId!: string; // 容器ID
  count!: string;
}

// 入库 内部订单实体
export class AsnInternalOrderEntity {
  asnCode!: string;
  orderCode!: string;
  projectCode!: string;
  moveType!: string; // 移动类型
  asnType!: string; // 入库单类型: 0: 采购订单，1: 手动录入 2：生产订单 3：内部订单
  warehouseId!: string; // 工厂id
  warehouseName!: string; // 工厂Name
  asnRowAddVOList!: Array<asnRowAddVOList>;
}

export class asnRowAddVOList {
  materialId!: number;
  orderCode!: string;
  projectCode!: string;
  warehouseId!: string;
  rowNo!: string;
  totalCount!: number;
  moveType!: string;
  storagePartitionId!: number;
  mesOnlyId!: string;
}
