@feedmepos/mf-inventory-portal 0.0.20-dev.1 → 0.0.21-dev.1
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-CF-RhtHH.js → ApprovalView-DW0_5glj.js} +5 -5
- package/dist/{BindingsDialog-0_fCmf7t.js → BindingsDialog-Czx4IaxD.js} +1 -1
- package/dist/{BindingsPicker-CT-56t-W.js → BindingsPicker-C25wyJ5c.js} +1 -1
- package/dist/BindingsTable-DypE3NR_.js +145 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-6yg6_JPe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CHNBnuDM.js} +1 -1
- package/dist/IngredientsView-B-Hwi7zE.js +1751 -0
- package/dist/{IntegrationView-D7hqf0P5.js → IntegrationView-BrsjpHwN.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-HcOKpAlW.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DZOs6wE2.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BTOE1vFl.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Y3A-wRZm.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-C92PdleC.js → PurchaseOrderPrintPreview-BYxCDtxN.js} +1 -1
- package/dist/{ReceiveRequestView-BaxEQWOD.js → ReceiveRequestView-Da81c19A.js} +7 -7
- package/dist/{RecipeView-CDgZpLPk.js → RecipeView-21VHawYH.js} +4 -4
- package/dist/{StockView-B77CrARl.js → StockView-BRxg62Jk.js} +499 -487
- package/dist/{SupplierView-DQ3hB7q2.js → SupplierView-BR7mmuKe.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-lsyakQIl.js → TransferDetails.vue_vue_type_script_setup_true_lang-BixtDHmX.js} +88 -87
- package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-DN7NCT72.js → TransferDialog.vue_vue_type_script_setup_true_lang-q75hFaSf.js} +473 -475
- package/dist/TransferTemplateView-BXNj1QDe.js +1381 -0
- package/dist/{UnitView-DlmlVNOx.js → UnitView-bO2BhUFj.js} +5 -5
- package/dist/{WarehouseView-DXWls5vv.js → WarehouseView-CmB2drN4.js} +3 -3
- package/dist/api/inventory.d.ts +104 -5
- package/dist/api/stock.d.ts +8 -0
- package/dist/{app-P7rGzGsF.js → app-CmxCdDLB.js} +5169 -5113
- package/dist/app.d.ts +6 -0
- package/dist/app.js +3 -3
- package/dist/components/FmUnitInputProps.d.ts +1 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
- package/dist/{decimal-4ONRlhOO.js → decimal-jg7WewgV.js} +1 -1
- package/dist/{id-to-date-D8Ey2CVj.js → id-to-date-5ySGvt_H.js} +1 -1
- package/dist/{layout-D-zXtsSp.js → layout-DTjCHRyt.js} +6 -6
- package/dist/purchase-order-transaction-type-B9KguKXt.js +723 -0
- package/dist/stores/inventory.d.ts +4 -4
- package/dist/stores/location.d.ts +308 -1612
- package/dist/style.css +1 -1
- package/dist/{supplier-DsUIjl-L.js → supplier-D1iKgl2Z.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +5 -5
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +12 -12
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +12 -12
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +9 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +109 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -2
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1461 -249
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +926 -118
- package/dist/{xlsx-zfERRe6K.js → xlsx-DE-wX-rr.js} +1 -1
- package/dist/{xlsx.util-DnbiJzsk.js → xlsx.util-ktlEcFIy.js} +2 -2
- package/package.json +3 -3
- package/dist/BindingsTable-DEftAnTN.js +0 -120
- package/dist/IngredientsView-Au6oRwF2.js +0 -1663
- package/dist/TransferTemplateView-Dt04xMCK.js +0 -1290
- package/dist/format-unit-display-DJpElzu_.js +0 -707
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as B, ref as h, watch as I, computed as ee, resolveComponent as te, openBlock as D, createBlock as H, unref as e, withCtx as g, createElementVNode as s, createVNode as n, normalizeStyle as ae, toDisplayString as oe, createElementBlock as re, createCommentVNode as ne, Teleport as se, mergeProps as le } from "vue";
|
|
2
|
-
import { Y as f, O as U, j as ie } from "./app-
|
|
3
|
-
import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as me } from "./
|
|
5
|
-
import { u as de, _ as fe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as _e, F as _, u as ve } from "./layout-
|
|
2
|
+
import { Y as f, O as U, j as ie } from "./app-CmxCdDLB.js";
|
|
3
|
+
import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CHNBnuDM.js";
|
|
4
|
+
import { u as me } from "./purchase-order-transaction-type-B9KguKXt.js";
|
|
5
|
+
import { u as de, _ as fe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BixtDHmX.js";
|
|
6
|
+
import { _ as _e, F as _, u as ve } from "./layout-DTjCHRyt.js";
|
|
7
7
|
import { useBreakpoints as he } from "@feedmepos/ui-library";
|
|
8
8
|
import { useI18n as De } from "@feedmepos/mf-common";
|
|
9
9
|
const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, xe = { class: "flex flex-col py-8" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Oe = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as d, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { u as V,
|
|
2
|
+
import { u as V, an as L, _ as S } from "./app-CmxCdDLB.js";
|
|
3
3
|
const U = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { u as x,
|
|
2
|
+
import { u as x, an as M, y as z } from "./app-CmxCdDLB.js";
|
|
3
3
|
const K = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
|
|
2
|
+
import { q as v, u as E, an as L } from "./app-CmxCdDLB.js";
|
|
3
|
+
import { components as F } from "@feedmepos/ui-library";
|
|
4
|
+
import "@feedmepos/mf-common";
|
|
5
|
+
const P = /* @__PURE__ */ _({
|
|
6
|
+
__name: "binding-ui",
|
|
7
|
+
props: {
|
|
8
|
+
items: { default: () => [] },
|
|
9
|
+
recipes: { default: () => [] },
|
|
10
|
+
skus: { default: () => [] },
|
|
11
|
+
type: { default: "Product" },
|
|
12
|
+
editable: { type: Boolean, default: !1 }
|
|
13
|
+
},
|
|
14
|
+
emits: ["click:open-binding-dialog"],
|
|
15
|
+
setup(k, { emit: d }) {
|
|
16
|
+
const u = c({
|
|
17
|
+
isOpen: !1,
|
|
18
|
+
initialValue: [],
|
|
19
|
+
context: "",
|
|
20
|
+
name: ""
|
|
21
|
+
});
|
|
22
|
+
C("closeDialog", () => {
|
|
23
|
+
u.value.isOpen = !u.value.isOpen;
|
|
24
|
+
});
|
|
25
|
+
const o = k, m = d, a = f(() => o.items.map((e) => ({
|
|
26
|
+
key: e.key,
|
|
27
|
+
name: e.name,
|
|
28
|
+
_skuLinked: e.bindings.filter(
|
|
29
|
+
({ type: n, id: s }) => n === v.enum.SKU && o.skus.some((l) => l._id === s)
|
|
30
|
+
).length,
|
|
31
|
+
_recipeLinked: e.bindings.filter(
|
|
32
|
+
({ type: n, id: s }) => n === v.enum.RECIPE && o.recipes.some((l) => l._id === s)
|
|
33
|
+
).length,
|
|
34
|
+
onUpdate: async () => {
|
|
35
|
+
o.editable && m("click:open-binding-dialog", o.type, e);
|
|
36
|
+
}
|
|
37
|
+
}))), g = [
|
|
38
|
+
{
|
|
39
|
+
accessorKey: "name",
|
|
40
|
+
header: "Name",
|
|
41
|
+
size: "auto"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "ingredient",
|
|
45
|
+
header: "Ingredient",
|
|
46
|
+
size: 200,
|
|
47
|
+
cell(i) {
|
|
48
|
+
const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
|
|
49
|
+
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "recipe",
|
|
54
|
+
header: "Recipe",
|
|
55
|
+
size: 200,
|
|
56
|
+
cell(i) {
|
|
57
|
+
const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
|
|
58
|
+
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "action",
|
|
63
|
+
header: "",
|
|
64
|
+
size: 24,
|
|
65
|
+
cell(i) {
|
|
66
|
+
const e = a.value.find((n) => n.key === i.row.original.key);
|
|
67
|
+
return z(F.FmButton, {
|
|
68
|
+
icon: "edit",
|
|
69
|
+
bgColor: "white",
|
|
70
|
+
textColor: "neutral-grey-400",
|
|
71
|
+
iconColor: "neutral-grey-400",
|
|
72
|
+
class: "text-fm-color-neutral-gray-400",
|
|
73
|
+
onClick() {
|
|
74
|
+
e == null || e.onUpdate();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
return (i, e) => {
|
|
81
|
+
const n = b("FmTable");
|
|
82
|
+
return p(), h(n, {
|
|
83
|
+
"column-defs": g,
|
|
84
|
+
"row-data": a.value,
|
|
85
|
+
"hide-footer": "",
|
|
86
|
+
"shrink-at": 99999
|
|
87
|
+
}, null, 8, ["row-data"]);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}), R = {
|
|
91
|
+
key: 1,
|
|
92
|
+
class: "p-24 flex items-center justify-center gap-16"
|
|
93
|
+
}, D = /* @__PURE__ */ _({
|
|
94
|
+
__name: "BindingsTable",
|
|
95
|
+
setup(k) {
|
|
96
|
+
const d = E(), u = c(!0), o = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = L(n), e = c();
|
|
97
|
+
async function n() {
|
|
98
|
+
await d.readInventory(), e.value = i.onMessage(
|
|
99
|
+
"props:grouped-bindings",
|
|
100
|
+
(t) => {
|
|
101
|
+
u.value = !1, o.value = t;
|
|
102
|
+
}
|
|
103
|
+
), i.sendMessage("props:grouped-bindings");
|
|
104
|
+
}
|
|
105
|
+
async function s(t, r) {
|
|
106
|
+
i.sendMessage("@click:open-binding-dialog", {
|
|
107
|
+
key: t,
|
|
108
|
+
binding: r
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
const l = c();
|
|
112
|
+
return B(() => {
|
|
113
|
+
const t = l.value;
|
|
114
|
+
t && new ResizeObserver(() => {
|
|
115
|
+
i.sendMessage("resize", t.scrollHeight);
|
|
116
|
+
}).observe(t);
|
|
117
|
+
}), I(() => {
|
|
118
|
+
var t, r;
|
|
119
|
+
(r = (t = e.value) == null ? void 0 : t.removeEventListener) == null || r.call(t);
|
|
120
|
+
}), (t, r) => {
|
|
121
|
+
const w = b("FmCircularProgress");
|
|
122
|
+
return p(), y("div", {
|
|
123
|
+
class: "bg-white",
|
|
124
|
+
ref_key: "resizeableRef",
|
|
125
|
+
ref: l
|
|
126
|
+
}, [
|
|
127
|
+
u.value ? (p(), y("div", R, [
|
|
128
|
+
N(w, { size: "md" }),
|
|
129
|
+
r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
|
|
130
|
+
])) : (p(), h(P, {
|
|
131
|
+
key: 0,
|
|
132
|
+
items: o.value,
|
|
133
|
+
recipes: m.value,
|
|
134
|
+
skus: a.value,
|
|
135
|
+
type: g.value,
|
|
136
|
+
editable: "",
|
|
137
|
+
"onClick:openBindingDialog": s
|
|
138
|
+
}, null, 8, ["items", "recipes", "skus", "type"]))
|
|
139
|
+
], 512);
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
export {
|
|
144
|
+
D as default
|
|
145
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as L, computed as g, resolveComponent as b, openBlock as t, createElementBlock as y, Fragment as k, createElementVNode as r, toDisplayString as C, createCommentVNode as h, renderList as D, createBlock as _, unref as d, createVNode as c, renderSlot as j, Teleport as z, ref as H, withCtx as V, watch as Q, mergeModels as E, useModel as I } from "vue";
|
|
2
2
|
import { FmButtonVariant as O, useBreakpoints as q } from "@feedmepos/ui-library";
|
|
3
|
-
import { j as N, O as T } from "./app-
|
|
3
|
+
import { j as N, O as T } from "./app-CmxCdDLB.js";
|
|
4
4
|
import { useCoreStore as G, useI18n as P } from "@feedmepos/mf-common";
|
|
5
5
|
const J = { class: "flex flex-col w-full bg-white h-full" }, K = { class: "flex items-center px-24 py-16 xs:p-12 sm:p-12 gap-4 h-[68px]" }, W = { class: "flex-1 flex-col gap-4 fm-typo-en-title-md-600 flex h-[36px] bg-white" }, X = {
|
|
6
6
|
key: 0,
|