VRt.Packer [PC] (6.20.2289)

Veeroute Support Team: servicedesk@veeroute.comLicense: Proprietary

Veeroute Packer 的软件界面.

描述

该服务旨在计算商品在给定包裹内的放置.

包的类型

托盘

托盘

单托盘

如果托盘完全装满了相同的产品,那么这样的托盘称为mono-pallet, 这种托盘具有以下装载规则:

  1. 考虑了放置货物的托盘的最大允许高度. 1、考虑了装载托盘的最大允许重量. 1.货物包装只能平行于托盘壁堆放.
  2. 允许围绕垂直 Z 轴旋转包装,并且只能以直角旋转. 1.为了使位置之间的高度相等(在顶部放置另一个托盘),可以在堆叠中添加空白空间.

区域托盘

单托盘形成后,将同一物品的剩余部分货物放在下一个托盘上, 以硬纸板隔板分隔成多个区域,每个区域只放置一件商品, 而这些区域有以下限制:

  1. 区域是矩形的.
  2. 区域边之间的比例可以是任意的.
  3. 任何区域的一侧始终与托盘边缘接触.
  4. 托盘上允许的区域数量:从 2 到 6.
  5. 各区按单托盘装填规则进行装填. 1、所有货物的堆垛高度不超过50mm,这样一个托盘上可以再放一个托盘.
  6. 允许在不同位置(高度差大于50mm)形成不同堆垛高度的托盘,如果这些托盘是堆叠的顶部托盘.

混合箱

mixbox

如果上述步骤未能以这种方式放置物品, 为了使托盘具有所需的高度或重量,使用混合箱:

  1. Mixbox只能放在一层.
  2. 不同的货物可以放在一个mixbox中,这种情况下,它像托盘一样被隔板分开(唯一的区别是包装货物的高度不对齐).
  3. 混合箱可以与同一个托盘上的物品混合.
  4. 一种产品可以包装在不同的混合箱中.

投币口

插槽

装载的托盘相互堆叠,插槽是放置托盘堆叠的位置. 插槽没有物理实体 - 因此插槽的“主体”尺寸为零.

坐标系

坐标

为了指示包裹和货物的位置,使用了局部坐标系, 其中特定对象的坐标相对于父对象的左下角表示,而:

  • 水平面 - 轴 X, Y
  • 垂直 - Z

商品与包裹的轴线比例:

  • 宽度 - X
  • 长度 - Y
  • 高度 - Z

实体图

erd

Pack

计算产品在包装内的放置。

Packing (SYNC)

Planning the optimal package.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required

Data for calculation.

required
Array of objects (product) [ 1 .. 70001 ] items unique

List of products.

required
Array of objects (package) [ 1 .. 11 ] items unique

List of packages. It is obligatory to have at least one package of each type (SLOT, PALLET, MIXBOX).

object (pack_settings)

Packing settings.

Responses

Response Schema: application/json
required
object (tracedata)

Data for request tracing.

required
Array of objects (blueprint) [ 0 .. 70001 ] items

A product layout plan as a list of packaging locations. The first level contains a list of pallet stacks.

required
object (pack_statistics)

General statistics for packing scheme.

Array of objects (entity_warning_list) [ 0 .. 70001 ] items

List of warnings. Depending on the flag calculation_settings.treat_warnings_as_errors - triggered checks are interpreted as errors or result in the removal of incorrect data from the calculation.

object (unpacked_items)

Unpacked items list.

progress
required
integer<int32> (calculation_progress) [ 0 .. 100 ]

Calculation progress as a percentage. The progress displays the current number of completed steps.

required
object (calculation_info)

Calculation information.

Request samples

Content type
application/json
Example
{
  • "products": [
    ],
  • "packages": [
    ],
  • "pack_settings": {
    }
}

Response samples

Content type
application/json
Example
{
  • "tracedata": {
    },
  • "blueprint": [
    ],
  • "statistics": {
    },
  • "progress": 100,
  • "info": {
    },
  • "warnings": [ ],
  • "unpacked_items": {
    }
}

Packing (ASYNC)

The result can be obtained using the result method, removing - with delete.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required

Data for calculation.

required
Array of objects (product) [ 1 .. 70001 ] items unique

List of products.

required
Array of objects (package) [ 1 .. 11 ] items unique

List of packages. It is obligatory to have at least one package of each type (SLOT, PALLET, MIXBOX).

object (pack_settings)

Packing settings.

Responses

Response Schema: application/json
required
object (tracedata)

Data for request tracing.

id
required
string<uuid> (calculation_id)

Calculation identifier.

Request samples

Content type
application/json
Example
{
  • "products": [
    ],
  • "packages": [
    ],
  • "pack_settings": {
    }
}

Response samples

Content type
application/json
{
  • "tracedata": {
    },
  • "id": "11111111-2222-3333-4444-555555555555"
}

Calculation state

Read calculation state by the calculation identifier.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string<uuid> (calculation_id)
Example: 11111111-2222-3333-4444-555555555555

计算标识符

Responses

Response Schema: application/json
required
object (tracedata)

Data for request tracing.

progress
required
integer<int32> (calculation_progress) [ 0 .. 100 ]

Calculation progress as a percentage. The progress displays the current number of completed steps.

required
object (calculation_info)

Calculation information.

Response samples

Content type
application/json
{
  • "tracedata": {
    },
  • "progress": 52,
  • "info": {
    }
}

Cancel calculation

Cancel calculation process by the calculation identifier.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string<uuid> (calculation_id)
Example: 11111111-2222-3333-4444-555555555555

计算标识符

Responses

Response samples

Content type
application/json
{
  • "tracedata": {
    },
  • "message": "bad task data",
  • "schema_errors": [ ],
  • "logical_errors": [
    ],
  • "warnings": [ ]
}

Getting the result

Getting the result based on the calculation identifier.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string<uuid> (calculation_id)
Example: 11111111-2222-3333-4444-555555555555

计算标识符

Responses

Response Schema: application/json
required
object (tracedata)

Data for request tracing.

required
Array of objects (blueprint) [ 0 .. 70001 ] items

A product layout plan as a list of packaging locations. The first level contains a list of pallet stacks.

required
object (pack_statistics)

General statistics for packing scheme.

Array of objects (entity_warning_list) [ 0 .. 70001 ] items

List of warnings. Depending on the flag calculation_settings.treat_warnings_as_errors - triggered checks are interpreted as errors or result in the removal of incorrect data from the calculation.

object (unpacked_items)

Unpacked items list.

progress
required
integer<int32> (calculation_progress) [ 0 .. 100 ]

Calculation progress as a percentage. The progress displays the current number of completed steps.

required
object (calculation_info)

Calculation information.

Response Schema: application/json
required
object (tracedata)

Data for request tracing.

required
Array of objects (blueprint) [ 0 .. 70001 ] items

A product layout plan as a list of packaging locations. The first level contains a list of pallet stacks.

required
object (pack_statistics)

General statistics for packing scheme.

Array of objects (entity_warning_list) [ 0 .. 70001 ] items

List of warnings. Depending on the flag calculation_settings.treat_warnings_as_errors - triggered checks are interpreted as errors or result in the removal of incorrect data from the calculation.

object (unpacked_items)

Unpacked items list.

progress
required
integer<int32> (calculation_progress) [ 0 .. 100 ]

Calculation progress as a percentage. The progress displays the current number of completed steps.

required
object (calculation_info)

Calculation information.

Response samples

Content type
application/json
Example
{
  • "tracedata": {
    },
  • "blueprint": [
    ],
  • "statistics": {
    },
  • "progress": 100,
  • "info": {
    },
  • "warnings": [ ],
  • "unpacked_items": {
    }
}

Result removal

Removal of the planning result by the calculation identifier.

Authorizations:
ApiKeyAuth
path Parameters
id
required
string<uuid> (calculation_id)
Example: 11111111-2222-3333-4444-555555555555

计算标识符

Responses

Response samples

Content type
application/json
{
  • "tracedata": {
    },
  • "message": "bad task data",
  • "schema_errors": [ ],
  • "logical_errors": [
    ],
  • "warnings": [ ]
}

Data validation

Checking data before planning.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required

Data for calculation.

required
Array of objects (product) [ 1 .. 70001 ] items unique

List of products.

required
Array of objects (package) [ 1 .. 11 ] items unique

List of packages. It is obligatory to have at least one package of each type (SLOT, PALLET, MIXBOX).

object (pack_settings)

Packing settings.

Responses

Response Schema: application/json
required
object (tracedata)

Data for request tracing.

required
Array of objects (entity_warning_list) [ 0 .. 70001 ] items

List of warnings. Depending on the flag calculation_settings.treat_warnings_as_errors - triggered checks are interpreted as errors or result in the removal of incorrect data from the calculation.

Request samples

Content type
application/json
Example
{
  • "products": [
    ],
  • "packages": [
    ],
  • "pack_settings": {
    }
}

Response samples

Content type
application/json
{
  • "tracedata": {
    },
  • "warnings": [ ]
}

System

系统功能。 所有服务共有的辅助功能。

检查服务可用性

检查服务可用性。

Responses

Response Schema: application/json
health
required
number<double> [ 0 .. 1 ]

Current health.

Response samples

Content type
application/json
{
  • "health": 0.999
}

获取服务版本

获取服务版本。

Responses

Response Schema: application/json
major
required
integer<int32> [ 1 .. 100 ]

产品版本。 在单个版本中,保证了服务之间通用数据结构的兼容性。 版本更改表示与以前版本的产品(和所有服务)不兼容的更改。

minor
required
integer<int32> [ 0 .. 111 ]

服务的小版本。 版本更改表示新功能。 该更新向后兼容服务的主要版本。

build
required
string [ 1 .. 64 ] characters

构建版本。 包含向后兼容的错误修复和文档更新。

Response samples

Content type
application/json
{
  • "major": 4,
  • "minor": 4,
  • "build": "1754RC"
}

检查服务可用性

检查服务可用性。

path Parameters
filename
required
string [ 6 .. 128 ] characters
Example: file_en.html

File name.

Responses

Response Schema:
string (file_html)

File with data in HTML format.

Response samples

Content type
application/json
{
  • "resource_id": "resource_id",
  • "detail": {
    }
}