@feedmepos/mf-inventory-portal 0.0.19-dev.3 → 0.0.19-dev.5
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/{ApprovalView-CS7NtcBA.js → ApprovalView-DY_a4R25.js} +16 -15
- package/dist/{BindingsDialog-BA2w-qkY.js → BindingsDialog-GITQp9DQ.js} +1 -1
- package/dist/{BindingsPicker-wf7b30Bk.js → BindingsPicker-CmS01WWD.js} +5 -5
- package/dist/{BindingsTable-mqqSPDbO.js → BindingsTable-CsMAutCO.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CViUEhuw.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BstbCK2r.js} +1 -1
- package/dist/{IngredientsView-BVX31o67.js → IngredientsView-BM218iE0.js} +26 -25
- package/dist/{IntegrationView-DFdl_238.js → IntegrationView-DrPzZ7YF.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BENFVQkL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtY633D-.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DBPQovO2.js +88 -0
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js +29 -0
- package/dist/{PurchaseOrderPrintPreview-06PokYt4.js → PurchaseOrderPrintPreview-s_pZiI6a.js} +11 -11
- package/dist/ReceiveRequestView-De2UMTFi.js +208 -0
- package/dist/{RecipeView-CiOb2lvU.js → RecipeView-CXH_9Jbb.js} +117 -116
- package/dist/{StockView-5LkTxYI2.js → StockView-Cld0Ss_r.js} +17 -16
- package/dist/{SupplierView-BAfC5Wcw.js → SupplierView-DtaCFERj.js} +6 -6
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kgcXwT9t.js +745 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-C1YU60Mq.js +1269 -0
- package/dist/TransferTemplateView-BSmhw7Vl.js +1130 -0
- package/dist/{UnitView-wsbXOcbf.js → UnitView-BS9sJznU.js} +33 -33
- package/dist/{WarehouseView-DHhDNAk8.js → WarehouseView-D0xCjihu.js} +4 -4
- package/dist/api/purchase-order-template.d.ts +7 -0
- package/dist/{app-DNCC20Aq.js → app-Bq5a4Oca.js} +6097 -5889
- package/dist/app.d.ts +39 -0
- package/dist/app.js +7 -5
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +2 -0
- package/dist/composable/defineDeepModel.d.ts +2 -0
- package/dist/{decimal-DaXHxukU.js → decimal-Bk4WDsfO.js} +1 -1
- package/dist/helper/country.d.ts +2 -0
- package/dist/id-to-date-DOITPfk-.js +30 -0
- package/dist/layout-Dkdyeqv8.js +147 -0
- package/dist/purchase-order-transaction-type-std52lFO.js +295 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/row-action.enum-7jVyol1k.js +36 -0
- package/dist/stores/supplier.d.ts +90 -7
- package/dist/style.css +1 -1
- package/dist/supplier-B1qyquXV.js +54 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +26 -0
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +2 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +6 -0
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +22 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialogProps.d.ts +10 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateFormProps.d.ts +7 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +18 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +116 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +112 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +470 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +289 -0
- package/dist/{xlsx-DaxqUL1h.js → xlsx-Bx1vSwYW.js} +1 -1
- package/dist/{xlsx.util-Dwiw0sTo.js → xlsx.util-DsOslDqG.js} +2 -2
- package/package.json +3 -3
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +0 -35
- package/dist/ReceiveRequestView-ck-05Ly7.js +0 -1394
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-qZDMkkIZ.js +0 -1031
- package/dist/id-to-date-XiomI6dP.js +0 -121
- package/dist/layout-DvgFrTEG.js +0 -151
- package/dist/row-action.enum-BwQbURNh.js +0 -28
- package/dist/supplier-BepZrUgL.js +0 -65
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as H, computed as h, openBlock as f, createElementBlock as C, Fragment as N, renderList as q, createElementVNode as s, toDisplayString as x, createCommentVNode as O, ref as R, resolveComponent as E, createBlock as T, withCtx as I, createVNode as v, unref as a, isRef as X, normalizeStyle as le, Teleport as ae, normalizeProps as re, guardReactiveProps as ie } from "vue";
|
|
2
|
-
import { u as K, S as ue, c as oe, R as z, A as de, a as Y, l as me, m as ce, e as Z, j as pe } from "./app-
|
|
2
|
+
import { u as K, S as ue, c as oe, R as z, A as de, a as Y, l as me, m as ce, e as Z, j as pe } from "./app-Bq5a4Oca.js";
|
|
3
3
|
import { useDialog as fe, useSnackbar as ne, useProxiedModel as ee, useBreakpoints as ve } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as ye, _ as be } from "./is-linked-ingredient-error-C6AghEwR.js";
|
|
5
|
-
import { F as U, D as te, R as j } from "./row-action.enum-
|
|
5
|
+
import { F as U, D as te, R as j } from "./row-action.enum-7jVyol1k.js";
|
|
6
6
|
import { defineStore as _e, storeToRefs as ge } from "pinia";
|
|
7
|
-
import { c as xe, _ as he, F as Ve, u as Ue } from "./layout-
|
|
7
|
+
import { c as xe, _ as he, F as Ve, u as Ue } from "./layout-Dkdyeqv8.js";
|
|
8
8
|
import { useI18n as G } from "@feedmepos/mf-common";
|
|
9
|
-
import { _ as we, a as Ce } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { F as ke } from "./decimal-
|
|
11
|
-
import { _ as Fe } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as we, a as Ce } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BstbCK2r.js";
|
|
10
|
+
import { F as ke } from "./decimal-Bk4WDsfO.js";
|
|
11
|
+
import { _ as Fe } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtY633D-.js";
|
|
12
12
|
const Se = { class: "flex flex-col gap-8" }, $e = /* @__PURE__ */ s("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1), Ee = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "flex flex-col"
|
|
@@ -50,9 +50,9 @@ const Se = { class: "flex flex-col gap-8" }, $e = /* @__PURE__ */ s("div", { cla
|
|
|
50
50
|
props: {
|
|
51
51
|
unit: {}
|
|
52
52
|
},
|
|
53
|
-
setup(
|
|
54
|
-
const p =
|
|
55
|
-
return (c,
|
|
53
|
+
setup(S) {
|
|
54
|
+
const p = S, y = K(), i = h(() => y.validateUnitUsage(p.unit)), r = h(() => i.value.filter((c) => c.from === "INGREDIENT")), n = h(() => i.value.filter((c) => c.from === "RECIPE")), m = h(() => i.value.filter((c) => c.from === "MENU"));
|
|
55
|
+
return (c, k) => (f(), C("div", Se, [
|
|
56
56
|
$e,
|
|
57
57
|
r.value.length ? (f(), C("div", Ee, [
|
|
58
58
|
Ie,
|
|
@@ -119,7 +119,7 @@ const Se = { class: "flex flex-col gap-8" }, $e = /* @__PURE__ */ s("div", { cla
|
|
|
119
119
|
};
|
|
120
120
|
n.value = u;
|
|
121
121
|
}
|
|
122
|
-
async function
|
|
122
|
+
async function k(o) {
|
|
123
123
|
r.value = !0;
|
|
124
124
|
try {
|
|
125
125
|
await i.deleteUnit(o), y.open({
|
|
@@ -179,7 +179,7 @@ const Se = { class: "flex flex-col gap-8" }, $e = /* @__PURE__ */ s("div", { cla
|
|
|
179
179
|
text: "Cancel",
|
|
180
180
|
close: !0
|
|
181
181
|
}
|
|
182
|
-
}).onPrimary(() =>
|
|
182
|
+
}).onPrimary(() => k(o));
|
|
183
183
|
}
|
|
184
184
|
return {
|
|
185
185
|
createUnit: m,
|
|
@@ -190,11 +190,11 @@ const Se = { class: "flex flex-col gap-8" }, $e = /* @__PURE__ */ s("div", { cla
|
|
|
190
190
|
};
|
|
191
191
|
});
|
|
192
192
|
function qe() {
|
|
193
|
-
const { updateUnit:
|
|
193
|
+
const { updateUnit: S, deleteUnit: p } = J(), { t: y } = G();
|
|
194
194
|
async function i(n, m) {
|
|
195
195
|
const c = oe(m);
|
|
196
196
|
if (n === j.Edit) {
|
|
197
|
-
await
|
|
197
|
+
await S(c);
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
if (n === j.Delete) {
|
|
@@ -243,8 +243,8 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
243
243
|
disabled: { type: Boolean }
|
|
244
244
|
},
|
|
245
245
|
emits: ["update:modelValue", "click:submit"],
|
|
246
|
-
setup(
|
|
247
|
-
const i =
|
|
246
|
+
setup(S, { expose: p, emit: y }) {
|
|
247
|
+
const i = S, r = y, { t: n } = G();
|
|
248
248
|
function m() {
|
|
249
249
|
r("click:submit");
|
|
250
250
|
}
|
|
@@ -257,7 +257,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
257
257
|
const t = i.modelValue ?? {};
|
|
258
258
|
t.name = e, r("update:modelValue", t);
|
|
259
259
|
}
|
|
260
|
-
}),
|
|
260
|
+
}), k = h({
|
|
261
261
|
get() {
|
|
262
262
|
var e;
|
|
263
263
|
return ((e = i.modelValue) == null ? void 0 : e.abbrev) ?? "";
|
|
@@ -336,7 +336,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
336
336
|
disabled: e.disabled,
|
|
337
337
|
label: a(n)("inventory.unit.name"),
|
|
338
338
|
modelValue: c.value,
|
|
339
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
339
|
+
"onUpdate:modelValue": t[0] || (t[0] = (F) => c.value = F),
|
|
340
340
|
rules: [a(z)()],
|
|
341
341
|
"label-mark": "required"
|
|
342
342
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
@@ -345,8 +345,8 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
345
345
|
v(d, {
|
|
346
346
|
disabled: e.disabled,
|
|
347
347
|
label: a(n)("inventory.unit.symbol"),
|
|
348
|
-
modelValue:
|
|
349
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
348
|
+
modelValue: k.value,
|
|
349
|
+
"onUpdate:modelValue": t[1] || (t[1] = (F) => k.value = F),
|
|
350
350
|
rules: [a(z)()],
|
|
351
351
|
"label-mark": "required"
|
|
352
352
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
@@ -358,7 +358,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
358
358
|
class: "col-span-3",
|
|
359
359
|
label: a(n)("inventory.unit.precision"),
|
|
360
360
|
modelValue: l.value,
|
|
361
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
361
|
+
"onUpdate:modelValue": t[2] || (t[2] = (F) => l.value = F),
|
|
362
362
|
rules: [a(de)(0)]
|
|
363
363
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
364
364
|
])
|
|
@@ -373,10 +373,10 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
373
373
|
onClick: u
|
|
374
374
|
}, null, 8, ["disabled", "label"])
|
|
375
375
|
]),
|
|
376
|
-
(f(!0), C(N, null, q((M = e.modelValue) == null ? void 0 : M.measurements, (
|
|
376
|
+
(f(!0), C(N, null, q((M = e.modelValue) == null ? void 0 : M.measurements, (F, g) => (f(), T(_, {
|
|
377
377
|
class: "flex flex-col gap-16 p-16",
|
|
378
378
|
variant: "outlined",
|
|
379
|
-
key:
|
|
379
|
+
key: F.id
|
|
380
380
|
}, {
|
|
381
381
|
default: I(() => [
|
|
382
382
|
s("div", Je, [
|
|
@@ -429,9 +429,9 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
429
429
|
rules: [a(ce)(0)],
|
|
430
430
|
step: +a(Y)({ amount: 1, precision: l.value }),
|
|
431
431
|
"helper-text": a(n)("inventory.unit.measurement.conversionHelper", {
|
|
432
|
-
measurementSymbol: e.modelValue.measurements[g].name || "measurement unit",
|
|
432
|
+
measurementSymbol: e.modelValue.measurements[g].name || " measurement unit",
|
|
433
433
|
conversion: +a(Y)(e.modelValue.measurements[g].conversion),
|
|
434
|
-
unitSymbol:
|
|
434
|
+
unitSymbol: k.value || "base unit"
|
|
435
435
|
})
|
|
436
436
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue", "rules", "step", "helper-text"])
|
|
437
437
|
])
|
|
@@ -452,8 +452,8 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
452
452
|
mode: { default: U.READ }
|
|
453
453
|
},
|
|
454
454
|
emits: ["update:show"],
|
|
455
|
-
setup(
|
|
456
|
-
const p =
|
|
455
|
+
setup(S) {
|
|
456
|
+
const p = S, y = K(), i = ne(), { t: r } = G(), n = ee(p, "show"), m = ee(p, "unit"), c = h(() => {
|
|
457
457
|
switch (p.mode) {
|
|
458
458
|
case U.READ:
|
|
459
459
|
return "";
|
|
@@ -463,7 +463,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
463
463
|
return r("inventory.unit.create.title");
|
|
464
464
|
}
|
|
465
465
|
return "";
|
|
466
|
-
}),
|
|
466
|
+
}), k = h(() => {
|
|
467
467
|
switch (p.mode) {
|
|
468
468
|
case U.READ:
|
|
469
469
|
return "";
|
|
@@ -539,7 +539,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
539
539
|
s("div", ot, [
|
|
540
540
|
v($, {
|
|
541
541
|
loading: o.value,
|
|
542
|
-
label:
|
|
542
|
+
label: k.value,
|
|
543
543
|
onClick: V
|
|
544
544
|
}, null, 8, ["loading", "label"]),
|
|
545
545
|
v($, {
|
|
@@ -568,8 +568,8 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
568
568
|
}
|
|
569
569
|
}), st = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, lt = { class: "flex flex-col py-8" }, at = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gt = /* @__PURE__ */ H({
|
|
570
570
|
__name: "UnitView",
|
|
571
|
-
setup(
|
|
572
|
-
const p = K(), y = pe(), i = h(() => p.units), { createUnit: r, updateUnit: n } = J(), { unitDialogProps: m, unitViewLoading: c } = ge(J()), { columnDefs:
|
|
571
|
+
setup(S) {
|
|
572
|
+
const p = K(), y = pe(), i = h(() => p.units), { createUnit: r, updateUnit: n } = J(), { unitDialogProps: m, unitViewLoading: c } = ge(J()), { columnDefs: k } = qe();
|
|
573
573
|
function l(d) {
|
|
574
574
|
d === "add" && r();
|
|
575
575
|
}
|
|
@@ -592,7 +592,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
592
592
|
}, null, 8, ["search"]),
|
|
593
593
|
v(D, {
|
|
594
594
|
style: le(a(e).tableHeight),
|
|
595
|
-
"column-defs": a(
|
|
595
|
+
"column-defs": a(k),
|
|
596
596
|
"row-data": i.value,
|
|
597
597
|
"search-value": o.value,
|
|
598
598
|
loading: !a(y)._currentLocation || u.value,
|
|
@@ -605,12 +605,12 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
|
|
|
605
605
|
onRowClick: a(n)
|
|
606
606
|
}, {
|
|
607
607
|
default: I((B) => {
|
|
608
|
-
var M,
|
|
608
|
+
var M, F, g, w, P, A, Q, L, W;
|
|
609
609
|
return [
|
|
610
610
|
s("div", lt, [
|
|
611
611
|
s("div", at, [
|
|
612
612
|
v(a(Ve), {
|
|
613
|
-
render: (g = (
|
|
613
|
+
render: (g = (F = (M = B.name) == null ? void 0 : M.column) == null ? void 0 : F.columnDef) == null ? void 0 : g.cell,
|
|
614
614
|
props: (P = (w = B.name) == null ? void 0 : w.getContext) == null ? void 0 : P.call(w)
|
|
615
615
|
}, null, 8, ["render", "props"])
|
|
616
616
|
]),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as W, defineComponent as O, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as R, createElementBlock as z, toRaw as be, reactive as $e, createElementVNode as b, toDisplayString as L, unref as p, createVNode as k, resolveComponent as B, createSlots as De, withCtx as q, createTextVNode as We, renderSlot as Se, createBlock as j, createCommentVNode as xe, computed as D, isRef as we, normalizeStyle as Te } from "vue";
|
|
2
|
-
import { n as Re, Q as Ee, T as Pe, c as G, V as ae, W as le, X as Ue, i as Le, R as N, j as Ne } from "./app-
|
|
2
|
+
import { n as Re, Q as Ee, T as Pe, c as G, V as ae, W as le, X as Ue, i as Le, R as N, j as Ne } from "./app-Bq5a4Oca.js";
|
|
3
3
|
import { useCoreStore as Be, useI18n as I } from "@feedmepos/mf-common";
|
|
4
|
-
import { D as Ve, R as Z, F as P } from "./row-action.enum-
|
|
5
|
-
import { c as qe, _ as Ie, F as J, u as ze } from "./layout-
|
|
6
|
-
import { _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as Ve, R as Z, F as P } from "./row-action.enum-7jVyol1k.js";
|
|
5
|
+
import { c as qe, _ as Ie, F as J, u as ze } from "./layout-Dkdyeqv8.js";
|
|
6
|
+
import { _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BstbCK2r.js";
|
|
7
7
|
import { useDialogChild as Ge, useDialog as Ae, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
|
|
8
8
|
const Y = Re((c, m) => {
|
|
9
9
|
const f = Be();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const usePurchaseOrderTemplateApi: () => {
|
|
2
|
+
getTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
|
|
3
|
+
readTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
|
|
4
|
+
createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
|
|
5
|
+
updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
|
|
6
|
+
deleteTemplate(template: FdoPurchaseOrderTemplate): Promise<any>;
|
|
7
|
+
};
|