Skip to content

Supplies and requests ​

English · Русский

Component options for @mes/aps@1.23.0. Prefix Settings names with schedule.; see how to fill in a record.

Configure the supplies area above the main chart, the requests area below it, their heights, and the supply popup. See tooltips for row rules and arrows for supply-to-operation arrow tooltips.

Visibility and size ​

appSettings.equipmentAreaSettings.showSupply ​

Shows supplies above the main chart. false removes the area from layout and recalculates the main chart height.

  • Type: boolean.
  • Default: true.
  • Height comes from barSettings.supplyRequestHeight.

appSettings.equipmentAreaSettings.showRequest ​

Shows requests below the chart. false removes the area entirely.

  • Type: boolean.
  • Default: true.

barSettings.supplyRequestHeight ​

Height in pixels of both areas. It also determines supply icon size.

  • Type: number, pixels.
  • Package default: 40.
  • Visibility depends on showSupply and showRequest.

Supply popup ​

supplyTooltipConfig ​

Clicking a supply icon opens this popup. For each material in the supply it displays trackingNumber as a heading and the configured rows beneath it. Keys identify material fields, not supply fields.

Material types describe name, date, quantity, trackingNumber, materialDefinitionName, materialDefinitionVersion, materialDefinitionItemId, materialDefinitionUOM, materialDefinition, and guid. This is an example set: additional material fields in schedule data can be configured the same way. Without configuration, only tracking-number headings appear.

Example ​

Hide requests, reduce supply height, and show material name and quantity:

json
{
  "appSettings": {
    "equipmentAreaSettings": { "showRequest": false }
  },
  "barSettings": { "supplyRequestHeight": 32 },
  "supplyTooltipConfig": {
    "materialDefinitionName": { "label": "Material", "order": 1 },
    "quantity": { "label": "Quantity", "order": 2 }
  }
}

The request area disappears, and the supply area is 32 pixels high. Clicking a supply displays each material's tracking number followed by rows such as Material: Steel and Quantity: 20.