printedparts: show revision at kiosk; low-stock email uses gage tag + item link

Kiosk now displays the scanned revision (badge, quantity, and done screens) so
the operator sees which revision they checked out - it was already recorded on
the take, just not shown. Low-stock email now uses the gage lab tag (was the
internal item code) and links to the item page when site_base_url is set (new
core setting, category email; emails have no request context to derive the URL).
This commit is contained in:
cproudlock
2026-07-22 10:12:51 -04:00
parent baf6862151
commit d141fef203
3 changed files with 22 additions and 3 deletions

View File

@@ -40,6 +40,7 @@
<div>
<h2>{{ item.itemname }}</h2>
<p class="kiosk-hint">{{ item.gagelabtag || item.itemcode }} - {{ item.quantityonhand }} on hand</p>
<p v-if="scannedRevision != null" class="kiosk-rev">Revision {{ scannedRevision }}</p>
</div>
</div>
<p class="kiosk-prompt">Scan your badge or tap in your SSO</p>
@@ -62,6 +63,7 @@
<div>
<h2>{{ item.itemname }}</h2>
<p class="kiosk-hint">{{ item.quantityonhand }} on hand</p>
<p v-if="scannedRevision != null" class="kiosk-rev">Revision {{ scannedRevision }}</p>
</div>
</div>
<p class="kiosk-prompt">How many are you taking?</p>
@@ -82,6 +84,7 @@
<!-- done -->
<section v-else-if="step === 'done'" class="kiosk-step">
<p class="kiosk-success">Done - {{ doneMessage }}</p>
<p v-if="scannedRevision != null" class="kiosk-hint">Checked out revision {{ scannedRevision }}</p>
<p class="kiosk-hint">Starting over in a few seconds...</p>
</section>
</div>
@@ -222,6 +225,7 @@ function reset() {
}
.kiosk-prompt { font-size: 1.6rem; font-weight: 600; }
.kiosk-hint { color: var(--text-light); }
.kiosk-rev { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-top: 0.25rem; }
.kiosk-error {
background: var(--danger);
color: #fff;