tsv2-library 1.0.61-alpha.39 → 1.0.61-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsv2-library.es.js +10 -6
- package/dist/tsv2-library.umd.js +1 -1
- package/package.json +1 -1
package/dist/tsv2-library.es.js
CHANGED
|
@@ -65518,11 +65518,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
65518
65518
|
return ((_b = (_a = assetInfo.value) == null ? void 0 : _a.asset) == null ? void 0 : _b.tagReported) ?? {};
|
|
65519
65519
|
});
|
|
65520
65520
|
const showButtonReportTAG = computed(() => {
|
|
65521
|
-
var _a, _b
|
|
65521
|
+
var _a, _b;
|
|
65522
65522
|
const isQRReported = (_a = tagReported.value) == null ? void 0 : _a.qr;
|
|
65523
65523
|
const isRFIDReported = (_b = tagReported.value) == null ? void 0 : _b.rfid;
|
|
65524
|
-
const hasQR =
|
|
65525
|
-
const hasRFID =
|
|
65524
|
+
const hasQR = hasTag("QR");
|
|
65525
|
+
const hasRFID = hasTag("RFID");
|
|
65526
65526
|
return (!isRFIDReported && !isQRReported || !isQRReported && hasQR || !isRFIDReported && hasRFID) && !isVerified.value;
|
|
65527
65527
|
});
|
|
65528
65528
|
const tagReportedLabel = computed(() => {
|
|
@@ -65536,6 +65536,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
65536
65536
|
}
|
|
65537
65537
|
return "";
|
|
65538
65538
|
});
|
|
65539
|
+
const hasTag = (tagType) => {
|
|
65540
|
+
var _a;
|
|
65541
|
+
return ((_a = assetInfo.value) == null ? void 0 : _a.tagType.includes(tagType)) ?? false;
|
|
65542
|
+
};
|
|
65539
65543
|
const submitForm = async (payload) => {
|
|
65540
65544
|
try {
|
|
65541
65545
|
setLoading(true);
|
|
@@ -65648,7 +65652,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
65648
65652
|
}, 1032, ["visible", "onConfirm", "onUpdate:visible"])
|
|
65649
65653
|
]),
|
|
65650
65654
|
fields: withCtx(() => {
|
|
65651
|
-
var _a
|
|
65655
|
+
var _a;
|
|
65652
65656
|
return [
|
|
65653
65657
|
createElementVNode("div", _hoisted_3$a, [
|
|
65654
65658
|
createVNode(unref(_sfc_main$1r), {
|
|
@@ -65659,7 +65663,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
65659
65663
|
((_a = assetInfo.value) == null ? void 0 : _a.asset) ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
65660
65664
|
!props.byUser && assetWithTag.value ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
65661
65665
|
createElementVNode("div", _hoisted_6$3, [
|
|
65662
|
-
(
|
|
65666
|
+
hasTag("RFID") ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
|
|
65663
65667
|
createVNode(unref(_sfc_main$12), {
|
|
65664
65668
|
disabled: tagReported.value.rfid,
|
|
65665
65669
|
"scan-validation": matchTag,
|
|
@@ -65672,7 +65676,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
65672
65676
|
severity: "primary"
|
|
65673
65677
|
})
|
|
65674
65678
|
])) : createCommentVNode("", true),
|
|
65675
|
-
(
|
|
65679
|
+
hasTag("QR") ? (openBlock(), createBlock(unref(_sfc_main$12), {
|
|
65676
65680
|
key: 1,
|
|
65677
65681
|
disabled: tagReported.value.qr,
|
|
65678
65682
|
"scan-validation": matchTag,
|