@feedmepos/mf-inventory-portal 1.2.22-dev.1 → 1.2.22-dev.3
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/{App-CVo40hoN.js → App-aHs88TEq.js} +1 -1
- package/dist/{ApprovalView-B99YGXOt.js → ApprovalView-DBZQsKg9.js} +9 -9
- package/dist/{BindingsDialog-DGFYmVX9.js → BindingsDialog-arTYvJn2.js} +2 -2
- package/dist/{BindingsPicker-CVWxRkDE.js → BindingsPicker-Bm0s6sKE.js} +9 -9
- package/dist/{BindingsTable-Cxs_cQrM.js → BindingsTable-DXlM-qDU.js} +1 -1
- package/dist/ClosingDraftView-DVB02I09.js +1888 -0
- package/dist/ClosingTemplateView-k8EkjlIJ.js +2001 -0
- package/dist/{DeliveryOrderPrintPreview-D-H7S-4t.js → DeliveryOrderPrintPreview-CSv5FOby.js} +8 -8
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BsPMd4IE.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D0BKSSSp.js} +33 -33
- package/dist/{FmMultiselectDialog-DXVvibUU.js → FmMultiselectDialog-DOf8rbVD.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dq8lMkNV.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BZX05ToS.js} +49 -49
- package/dist/{ImportView-DUPfQshy.js → ImportView-6ckPf1Ll.js} +27 -27
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DxLVS1Ar.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-QK12Klz5.js} +8 -8
- package/dist/{IngredientGroupView-CqPl6RZI.js → IngredientGroupView-D2RuwnJ3.js} +17 -17
- package/dist/{IngredientsView--7ro7P7J.js → IngredientsView-CZIyrGJ0.js} +72 -73
- package/dist/{IntegrationView-BZnq8gYp.js → IntegrationView-D9JrR8Hb.js} +3 -3
- package/dist/{InventoryBindingForm-DASUGZuO.js → InventoryBindingForm-6QGOGZlB.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-l_EgNW0u.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DG_WKGVU.js} +12 -12
- package/dist/{InventoryBindingSummary-BoUAsK9S.js → InventoryBindingSummary-CoeODKLp.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DimqJCjO.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ovi_bWlF.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C_wNgXUC.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CaKjg0eV.js} +7 -7
- package/dist/{PublishView-B-Zal--Y.js → PublishView-BLtshSks.js} +10 -10
- package/dist/{PurchaseOrderPrintPreview-CoXu4VO-.js → PurchaseOrderPrintPreview-DCLjVNlh.js} +13 -13
- package/dist/{ReceiveRequestView-B7rprDy7.js → ReceiveRequestView-DdJ3_qMY.js} +115 -115
- package/dist/{RecipeView-BbMlUt0v.js → RecipeView-DYFDguU9.js} +50 -50
- package/dist/{StockView-Bko2-Rzd.js → StockView-DyUrO7Y0.js} +7 -7
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DONtcweN.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bj05qEWl.js} +1 -1
- package/dist/{SupplierView-D4hAT4CW.js → SupplierView-BYDbDGfd.js} +93 -93
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DuaHM-Wk.js +3233 -0
- package/dist/{TransferTemplateView-BLWYhdZG.js → TransferTemplateView-db5L1CIZ.js} +140 -140
- package/dist/{UnitView-Boi_sRGP.js → UnitView-4ygzmFTY.js} +44 -44
- package/dist/{WarehouseView-B1aAyncU.js → WarehouseView-D-b-t21n.js} +66 -66
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/{app-C4dN86_k.js → app-BDiHcGqi.js} +30052 -30029
- package/dist/app.js +4 -4
- package/dist/{decimal-Cf4voIJl.js → decimal-C-phHxE7.js} +1 -1
- package/dist/{format-unit-display-CjsVuoHS.js → format-unit-display-MVZRrkkD.js} +33 -33
- package/dist/{import-export.helper-DmouV6nF.js → import-export.helper-C3camZX5.js} +6 -6
- package/dist/{index-DK93lkR_.js → index-B60G756h.js} +1 -1
- package/dist/{index-D2C87f4k.js → index-B6zknB--.js} +1 -1
- package/dist/{purchase-order-template-CQcIyT35.js → purchase-order-template-Bkz_Xjv5.js} +1 -1
- package/dist/{stock-CRKwCBhd.js → stock-DnawcaKQ.js} +1 -1
- package/dist/{supplier-BGeDlnSm.js → supplier-Bq0fMcn0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Dg3hbUaX.js → use-ingredient-select-dialog-BH2O0eEN.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DRCiAYUs.js → use-inventory-binding-dialog-CI_pMWSk.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +8 -1
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +8 -4
- package/package.json +3 -3
- package/dist/ClosingDraftView-gBO5Icdy.js +0 -1739
- package/dist/ClosingTemplateView-C61_1m3k.js +0 -1970
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Cr30q-Ft.js +0 -3394
- package/dist/closing-template-CNtgIoiQ.js +0 -53
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as J, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as K, renderList as G, toDisplayString as h, createCommentVNode as
|
|
2
|
-
import { a as O, e as U, S as ye, i as be, D as se, j as q, f as ie,
|
|
3
|
-
import { useDialog as ue, useSnackbar as
|
|
4
|
-
import { i as
|
|
1
|
+
import { defineComponent as J, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as K, renderList as G, toDisplayString as h, createCommentVNode as Q, ref as I, watch as oe, resolveComponent as E, createBlock as T, withCtx as A, createVNode as f, unref as i, isRef as le, normalizeClass as me, normalizeStyle as ce, Teleport as pe, normalizeProps as ve, guardReactiveProps as fe } from "vue";
|
|
2
|
+
import { a as O, e as U, S as ye, i as be, D as se, j as q, f as ie, $ as ge, r as H, A as xe, n as W, a0 as _e, a1 as he, y as ae, u as Ve, b as Ue, G as we, I as Ce, J as Se, K as ke, L as Fe } from "./app-BDiHcGqi.js";
|
|
3
|
+
import { useDialog as ue, useSnackbar as Z, useProxiedModel as re, useBreakpoints as $e } from "@feedmepos/ui-library";
|
|
4
|
+
import { i as Ee, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { defineStore as Ae, storeToRefs as De } from "pinia";
|
|
6
6
|
import { useI18n as Y } from "@feedmepos/mf-common";
|
|
7
|
-
import { F as Re } from "./decimal-
|
|
8
|
-
import { _ as Me } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { F as Re } from "./decimal-C-phHxE7.js";
|
|
8
|
+
import { _ as Me } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ovi_bWlF.js";
|
|
9
9
|
const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|
|
@@ -51,7 +51,7 @@ const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
|
51
51
|
s("div", Le, h((t = r.bindedIngredient) != null && t.length ? "Convert binding" : "Item unit"), 1)
|
|
52
52
|
]);
|
|
53
53
|
}), 128))
|
|
54
|
-
])) :
|
|
54
|
+
])) : Q("", !0),
|
|
55
55
|
a.value.length ? (v(), w("div", Ne, [
|
|
56
56
|
p[1] || (p[1] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
57
57
|
s("div", { class: "flex-1 py-8 px-16" }, "Recipe"),
|
|
@@ -70,7 +70,7 @@ const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
|
70
70
|
s("div", je, h((t = r.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((k) => k.code).join(", ")) + " " + h(r.bindedIngredient && ((u = r.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((y = r.bindedIngredient) == null ? void 0 : y.length) - 3} more` : ""), 1)
|
|
71
71
|
]);
|
|
72
72
|
}), 128))
|
|
73
|
-
])) :
|
|
73
|
+
])) : Q("", !0),
|
|
74
74
|
d.value.length ? (v(), w("div", qe, [
|
|
75
75
|
p[2] || (p[2] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
76
76
|
s("div", { class: "flex-1 py-8 px-16" }, "Menu"),
|
|
@@ -89,11 +89,11 @@ const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
|
89
89
|
s("div", Ke, h((t = r.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((k) => k.code).join(", ")) + " " + h(r.bindedIngredient && ((u = r.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((y = r.bindedIngredient) == null ? void 0 : y.length) - 3} more` : ""), 1)
|
|
90
90
|
]);
|
|
91
91
|
}), 128))
|
|
92
|
-
])) :
|
|
92
|
+
])) : Q("", !0)
|
|
93
93
|
]));
|
|
94
94
|
}
|
|
95
|
-
}),
|
|
96
|
-
const c = ue(), g =
|
|
95
|
+
}), X = Ae("unitForm", function() {
|
|
96
|
+
const c = ue(), g = Z(), m = O(), l = I(!1), a = I();
|
|
97
97
|
function d() {
|
|
98
98
|
const t = {
|
|
99
99
|
unit: {},
|
|
@@ -125,7 +125,7 @@ const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
|
125
125
|
type: "success"
|
|
126
126
|
});
|
|
127
127
|
} catch (u) {
|
|
128
|
-
u instanceof ye &&
|
|
128
|
+
u instanceof ye && Ee(u) ? c.open({
|
|
129
129
|
title: "Cannot delete unit",
|
|
130
130
|
contentComponent: Ie,
|
|
131
131
|
contentComponentProps: {
|
|
@@ -187,7 +187,7 @@ const Pe = { class: "flex flex-col gap-8" }, Te = {
|
|
|
187
187
|
};
|
|
188
188
|
});
|
|
189
189
|
function Je() {
|
|
190
|
-
const { updateUnit: S, deleteUnit: c } =
|
|
190
|
+
const { updateUnit: S, deleteUnit: c } = X(), { t: g } = Y();
|
|
191
191
|
async function m(a, d) {
|
|
192
192
|
const n = ie(d);
|
|
193
193
|
if (a === q.Edit) {
|
|
@@ -232,7 +232,7 @@ function Je() {
|
|
|
232
232
|
}
|
|
233
233
|
] };
|
|
234
234
|
}
|
|
235
|
-
const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" },
|
|
235
|
+
const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Qe = { class: "flex-1" }, We = { class: "flex-1" }, Xe = { class: "flex" }, Ze = { class: "flex items-center" }, et = { class: "fm-typo-en-body-lg-600 flex-grow" }, tt = { class: "flex flex-col gap-24" }, nt = { class: "flex gap-24" }, ot = { class: "flex-1" }, lt = { class: "flex-1" }, st = /* @__PURE__ */ J({
|
|
236
236
|
__name: "UnitForm",
|
|
237
237
|
props: {
|
|
238
238
|
mode: {},
|
|
@@ -320,25 +320,25 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
320
320
|
const o = n.value.measurements ?? [];
|
|
321
321
|
o.splice(e, 1), n.value.measurements = o, l("update:modelValue", n.value);
|
|
322
322
|
}
|
|
323
|
-
const
|
|
323
|
+
const $ = I();
|
|
324
324
|
return c({
|
|
325
325
|
validateInputs: () => {
|
|
326
326
|
var e, o;
|
|
327
|
-
(o = (e =
|
|
327
|
+
(o = (e = $.value) == null ? void 0 : e.validateInputs) == null || o.call(e);
|
|
328
328
|
},
|
|
329
329
|
resetInputsValidation: () => {
|
|
330
330
|
var e, o;
|
|
331
|
-
(o = (e =
|
|
331
|
+
(o = (e = $.value) == null ? void 0 : e.resetInputsValidation) == null || o.call(e);
|
|
332
332
|
},
|
|
333
333
|
resetInputs: () => {
|
|
334
334
|
var e, o;
|
|
335
|
-
(o = (e =
|
|
335
|
+
(o = (e = $.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
|
|
336
336
|
}
|
|
337
337
|
}), (e, o) => {
|
|
338
|
-
const V =
|
|
338
|
+
const V = E("FmTextField"), R = E("FmStepperField"), C = E("FmButton"), M = E("FmCard"), D = E("FmForm");
|
|
339
339
|
return v(), T(D, {
|
|
340
340
|
ref_key: "formRef",
|
|
341
|
-
ref:
|
|
341
|
+
ref: $,
|
|
342
342
|
class: "flex flex-col gap-40",
|
|
343
343
|
onValidationSuccess: d
|
|
344
344
|
}, {
|
|
@@ -347,7 +347,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
347
347
|
return [
|
|
348
348
|
s("div", Oe, [
|
|
349
349
|
s("div", Ye, [
|
|
350
|
-
s("div",
|
|
350
|
+
s("div", Qe, [
|
|
351
351
|
f(V, {
|
|
352
352
|
disabled: e.disabled,
|
|
353
353
|
label: i(a)("inventory.unit.name"),
|
|
@@ -357,7 +357,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
357
357
|
"label-mark": "required"
|
|
358
358
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
359
359
|
]),
|
|
360
|
-
s("div",
|
|
360
|
+
s("div", We, [
|
|
361
361
|
f(V, {
|
|
362
362
|
disabled: e.disabled,
|
|
363
363
|
label: i(a)("inventory.unit.symbol"),
|
|
@@ -379,7 +379,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
379
379
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
380
380
|
])
|
|
381
381
|
]),
|
|
382
|
-
s("div",
|
|
382
|
+
s("div", Xe, [
|
|
383
383
|
f(C, {
|
|
384
384
|
disabled: e.disabled,
|
|
385
385
|
type: "button",
|
|
@@ -395,13 +395,13 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
395
395
|
key: x.id
|
|
396
396
|
}, {
|
|
397
397
|
default: A(() => [
|
|
398
|
-
s("div",
|
|
398
|
+
s("div", Ze, [
|
|
399
399
|
s("div", et, h(i(a)("inventory.unit.measurement.measurementDefault", [_ + 1])), 1),
|
|
400
400
|
f(C, {
|
|
401
401
|
disabled: e.disabled,
|
|
402
402
|
variant: "tertiary",
|
|
403
403
|
"prepend-icon": "delete",
|
|
404
|
-
onClick: (
|
|
404
|
+
onClick: (F) => k(_)
|
|
405
405
|
}, null, 8, ["disabled", "onClick"])
|
|
406
406
|
]),
|
|
407
407
|
s("div", tt, [
|
|
@@ -412,7 +412,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
412
412
|
class: "col-span-2",
|
|
413
413
|
label: i(a)("inventory.unit.measurement.name"),
|
|
414
414
|
modelValue: e.modelValue.measurements[_].name,
|
|
415
|
-
"onUpdate:modelValue": (
|
|
415
|
+
"onUpdate:modelValue": (F) => e.modelValue.measurements[_].name = F,
|
|
416
416
|
rules: [i(H)()],
|
|
417
417
|
"label-mark": "required"
|
|
418
418
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
@@ -422,7 +422,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
422
422
|
disabled: e.disabled,
|
|
423
423
|
label: i(a)("inventory.unit.measurement.symbol"),
|
|
424
424
|
modelValue: e.modelValue.measurements[_].abbrev,
|
|
425
|
-
"onUpdate:modelValue": (
|
|
425
|
+
"onUpdate:modelValue": (F) => e.modelValue.measurements[_].abbrev = F,
|
|
426
426
|
rules: [i(H)()],
|
|
427
427
|
"label-mark": "required"
|
|
428
428
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
@@ -432,21 +432,21 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
432
432
|
disabled: e.disabled,
|
|
433
433
|
class: "col-span-3",
|
|
434
434
|
label: i(a)("inventory.unit.measurement.conversion"),
|
|
435
|
-
"model-value": +i(
|
|
436
|
-
"onUpdate:modelValue": (
|
|
435
|
+
"model-value": +i(W)(e.modelValue.measurements[_].conversion),
|
|
436
|
+
"onUpdate:modelValue": (F) => u.value = u.value.map(
|
|
437
437
|
(P, L) => L === _ ? {
|
|
438
438
|
...P,
|
|
439
439
|
conversion: i(Re).toPrecision(
|
|
440
|
-
i(_e)(
|
|
440
|
+
i(_e)(F),
|
|
441
441
|
t.value
|
|
442
442
|
)
|
|
443
443
|
} : P
|
|
444
444
|
),
|
|
445
445
|
rules: [i(he)(0)],
|
|
446
|
-
step: +i(
|
|
446
|
+
step: +i(W)({ amount: 1, precision: t.value }),
|
|
447
447
|
"helper-text": i(a)("inventory.unit.measurement.conversionHelper", {
|
|
448
448
|
measurementSymbol: e.modelValue.measurements[_].name || " measurement unit",
|
|
449
|
-
conversion: +i(
|
|
449
|
+
conversion: +i(W)(e.modelValue.measurements[_].conversion),
|
|
450
450
|
unitSymbol: r.value || "base unit"
|
|
451
451
|
})
|
|
452
452
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue", "rules", "step", "helper-text"])
|
|
@@ -469,7 +469,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
469
469
|
},
|
|
470
470
|
emits: ["update:show"],
|
|
471
471
|
setup(S) {
|
|
472
|
-
const c = S, g = O(), m =
|
|
472
|
+
const c = S, g = O(), m = Z(), { t: l } = Y(), a = re(c, "show"), d = re(c, "unit"), n = b(() => {
|
|
473
473
|
switch (c.mode) {
|
|
474
474
|
case U.READ:
|
|
475
475
|
return "";
|
|
@@ -531,7 +531,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
531
531
|
var e, o;
|
|
532
532
|
(o = (e = r.value) == null ? void 0 : e.validateInputs) == null || o.call(e);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function $() {
|
|
535
535
|
switch (c.mode) {
|
|
536
536
|
case U.READ:
|
|
537
537
|
return;
|
|
@@ -542,7 +542,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
return (e, o) => {
|
|
545
|
-
const V =
|
|
545
|
+
const V = E("FmButton"), R = E("FmSideSheet");
|
|
546
546
|
return v(), T(R, {
|
|
547
547
|
"model-value": i(a),
|
|
548
548
|
"onUpdate:modelValue": o[3] || (o[3] = (C) => le(a) ? a.value = C : null),
|
|
@@ -575,7 +575,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
575
575
|
"onUpdate:modelValue": o[0] || (o[0] = (C) => le(d) ? d.value = C : null),
|
|
576
576
|
mode: e.mode,
|
|
577
577
|
disabled: t.value,
|
|
578
|
-
"onClick:submit": o[1] || (o[1] = (C) =>
|
|
578
|
+
"onClick:submit": o[1] || (o[1] = (C) => $())
|
|
579
579
|
}, null, 8, ["modelValue", "mode", "disabled"])
|
|
580
580
|
]),
|
|
581
581
|
_: 1
|
|
@@ -586,15 +586,15 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
586
586
|
__name: "UnitView",
|
|
587
587
|
setup(S) {
|
|
588
588
|
const c = O(), g = Ve(), m = Ue();
|
|
589
|
-
ue(),
|
|
590
|
-
const { t: l } = Y(), a = b(() => c.units), { createUnit: d, updateUnit: n } =
|
|
589
|
+
ue(), Z();
|
|
590
|
+
const { t: l } = Y(), a = b(() => c.units), { createUnit: d, updateUnit: n } = X(), { unitDialogProps: p, unitViewLoading: r } = De(X()), { columnDefs: t } = Je();
|
|
591
591
|
function u(M) {
|
|
592
592
|
switch (M) {
|
|
593
593
|
case "add":
|
|
594
594
|
return m.isEnabled ? void 0 : d();
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
const y = I(""), k = I(!1),
|
|
597
|
+
const y = I(""), k = I(!1), $ = b(() => k.value || r.value), { breakpoints: e } = $e(), o = b(() => e.value.xs || e.value.sm), V = b(() => o.value ? 10 : 20), R = we(), C = b(() => [
|
|
598
598
|
...m.isEnabled ? [] : [
|
|
599
599
|
{
|
|
600
600
|
label: l("inventory.unit.create.title"),
|
|
@@ -605,7 +605,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
605
605
|
]
|
|
606
606
|
]);
|
|
607
607
|
return (M, D) => {
|
|
608
|
-
const B =
|
|
608
|
+
const B = E("FmTable");
|
|
609
609
|
return v(), T(Ce, {
|
|
610
610
|
title: i(l)("inventory.unit.title"),
|
|
611
611
|
actions: C.value,
|
|
@@ -631,7 +631,7 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
631
631
|
"column-defs": i(t),
|
|
632
632
|
"row-data": a.value,
|
|
633
633
|
"search-value": y.value,
|
|
634
|
-
loading: !i(g)._currentLocation ||
|
|
634
|
+
loading: !i(g)._currentLocation || $.value,
|
|
635
635
|
onRowClick: D[1] || (D[1] = (x) => i(n)(x.original)),
|
|
636
636
|
"page-size": V.value
|
|
637
637
|
}, {
|
|
@@ -641,12 +641,12 @@ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ze
|
|
|
641
641
|
onRowClick: i(n)
|
|
642
642
|
}, {
|
|
643
643
|
default: A((_) => {
|
|
644
|
-
var
|
|
644
|
+
var F, P, L, N, ee, z, te, j, ne;
|
|
645
645
|
return [
|
|
646
646
|
s("div", it, [
|
|
647
647
|
s("div", ut, [
|
|
648
|
-
f(i(
|
|
649
|
-
render: (L = (P = (
|
|
648
|
+
f(i(Fe), {
|
|
649
|
+
render: (L = (P = (F = _.name) == null ? void 0 : F.column) == null ? void 0 : P.columnDef) == null ? void 0 : L.cell,
|
|
650
650
|
props: (ee = (N = _.name) == null ? void 0 : N.getContext) == null ? void 0 : ee.call(N)
|
|
651
651
|
}, null, 8, ["render", "props"])
|
|
652
652
|
]),
|