@feedmepos/mf-inventory-portal 1.0.15-dev.2 → 1.0.15-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-CgxrN-aD.js → App-3Zym4rob.js} +2 -2
- package/dist/ApprovalView-C4qLlZua.js +213 -0
- package/dist/{BindingsDialog-B_ZMDl-b.js → BindingsDialog-DHaF8DtC.js} +2 -2
- package/dist/{BindingsPicker-B84BG8zT.js → BindingsPicker-C04HnWZ-.js} +1 -1
- package/dist/{BindingsTable-DrvoykYc.js → BindingsTable-CnZUt7GU.js} +1 -1
- package/dist/{ClosingDraftView-Ds9sI2Eg.js → ClosingDraftView-DaMruAln.js} +41 -41
- package/dist/{ClosingTemplateView-BhZ1OXkD.js → ClosingTemplateView-B3lyKcz-.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-Yuxf-jCh.js → DeliveryOrderPrintPreview-CGPkYOfW.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D6ktiUO5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DFJNtwjV.js} +43 -43
- package/dist/{FmMultiselectDialog-4lVsA2Rn.js → FmMultiselectDialog-yR5Mo3U-.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-XmTRSHn_.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DoY67RWl.js} +57 -57
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B3PvtR0j.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BSuFAwN3.js} +1 -1
- package/dist/IngredientGroupView-B-hyo-7W.js +898 -0
- package/dist/IngredientsView-Cod5ahQy.js +1778 -0
- package/dist/{IntegrationView-BnrCkjWt.js → IntegrationView-D9KZtPN3.js} +5 -5
- package/dist/{InventoryBindingForm-uyHh2TI_.js → InventoryBindingForm-CrRoablh.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CECDj9Pw.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-W9p7khOs.js} +46 -46
- package/dist/{InventoryBindingSummary-DyHCqgIe.js → InventoryBindingSummary-D88BG4ze.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dx2lMf6h.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VtM-wvuF.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BCX3vlmU.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ccx9QvpN.js} +15 -15
- package/dist/{PublishView-BVGyY6nn.js → PublishView-DhE7YE-k.js} +13 -13
- package/dist/{PurchaseOrderPrintPreview-pbYIFiOG.js → PurchaseOrderPrintPreview-CF_VeOeU.js} +4 -4
- package/dist/ReceiveRequestView-Bx9-NHyn.js +2576 -0
- package/dist/{RecipeView-DcgoCf4g.js → RecipeView-JhM5Z4CP.js} +4 -4
- package/dist/{StockView-zO2uL662.js → StockView-u7jlKoO5.js} +108 -108
- package/dist/{SupplierView-I5bqiX_2.js → SupplierView-BDBBQnGy.js} +37 -37
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BJiobEDM.js +2090 -0
- package/dist/{TransferTemplateView-BDOt17yc.js → TransferTemplateView-CNMHm8Gy.js} +149 -149
- package/dist/{UnitView-BVY5S6-3.js → UnitView-UVgn7ofI.js} +32 -32
- package/dist/{WarehouseView-m6MKrtYq.js → WarehouseView-CEw69mhn.js} +26 -26
- package/dist/{app-DtICLubM.js → app-cfPLYfcH.js} +33227 -25194
- package/dist/app.js +5 -5
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +36 -0
- package/dist/{decimal-C1dAcCf3.js → decimal-BeCLbdwn.js} +1 -1
- package/dist/{feature-Y7qzvbl4.js → feature-dhG2tL_A.js} +79 -79
- package/dist/{format-unit-display-CPqfS4vp.js → format-unit-display-D3UdcFM6.js} +48 -48
- package/dist/{index-DIEdSG3y.js → index-BUou6R58.js} +1 -1
- package/dist/{index-0qsqwB0T.js → index-BkR-Qpc0.js} +4 -4
- package/dist/{stock-CowNp_xM.js → stock-DQPwSZX1.js} +1 -1
- package/dist/{supplier-JVTTlQNL.js → supplier-CAcd6PiU.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Df59lld2.js → use-ingredient-select-dialog-E3qfQso7.js} +5 -5
- package/dist/{use-inventory-binding-dialog-Bxxb93Kz.js → use-inventory-binding-dialog-DRKy4nUx.js} +1 -1
- package/dist/{vue-i18n-DJOdRwc3.js → vue-i18n-DLrqHK28.js} +271 -271
- package/package.json +4 -4
- package/dist/ApprovalView-DNGhkVc9.js +0 -147
- package/dist/IngredientGroupView-usK9stxT.js +0 -8779
- package/dist/IngredientsView-DPx8Z2zo.js +0 -1749
- package/dist/ReceiveRequestView-DZAgH2_u.js +0 -2516
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-NyQg_yR9.js +0 -2020
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as K, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as O, d as U, S as pe, f as ve, D as ne, h as L, e as se, O as fe, l as j, A as ye, i as J, P as be, Q as ge, p as oe, u as xe, b as _e, z as he, _ as Ve, B as Ue, C as we, E as Ce } from "./app-cfPLYfcH.js";
|
|
3
3
|
import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { defineStore as $e, storeToRefs as Ie } from "pinia";
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { F as De } from "./decimal-
|
|
8
|
-
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { useI18n as G } from "@feedmepos/mf-common";
|
|
7
|
+
import { F as De } from "./decimal-BeCLbdwn.js";
|
|
8
|
+
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VtM-wvuF.js";
|
|
9
9
|
const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|
|
@@ -15,10 +15,10 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
15
15
|
}, Be = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "flex flex-col"
|
|
18
|
-
}, ze = { class: "flex-1 py-8 px-16" },
|
|
18
|
+
}, ze = { class: "flex-1 py-8 px-16" }, Ne = {
|
|
19
19
|
class: "flex-0 py-8 px-16",
|
|
20
20
|
style: { "flex-basis": "240px" }
|
|
21
|
-
},
|
|
21
|
+
}, Le = {
|
|
22
22
|
key: 2,
|
|
23
23
|
class: "flex flex-col"
|
|
24
24
|
}, je = { class: "flex-1 py-8 px-16" }, qe = {
|
|
@@ -30,7 +30,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
30
30
|
unit: {}
|
|
31
31
|
},
|
|
32
32
|
setup(F) {
|
|
33
|
-
const c = F, y =
|
|
33
|
+
const c = F, y = O(), m = b(() => y.validateUnitUsage(c.unit)), a = b(() => m.value.filter((n) => n.from === "INGREDIENT")), r = b(() => m.value.filter((n) => n.from === "RECIPE")), d = b(() => m.value.filter((n) => n.from === "MENU"));
|
|
34
34
|
return (n, p) => (v(), w("div", Re, [
|
|
35
35
|
p[3] || (p[3] = s("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
|
|
36
36
|
a.value.length ? (v(), w("div", Me, [
|
|
@@ -67,11 +67,11 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
67
67
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
68
68
|
}, [
|
|
69
69
|
s("div", ze, V(i.code) + " " + V(i.name), 1),
|
|
70
|
-
s("div",
|
|
70
|
+
s("div", Ne, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
|
|
71
71
|
]);
|
|
72
72
|
}), 128))
|
|
73
73
|
])) : Y("", !0),
|
|
74
|
-
d.value.length ? (v(), w("div",
|
|
74
|
+
d.value.length ? (v(), w("div", Le, [
|
|
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"),
|
|
77
77
|
s("div", {
|
|
@@ -93,7 +93,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
93
93
|
]));
|
|
94
94
|
}
|
|
95
95
|
}), W = $e("unitForm", function() {
|
|
96
|
-
const c = Se(), y = ae(), m =
|
|
96
|
+
const c = Se(), y = ae(), m = O(), a = R(!1), r = R();
|
|
97
97
|
function d() {
|
|
98
98
|
const t = {
|
|
99
99
|
unit: {},
|
|
@@ -187,14 +187,14 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
187
187
|
};
|
|
188
188
|
});
|
|
189
189
|
function Ke() {
|
|
190
|
-
const { updateUnit: F, deleteUnit: c } = W(), { t: y } =
|
|
190
|
+
const { updateUnit: F, deleteUnit: c } = W(), { t: y } = G();
|
|
191
191
|
async function m(r, d) {
|
|
192
192
|
const n = se(d);
|
|
193
|
-
if (r ===
|
|
193
|
+
if (r === L.Edit) {
|
|
194
194
|
await F(n);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
if (r ===
|
|
197
|
+
if (r === L.Delete) {
|
|
198
198
|
await c(n);
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
@@ -217,7 +217,7 @@ function Ke() {
|
|
|
217
217
|
header: "",
|
|
218
218
|
cell(r) {
|
|
219
219
|
return ve(
|
|
220
|
-
[ne[
|
|
220
|
+
[ne[L.Edit], ne[L.Delete]],
|
|
221
221
|
(d) => {
|
|
222
222
|
m(d, r.row.original);
|
|
223
223
|
}
|
|
@@ -232,7 +232,7 @@ function Ke() {
|
|
|
232
232
|
}
|
|
233
233
|
] };
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const Oe = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Qe = { class: "flex-1" }, Ye = { class: "flex-1" }, Je = { class: "flex" }, We = { class: "flex items-center" }, Xe = { class: "fm-typo-en-body-lg-600 flex-grow" }, Ze = { class: "flex flex-col gap-24" }, et = { class: "flex gap-24" }, tt = { class: "flex-1" }, nt = { class: "flex-1" }, ot = /* @__PURE__ */ K({
|
|
236
236
|
__name: "UnitForm",
|
|
237
237
|
props: {
|
|
238
238
|
mode: {},
|
|
@@ -241,7 +241,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
241
241
|
},
|
|
242
242
|
emits: ["update:modelValue", "click:submit"],
|
|
243
243
|
setup(F, { expose: c, emit: y }) {
|
|
244
|
-
const m = F, a = y, { t: r } =
|
|
244
|
+
const m = F, a = y, { t: r } = G();
|
|
245
245
|
function d() {
|
|
246
246
|
a("click:submit");
|
|
247
247
|
}
|
|
@@ -335,7 +335,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
335
335
|
(o = (e = S.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
|
|
336
336
|
}
|
|
337
337
|
}), (e, o) => {
|
|
338
|
-
const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"),
|
|
338
|
+
const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"), Q = I("FmCard"), $ = I("FmForm");
|
|
339
339
|
return v(), T($, {
|
|
340
340
|
ref_key: "formRef",
|
|
341
341
|
ref: S,
|
|
@@ -345,9 +345,9 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
345
345
|
default: A(() => {
|
|
346
346
|
var P;
|
|
347
347
|
return [
|
|
348
|
-
s("div",
|
|
349
|
-
s("div",
|
|
350
|
-
s("div",
|
|
348
|
+
s("div", Oe, [
|
|
349
|
+
s("div", Ge, [
|
|
350
|
+
s("div", Qe, [
|
|
351
351
|
f(x, {
|
|
352
352
|
disabled: e.disabled,
|
|
353
353
|
label: l(r)("inventory.unit.name"),
|
|
@@ -379,7 +379,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
379
379
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
380
380
|
])
|
|
381
381
|
]),
|
|
382
|
-
s("div",
|
|
382
|
+
s("div", Je, [
|
|
383
383
|
f(_, {
|
|
384
384
|
disabled: e.disabled,
|
|
385
385
|
type: "button",
|
|
@@ -389,7 +389,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
389
389
|
onClick: g
|
|
390
390
|
}, null, 8, ["disabled", "label"])
|
|
391
391
|
]),
|
|
392
|
-
(v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(
|
|
392
|
+
(v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(Q, {
|
|
393
393
|
class: "flex flex-col gap-16 p-16",
|
|
394
394
|
variant: "outlined",
|
|
395
395
|
key: k.id
|
|
@@ -432,7 +432,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
432
432
|
disabled: e.disabled,
|
|
433
433
|
class: "col-span-3",
|
|
434
434
|
label: l(r)("inventory.unit.measurement.conversion"),
|
|
435
|
-
"model-value": +l(
|
|
435
|
+
"model-value": +l(J)(e.modelValue.measurements[h].conversion),
|
|
436
436
|
"onUpdate:modelValue": (E) => u.value = u.value.map(
|
|
437
437
|
(D, B) => B === h ? {
|
|
438
438
|
...D,
|
|
@@ -443,10 +443,10 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
443
443
|
} : D
|
|
444
444
|
),
|
|
445
445
|
rules: [l(ge)(0)],
|
|
446
|
-
step: +l(
|
|
446
|
+
step: +l(J)({ amount: 1, precision: t.value }),
|
|
447
447
|
"helper-text": l(r)("inventory.unit.measurement.conversionHelper", {
|
|
448
448
|
measurementSymbol: e.modelValue.measurements[h].name || " measurement unit",
|
|
449
|
-
conversion: +l(
|
|
449
|
+
conversion: +l(J)(e.modelValue.measurements[h].conversion),
|
|
450
450
|
unitSymbol: i.value || "base unit"
|
|
451
451
|
})
|
|
452
452
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue", "rules", "step", "helper-text"])
|
|
@@ -469,7 +469,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
469
469
|
},
|
|
470
470
|
emits: ["update:show"],
|
|
471
471
|
setup(F) {
|
|
472
|
-
const c = F, y =
|
|
472
|
+
const c = F, y = O(), m = ae(), { t: a } = G(), r = le(c, "show"), d = le(c, "unit"), n = b(() => {
|
|
473
473
|
switch (c.mode) {
|
|
474
474
|
case U.READ:
|
|
475
475
|
return "";
|
|
@@ -585,13 +585,13 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
585
585
|
}), at = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bt = /* @__PURE__ */ K({
|
|
586
586
|
__name: "UnitView",
|
|
587
587
|
setup(F) {
|
|
588
|
-
const c =
|
|
588
|
+
const c = O(), y = xe(), m = _e(), a = b(() => c.units), { createUnit: r, updateUnit: d } = W(), { unitDialogProps: n, unitViewLoading: p } = Ie(W()), { columnDefs: i } = Ke();
|
|
589
589
|
function t(M) {
|
|
590
590
|
M === "add" && r();
|
|
591
591
|
}
|
|
592
|
-
const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } =
|
|
592
|
+
const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } = G();
|
|
593
593
|
return (M, _) => {
|
|
594
|
-
const
|
|
594
|
+
const Q = I("FmTable");
|
|
595
595
|
return v(), T(Ve, {
|
|
596
596
|
title: l(x)("inventory.unit.title"),
|
|
597
597
|
actions: l(m).isEnabled ? [] : [
|
|
@@ -619,7 +619,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
619
619
|
search: u.value,
|
|
620
620
|
"onUpdate:search": _[0] || (_[0] = ($) => u.value = $)
|
|
621
621
|
}, null, 8, ["search"]),
|
|
622
|
-
f(
|
|
622
|
+
f(Q, {
|
|
623
623
|
style: ue(l(o).tableHeight),
|
|
624
624
|
"column-defs": l(i),
|
|
625
625
|
"row-data": a.value,
|
|
@@ -634,7 +634,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
634
634
|
onRowClick: l(d)
|
|
635
635
|
}, {
|
|
636
636
|
default: A((P) => {
|
|
637
|
-
var k, h, E, D, B, z, X,
|
|
637
|
+
var k, h, E, D, B, z, X, N, Z;
|
|
638
638
|
return [
|
|
639
639
|
s("div", at, [
|
|
640
640
|
s("div", rt, [
|
|
@@ -643,7 +643,7 @@ const Ge = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
643
643
|
props: (B = (D = P.name) == null ? void 0 : D.getContext) == null ? void 0 : B.call(D)
|
|
644
644
|
}, null, 8, ["render", "props"])
|
|
645
645
|
]),
|
|
646
|
-
s("div", it, V((Z = (
|
|
646
|
+
s("div", it, V((Z = (N = (X = (z = $.original.measurements) == null ? void 0 : z.map) == null ? void 0 : X.call(z, (re) => re.name)) == null ? void 0 : N.join) == null ? void 0 : Z.call(N, ", ")), 1)
|
|
647
647
|
])
|
|
648
648
|
];
|
|
649
649
|
}),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as xe, openBlock as R, createElementBlock as z, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as L, unref as c, createVNode as V, resolveComponent as B, createSlots as $e, withCtx as q, createTextVNode as Se, renderSlot as We, createBlock as I, createCommentVNode as Ae, computed as $, isRef as we, normalizeClass as De, normalizeStyle as Pe } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a1 as Re, ap as Ue, aq as Ee, f as Te, D as Ve, h as Q, e as G, ar as Le, ah as Ne, l as N, d as T, S as Be, u as qe, z as ze, _ as Ie, B as je, C as Oe, E as X } from "./app-cfPLYfcH.js";
|
|
3
3
|
import { useCoreStore as Ge, useI18n as O } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as Ke, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as He } from "@feedmepos/ui-library";
|
|
5
5
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
6
|
+
import { _ as Ze } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
7
|
+
const Y = Re((m, h) => {
|
|
8
8
|
const y = Ge();
|
|
9
9
|
return {
|
|
10
10
|
async readWarehouses() {
|
|
@@ -29,12 +29,12 @@ const X = Re((m, h) => {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
});
|
|
32
|
-
function
|
|
32
|
+
function Je() {
|
|
33
33
|
return {
|
|
34
34
|
warehouses: []
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
const _e = D(
|
|
37
|
+
const _e = D(Je());
|
|
38
38
|
function Ce() {
|
|
39
39
|
return {
|
|
40
40
|
// state
|
|
@@ -46,17 +46,17 @@ function Ce() {
|
|
|
46
46
|
},
|
|
47
47
|
// actions
|
|
48
48
|
async readWarehouses() {
|
|
49
|
-
const m =
|
|
49
|
+
const m = Y();
|
|
50
50
|
this.warehouses = await m.readWarehouses();
|
|
51
51
|
},
|
|
52
52
|
async createWarehouse(m) {
|
|
53
|
-
await
|
|
53
|
+
await Y().createWarehouse(m);
|
|
54
54
|
},
|
|
55
55
|
async updateWarehouse(m) {
|
|
56
|
-
await
|
|
56
|
+
await Y().updateWarehouse(m._id, m.profile);
|
|
57
57
|
},
|
|
58
58
|
async deleteWarehouse(m) {
|
|
59
|
-
await
|
|
59
|
+
await Y().deleteWarehouse(m._id);
|
|
60
60
|
},
|
|
61
61
|
async init() {
|
|
62
62
|
const m = Ue();
|
|
@@ -68,13 +68,13 @@ function Ce() {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Qe(m, h) {
|
|
72
72
|
function y(p, s) {
|
|
73
|
-
if (p ===
|
|
73
|
+
if (p === Q.Edit) {
|
|
74
74
|
m(G(s));
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
if (p ===
|
|
77
|
+
if (p === Q.Delete) {
|
|
78
78
|
h(G(s));
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
@@ -105,7 +105,7 @@ function Je(m, h) {
|
|
|
105
105
|
header: "",
|
|
106
106
|
cell(p) {
|
|
107
107
|
return Te(
|
|
108
|
-
[Ve[
|
|
108
|
+
[Ve[Q.Edit], Ve[Q.Delete]],
|
|
109
109
|
(s) => {
|
|
110
110
|
y(s, p.row.original.original);
|
|
111
111
|
}
|
|
@@ -140,7 +140,7 @@ function Je(m, h) {
|
|
|
140
140
|
}
|
|
141
141
|
return { columnDefs: n, formatRowData: l };
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const Xe = /* @__PURE__ */ j({
|
|
144
144
|
__name: "GoogleMap",
|
|
145
145
|
props: {
|
|
146
146
|
markers: {
|
|
@@ -266,7 +266,7 @@ const Qe = /* @__PURE__ */ j({
|
|
|
266
266
|
class: "map app-map"
|
|
267
267
|
}, null, 512));
|
|
268
268
|
}
|
|
269
|
-
}),
|
|
269
|
+
}), Ye = { class: "flex flex-col gap-24" }, eo = { class: "flex flex-col gap-8" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = /* @__PURE__ */ j({
|
|
270
270
|
__name: "CoordinateDialog",
|
|
271
271
|
props: {
|
|
272
272
|
address: {
|
|
@@ -294,7 +294,7 @@ const Qe = /* @__PURE__ */ j({
|
|
|
294
294
|
l.lat = b.lat, l.lng = b.lng, y.emitData(G(l)), s();
|
|
295
295
|
}
|
|
296
296
|
const k = D();
|
|
297
|
-
return (b, M) => (R(), z("div",
|
|
297
|
+
return (b, M) => (R(), z("div", Ye, [
|
|
298
298
|
g("div", eo, [
|
|
299
299
|
g("div", null, [
|
|
300
300
|
g("span", oo, L(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
|
|
@@ -309,7 +309,7 @@ const Qe = /* @__PURE__ */ j({
|
|
|
309
309
|
g("span", ro, L(l.lat), 1)
|
|
310
310
|
])
|
|
311
311
|
]),
|
|
312
|
-
V(
|
|
312
|
+
V(Xe, {
|
|
313
313
|
ref_key: "gmapRef",
|
|
314
314
|
ref: k,
|
|
315
315
|
class: "h-[272px] sm:h-[240px] xs:h-[240px]",
|
|
@@ -695,7 +695,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
695
695
|
])
|
|
696
696
|
]),
|
|
697
697
|
g("div", null, [
|
|
698
|
-
V(
|
|
698
|
+
V(Ze, {
|
|
699
699
|
entity: "warehouse",
|
|
700
700
|
modelValue: F.value,
|
|
701
701
|
"onUpdate:modelValue": e[11] || (e[11] = (v) => F.value = v)
|
|
@@ -911,7 +911,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
911
911
|
n.close();
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
const { columnDefs: C, formatRowData: U } =
|
|
914
|
+
const { columnDefs: C, formatRowData: U } = Qe(
|
|
915
915
|
b,
|
|
916
916
|
M
|
|
917
917
|
);
|
|
@@ -978,31 +978,31 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
|
|
|
978
978
|
onRowClick: (r) => b(r.original)
|
|
979
979
|
}, {
|
|
980
980
|
default: q((r) => {
|
|
981
|
-
var f, w, S, P, K, re, ne, ue, H, ie, de, ce, pe, me,
|
|
981
|
+
var f, w, S, P, K, re, ne, ue, H, ie, de, ce, pe, me, Z, fe, he, ye, ve, J, ge;
|
|
982
982
|
return [
|
|
983
983
|
g("div", Fo, [
|
|
984
984
|
g("div", $o, [
|
|
985
|
-
V(c(
|
|
985
|
+
V(c(X), {
|
|
986
986
|
render: (S = (w = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : w.columnDef) == null ? void 0 : S.cell,
|
|
987
987
|
props: (K = (P = r.warehouse) == null ? void 0 : P.getContext) == null ? void 0 : K.call(P)
|
|
988
988
|
}, null, 8, ["render", "props"])
|
|
989
989
|
]),
|
|
990
990
|
g("div", So, [
|
|
991
|
-
V(c(
|
|
991
|
+
V(c(X), {
|
|
992
992
|
render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
|
|
993
993
|
props: (ie = (H = r.contact) == null ? void 0 : H.getContext) == null ? void 0 : ie.call(H)
|
|
994
994
|
}, null, 8, ["render", "props"])
|
|
995
995
|
]),
|
|
996
996
|
(de = E.original) != null && de.email ? (R(), z("div", Wo, [
|
|
997
|
-
V(c(
|
|
997
|
+
V(c(X), {
|
|
998
998
|
render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
|
|
999
|
-
props: (fe = (
|
|
999
|
+
props: (fe = (Z = r.email) == null ? void 0 : Z.getContext) == null ? void 0 : fe.call(Z)
|
|
1000
1000
|
}, null, 8, ["render", "props"])
|
|
1001
1001
|
])) : Ae("", !0),
|
|
1002
1002
|
g("div", Do, [
|
|
1003
|
-
V(c(
|
|
1003
|
+
V(c(X), {
|
|
1004
1004
|
render: (ve = (ye = (he = r.address) == null ? void 0 : he.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
|
|
1005
|
-
props: (ge = (
|
|
1005
|
+
props: (ge = (J = r.address) == null ? void 0 : J.getContext) == null ? void 0 : ge.call(J)
|
|
1006
1006
|
}, null, 8, ["render", "props"])
|
|
1007
1007
|
])
|
|
1008
1008
|
])
|