Calm motion: animations on this site only fade, with no movement
Quality check
Pass or fail checks and measured values against their limits
Records the inspection of one unit at a quality station. For the trend of a measure over many units, use the control chart.
Basic
itemsis the list of checks. Each check has anidand alabel. A check with amin, amax, or both is a measure, with an optionalunit. A check without them is pass or fail.v-modelholds the results by id: avaluefor a measure, orpassfor the others.- A measure inside its limits passes by itself. Outside them, it says "Out of limits" and is marked as not valid.
- A pass or fail check has two big buttons, as native radio buttons.
- Each check that fails has a dashed red frame and a tint. The status line on top counts the checks. If all are done, it also gives the result of the unit.
- "Save the check" emits
submitwith the results and a pass flag. The flag istruefor a unit that passes. The button is off until each check is done. localesets the format of the limits. Change the words withlabelsor a label pack. The API table lists the keys.
The checkPasses function gives the result of one check. It is exported for your own views.
Usage
ts
import { BlessQualityCheck } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
items* | BlessQualityItem[] | — | |
locale | string | "en" | |
labels | Partial<{ title: string; pass: string; fail: string; inLimits: string; outLimits: string; limits: (low: string, high: string) => string; summary: (passed: number, done: number, total: number) => string; ok: string; notOk: string; submit: string; }> | — | |
modelValue | BlessQualityResult | {} |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: BlessQualityResult] | |
submit | [results: BlessQualityResult, passed: boolean] |