WO-2026-0091 Running
Desk mic kit, black
128 of 200 pcs
English
A work order with the product, the quantity, the due time, and the state
A work order tells a station what to make, how many, and by when. Put the cards on a board of a line or on the screen of a station.
Assembly line 2 · Due 16 Nov, 15:00
Line 1 · Due 17 Nov
Packing
<template>
<div
style="display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px"
>
<BlessWorkOrderCard
number="WO-2026-0091"
product="Desk mic kit, black"
:target="200"
:done
station="Assembly line 2"
due="16 Nov, 15:00"
:state
@pause="state = 'paused'"
@start="state = 'running'"
@finish="((state = 'done'), (done = 200))"
/>
<BlessWorkOrderCard
number="WO-2026-0092"
product="Pop filter"
:target="500"
station="Line 1"
due="17 Nov"
state="queued"
/>
<BlessWorkOrderCard
number="WO-2026-0088"
product="USB-C cable kit"
:target="300"
:done="120"
station="Packing"
state="blocked"
/>
</div>
</template>
<script setup lang="ts">
import { ref } from "vue";
import { BlessWorkOrderCard, type BlessWorkOrderState } from "blessing-ui";
const state = ref<BlessWorkOrderState>("running");
const done = ref(128);
</script>number, product, and target are required. done is how many are made, and unit is the unit (default pcs).station and due show under the product, as text.state is queued (default), running, paused, blocked, or done. It shows as a mark and a word. A running order has an accent top edge, and a blocked one is dashed and red.progress element, named such as "128 of 200 pcs".start, pause, and finish. A done order has no buttons.locale sets the format of the numbers. Change the words with labels or a label pack: the five states, start, pause, resume, finish, and the functions due and progress.import { BlessWorkOrderCard } from "blessing-ui";| Name | Type | Default | Description |
|---|---|---|---|
number* | string | — | |
product* | string | — | |
target* | number | — | how many to make |
done | number | 0 | how many are made |
unit | string | "pcs" | |
due | string | — | the due time, as text |
station | string | — | the station or the line |
state | BlessWorkOrderState | "queued" | |
locale | string | "en" | |
labels | Partial<Record<BlessWorkOrderState, string> & { start: string; pause: string; resume: string; finish: string; due: (time: string) => string; progress: (done: string, target: string) => string; }> | — |
| Name | Payload | Description |
|---|---|---|
pause | [] | |
start | [] | |
finish | [] |