Skip to content
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

2 passed, 0 failed, 2 to do

  1. Body length119.5 – 120.5 mm In limits
  2. Noise floor… – -70 dB
  3. All six screws tight
  4. No scratches on the body
  • items is the list of checks. Each check has an id and a label. A check with a min, a max, or both is a measure, with an optional unit. A check without them is pass or fail.
  • v-model holds the results by id: a value for a measure, or pass for 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 submit with the results and a pass flag. The flag is true for a unit that passes. The button is off until each check is done.
  • locale sets the format of the limits. Change the words with labels or 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

NameTypeDefaultDescription
items*BlessQualityItem[]—
localestring"en"
labelsPartial<{ 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; }>—
modelValueBlessQualityResult{}

Events

NamePayloadDescription
update:modelValue[value: BlessQualityResult]
submit[results: BlessQualityResult, passed: boolean]

Released under the MIT License. Character names and artwork belong to their owners.