feat(CardAssignment): support EAN13
This commit is contained in:
parent
98a3b07237
commit
8e314f8676
@ -389,6 +389,12 @@
|
|||||||
:paused={!scannerActive}
|
:paused={!scannerActive}
|
||||||
on:detect={(e) => {
|
on:detect={(e) => {
|
||||||
if (scannerActive) {
|
if (scannerActive) {
|
||||||
|
if (`${e.detail.decodedText}`.length === 13) {
|
||||||
|
e.detail.decodedText = e.detail.decodedText.substring(
|
||||||
|
0,
|
||||||
|
e.detail.decodedText.length - 1
|
||||||
|
);
|
||||||
|
}
|
||||||
scannerActive = false;
|
scannerActive = false;
|
||||||
console.log({ type: "DETECT", code: e.detail.decodedText });
|
console.log({ type: "DETECT", code: e.detail.decodedText });
|
||||||
if (runnerinfo.id === 0) {
|
if (runnerinfo.id === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user