kor TürkçeGitHub

ProductionLine

Shows stations, flow and the bottleneck of a line.

kor/ui/ProductionLineSource

When to use

  • Pick a sector and name the process of each station to get fitting icons.

Examples

Textile

Loading the example

<k:ProductionLine sector="textile" title="Shirt line" unit="pcs/h" stationPress=".onPress">
	<k:ProductionStation key="w" title="Weaving" process="weaving" rate="140"/>
	<k:ProductionStation key="d" title="Dyeing" process="dyeing" rate="120"/>
	<k:ProductionStation key="c" title="Cutting" process="cutting" rate="130" queue="40"/>
	<k:ProductionStation key="s" title="Sewing" process="sewing" rate="85" queue="210"/>
	<k:ProductionStation key="i" title="Ironing" process="ironing" rate="110"/>
	<k:ProductionStation key="p" title="Packing" process="packing" rate="125"/>
</k:ProductionLine>

Automotive

Loading the example

<k:ProductionLine sector="automotive" title="Body line" unit="cars/h">
	<k:ProductionStation title="Press" process="pressing" rate="42"/>
	<k:ProductionStation title="Welding" process="welding" rate="38"/>
	<k:ProductionStation title="Painting" process="painting" state="danger" statusText="Filter change"/>
	<k:ProductionStation title="Assembly" process="assembly" state="wait" rate="36"/>
	<k:ProductionStation title="Testing" process="testing" rate="40"/>
</k:ProductionLine>

Food, electronics and furniture

Loading the example

<k:Stack gap="22">
	<k:ProductionLine sector="food" title="Bakery"><k:ProductionStation title="Mixing" process="mixing"/><k:ProductionStation title="Baking" process="baking"/><k:ProductionStation title="Cooling" process="cooling"/><k:ProductionStation title="Packing" process="packing"/></k:ProductionLine>
	<k:ProductionLine sector="electronics" title="Board line"><k:ProductionStation title="SMT" process="smt"/><k:ProductionStation title="Soldering" process="soldering"/><k:ProductionStation title="Inspection" process="inspection"/><k:ProductionStation title="Packing" process="packing"/></k:ProductionLine>
	<k:ProductionLine sector="furniture" title="Sofa line"><k:ProductionStation title="Sawing" process="sawing"/><k:ProductionStation title="Sanding" process="sanding"/><k:ProductionStation title="Upholstery" process="upholstery"/><k:ProductionStation title="Shipping" process="shipping"/></k:ProductionLine>
</k:Stack>

API

Properties

NameTypeDefaultDescription
titlestringLine name
textstringProduct or order
sectorstringtextile, automotive, food, beverage, pharma, electronics, furniture, metal, packaging, chemical, construction or energy
productIconstringIcon of the product on the belt. Defaults to the sector
unitstringRate unit, such as pcs/h
showBottleneckbooleantrueWhether to mark the slowest running station

Aggregations

NameTypeDescription
stationsProductionStation[]Stations in order

Events

NameTypeDescription
stationPresskey: stringA station was pressed

Methods

NameDescription
getBottleneck(): ProductionStation | undefinedThe slowest running station. None when all rates match.

ProductionStation

A production station.

Properties

NameTypeDefaultDescription
keystringKey
titlestringName
processstringProcess, such as weaving, dyeing, cutting, sewing, pressing, welding, painting, assembly, robot, baking, smt, inspection or packing
iconstringReplaces the process icon
statestringinfoinfo running, success done, wait waiting, danger stopped, none idle
statusTextstringStatus text
ratefloat0Rate
queueint0Items waiting in front

Related

MachineCardSchedule