@feedmepos/mf-inventory-portal 0.0.23-dev.42 → 0.0.23-dev.44
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-Cr-n7HVf.js → App-Bu28H-qV.js} +66 -63
- package/dist/{ApprovalView-BYHDmt9W.js → ApprovalView-Cgb6Getu.js} +20 -20
- package/dist/{BindingsDialog-CI0nYM1_.js → BindingsDialog-DGtPuzr1.js} +2 -2
- package/dist/{BindingsPicker-BVzF3C8O.js → BindingsPicker-BamL3_Vk.js} +3 -3
- package/dist/{BindingsTable-B21_9L2o.js → BindingsTable-C9FeglE4.js} +1 -1
- package/dist/{ClosingDraftView-k2Vsz8-W.js → ClosingDraftView-C_B1u3g1.js} +47 -47
- package/dist/{ClosingTemplateView-BLda7tYC.js → ClosingTemplateView-BxK3yAV4.js} +21 -21
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DAWPJ65s.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D1PU7pae.js} +7 -7
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D1AIFe-0.js} +37 -37
- package/dist/{IngredientGroupView-CgZ4YT3i.js → IngredientGroupView-S7ps5Bsc.js} +1 -1
- package/dist/{IngredientsView-tPERrF9O.js → IngredientsView-BesGBkXM.js} +14 -15
- package/dist/{IntegrationView-CoF_rdWv.js → IntegrationView-Bkf7zGLw.js} +1 -1
- package/dist/{InventoryBindingForm-BSnofTIL.js → InventoryBindingForm-DHwTsR2G.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CseHejfD.js} +51 -51
- package/dist/{InventoryBindingSummary-qm9ZUFny.js → InventoryBindingSummary-COybHYsZ.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cgv6gv2x.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGJNkqYH.js} +6 -6
- package/dist/PublishView-2EcaLsU2.js +192 -0
- package/dist/{PurchaseOrderPrintPreview-CIWiq2NB.js → PurchaseOrderPrintPreview-DPFfFQQd.js} +5 -5
- package/dist/ReceiveRequestView-Dnl79p8h.js +1843 -0
- package/dist/{RecipeView-CzWlx1Xv.js → RecipeView-CmaMGv6N.js} +25 -25
- package/dist/{StockView-IPXGJNN8.js → StockView-CLw8un14.js} +121 -122
- package/dist/{SupplierView-DuL3NXc0.js → SupplierView-DLcZ6HDt.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js → TransferDetails.vue_vue_type_script_setup_true_lang-DgwS1KTx.js} +137 -137
- package/dist/{TransferTemplateView-BEaRafuO.js → TransferTemplateView-BRDq2_Zw.js} +81 -82
- package/dist/{UnitView-Cwo0mthQ.js → UnitView-rJrXqu8W.js} +14 -14
- package/dist/{WarehouseView-DzjQrpyv.js → WarehouseView-BwSLmicZ.js} +33 -33
- package/dist/api/inventory.d.ts +4 -0
- package/dist/{app-CpuFfqWF.js → app-F909rQ5n.js} +12512 -11478
- package/dist/app.d.ts +24 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-bSGrDlvd.js → decimal-0pQSNdVz.js} +1 -1
- package/dist/{format-unit-display-D4gi2D-O.js → format-unit-display-CM40cl03.js} +60 -60
- package/dist/{index-Cn1ato-l.js → index-DzA11XLY.js} +88 -88
- package/dist/{index-COeURijn.js → index-rBUXpqWE.js} +3 -3
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-B1Rchi6n.js → stock-c68S1hmD.js} +3 -3
- package/dist/stores/feature.d.ts +34 -2
- package/dist/stores/location.d.ts +29 -1
- package/dist/{supplier-CeY_Gro-.js → supplier-CPuz6JVf.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BXqY40wn.js → use-inventory-binding-dialog-DjlU5nUb.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +48 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +48 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -0
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +48 -0
- package/dist/views/publish/PublishView.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +16 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +24 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/vue-i18n-BiavdzKQ.js +2365 -0
- package/package.json +1 -1
- package/dist/ReceiveRequestView-Dgt3FeGb.js +0 -4205
- package/dist/feature-D8aRYGen.js +0 -962
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as A,
|
|
1
|
+
import { defineComponent as q, ref as C, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as K, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
|
|
2
|
+
import { a as A, e as V, f as O, S as ye, h as ge, D as ee, i as Y, j, F as te, m as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ee, _ as Ce, B as Se, E as Fe, G as oe } from "./app-F909rQ5n.js";
|
|
3
3
|
import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Ae, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { _ as le, a as $e } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le, a as $e } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-DAWPJ65s.js";
|
|
6
6
|
import { defineStore as Pe, storeToRefs as Be } from "pinia";
|
|
7
|
-
import { useI18n as
|
|
8
|
-
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { useI18n as H } from "@feedmepos/mf-common";
|
|
8
|
+
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CseHejfD.js";
|
|
9
9
|
const Me = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
12
|
-
}, Ue = { key: 1 }, Ne = { key: 0 }, ze = /* @__PURE__ */
|
|
12
|
+
}, Ue = { key: 1 }, Ne = { key: 0 }, ze = /* @__PURE__ */ q({
|
|
13
13
|
__name: "DeleteDialog",
|
|
14
14
|
props: {
|
|
15
15
|
type: {},
|
|
@@ -45,7 +45,7 @@ const Me = {
|
|
|
45
45
|
name: "Menu",
|
|
46
46
|
bindings: y.value
|
|
47
47
|
}, null, 8, ["bindings"])
|
|
48
|
-
])) :
|
|
48
|
+
])) : K("", !0)
|
|
49
49
|
]))
|
|
50
50
|
], 64);
|
|
51
51
|
};
|
|
@@ -133,7 +133,7 @@ const Me = {
|
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
135
|
function Le() {
|
|
136
|
-
const { updateRecipe: h, deleteRecipe: p } = G(), y = A(), { t: a } =
|
|
136
|
+
const { updateRecipe: h, deleteRecipe: p } = G(), y = A(), { t: a } = H();
|
|
137
137
|
async function s(u, d) {
|
|
138
138
|
const n = O(d);
|
|
139
139
|
if (u === Y.Edit) {
|
|
@@ -191,20 +191,20 @@ function Le() {
|
|
|
191
191
|
ingredients: c(n.contains, /* @__PURE__ */ new Set([n._id])).map((l) => {
|
|
192
192
|
var _, g, r, m, E;
|
|
193
193
|
const t = d.skuById[l.id];
|
|
194
|
-
return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${
|
|
194
|
+
return t ? l.recipeIds.slice(1).length ? `(linked recipe ${(_ = d.recipeById[l.recipeIds.at(-1) ?? ""]) == null ? void 0 : _.name}) ${t.name} (${j(l.amount)}${((g = l.measurement) == null ? void 0 : g.abbrev) ?? ((r = t == null ? void 0 : t.unit) == null ? void 0 : r.abbrev)})` : `${t.name} (${j(l.amount)}${((m = l.measurement) == null ? void 0 : m.abbrev) ?? ((E = t == null ? void 0 : t.unit) == null ? void 0 : E.abbrev)})` : null;
|
|
195
195
|
}).filter((l) => l).join(", "),
|
|
196
196
|
original: n
|
|
197
197
|
}));
|
|
198
198
|
}
|
|
199
199
|
return { columnDefs: i, formatRowData: f };
|
|
200
200
|
}
|
|
201
|
-
const Ye = { class: "flex flex-col gap-40" },
|
|
201
|
+
const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
202
202
|
key: 0,
|
|
203
203
|
class: "col-span-2 mt-16 border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
|
|
204
|
-
},
|
|
204
|
+
}, qe = {
|
|
205
205
|
key: 0,
|
|
206
206
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
207
|
-
},
|
|
207
|
+
}, He = { key: 1 }, Ke = { class: "mt-32" }, Ge = /* @__PURE__ */ q({
|
|
208
208
|
__name: "RecipeForm",
|
|
209
209
|
props: {
|
|
210
210
|
mode: {},
|
|
@@ -214,7 +214,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
214
214
|
emits: ["update:modelValue", "click:submit"],
|
|
215
215
|
setup(h, { expose: p, emit: y }) {
|
|
216
216
|
var k;
|
|
217
|
-
const a = h, s = y, { t: c } =
|
|
217
|
+
const a = h, s = y, { t: c } = H(), i = F({
|
|
218
218
|
get() {
|
|
219
219
|
var e;
|
|
220
220
|
return ((e = a.modelValue) == null ? void 0 : e.name) ?? "";
|
|
@@ -312,7 +312,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
312
312
|
_: 1
|
|
313
313
|
})
|
|
314
314
|
]),
|
|
315
|
-
e.mode !== b(V).CREATE ? (x(), $("div",
|
|
315
|
+
e.mode !== b(V).CREATE ? (x(), $("div", je, [
|
|
316
316
|
R("div", null, [
|
|
317
317
|
v(D, {
|
|
318
318
|
label: "Show binded items",
|
|
@@ -322,22 +322,22 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
322
322
|
disabled: g.value
|
|
323
323
|
}, null, 8, ["modelValue", "disabled"])
|
|
324
324
|
]),
|
|
325
|
-
g.value ? (x(), $("div",
|
|
325
|
+
g.value ? (x(), $("div", qe, [
|
|
326
326
|
v(M),
|
|
327
327
|
R("div", null, [
|
|
328
328
|
v(U, { size: "xl" })
|
|
329
329
|
]),
|
|
330
330
|
o[4] || (o[4] = R("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
|
|
331
331
|
v(M)
|
|
332
|
-
])) : (x(), $("div",
|
|
332
|
+
])) : (x(), $("div", He, [
|
|
333
333
|
_.value && t.value.length ? (x(), T(le, {
|
|
334
334
|
key: 0,
|
|
335
335
|
name: "Menu",
|
|
336
336
|
bindings: t.value
|
|
337
|
-
}, null, 8, ["bindings"])) :
|
|
337
|
+
}, null, 8, ["bindings"])) : K("", !0)
|
|
338
338
|
]))
|
|
339
|
-
])) :
|
|
340
|
-
R("div",
|
|
339
|
+
])) : K("", !0),
|
|
340
|
+
R("div", Ke, [
|
|
341
341
|
v($e, {
|
|
342
342
|
entity: "inventoryRecipe",
|
|
343
343
|
modelValue: u.value,
|
|
@@ -349,7 +349,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
349
349
|
}, 512);
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
}), Oe = { class: "flex gap-4" }, Je = /* @__PURE__ */
|
|
352
|
+
}), Oe = { class: "flex gap-4" }, Je = /* @__PURE__ */ q({
|
|
353
353
|
__name: "RecipeDialog",
|
|
354
354
|
props: {
|
|
355
355
|
show: { type: Boolean },
|
|
@@ -358,7 +358,7 @@ const Ye = { class: "flex flex-col gap-40" }, qe = {
|
|
|
358
358
|
},
|
|
359
359
|
emits: ["update:show"],
|
|
360
360
|
setup(h) {
|
|
361
|
-
const p = h, y = A(), a = se(), { t: s } =
|
|
361
|
+
const p = h, y = A(), a = se(), { t: s } = H(), c = ae(p, "show"), i = ae(p, "recipe"), f = F(() => {
|
|
362
362
|
switch (p.mode) {
|
|
363
363
|
case V.READ:
|
|
364
364
|
return "";
|
|
@@ -487,7 +487,7 @@ function Qe() {
|
|
|
487
487
|
"RECIPE",
|
|
488
488
|
"",
|
|
489
489
|
(g = y[t.id]) == null ? void 0 : g.name,
|
|
490
|
-
|
|
490
|
+
j(t.amount),
|
|
491
491
|
"UNIT"
|
|
492
492
|
];
|
|
493
493
|
}
|
|
@@ -500,7 +500,7 @@ function Qe() {
|
|
|
500
500
|
"INGREDIENT",
|
|
501
501
|
(g = a[t.id]) == null ? void 0 : g.code,
|
|
502
502
|
(r = a[t.id]) == null ? void 0 : r.name,
|
|
503
|
-
|
|
503
|
+
j(t.amount),
|
|
504
504
|
t.measurement ? t.measurement.abbrev : (E = (m = a[t.id]) == null ? void 0 : m.unit) == null ? void 0 : E.abbrev
|
|
505
505
|
];
|
|
506
506
|
}
|
|
@@ -514,7 +514,7 @@ function Qe() {
|
|
|
514
514
|
}), i = Re(s, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
|
|
515
515
|
he(i, `RECIPE_${Ve(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
|
|
516
516
|
}
|
|
517
|
-
const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it = /* @__PURE__ */
|
|
517
|
+
const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it = /* @__PURE__ */ q({
|
|
518
518
|
__name: "RecipeView",
|
|
519
519
|
setup(h) {
|
|
520
520
|
const p = A(), y = F(() => p.recipes), a = xe(), { createRecipe: s, updateRecipe: c } = G(), { recipeDialogProps: i, recipeViewLoading: f } = Be(G()), { columnDefs: u, formatRowData: d } = Le(), n = F(() => d(y.value));
|
|
@@ -524,7 +524,7 @@ const We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-60
|
|
|
524
524
|
if (e === "export")
|
|
525
525
|
return Qe();
|
|
526
526
|
}
|
|
527
|
-
const t = C(""), _ = F(() => f.value), { breakpoints: g } = De(), r = F(() => g.value.xs || g.value.sm), m = F(() => r.value ? 10 : 20), E = Ee(), { t: k } =
|
|
527
|
+
const t = C(""), _ = F(() => f.value), { breakpoints: g } = De(), r = F(() => g.value.xs || g.value.sm), m = F(() => r.value ? 10 : 20), E = Ee(), { t: k } = H();
|
|
528
528
|
return (e, o) => {
|
|
529
529
|
const B = S("FmTable");
|
|
530
530
|
return x(), T(Ce, {
|