@feedmepos/mf-inventory-portal 0.0.22-dev.42 → 0.0.22-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/ApprovalView-DJhk8ORX.js +140 -0
- package/dist/{BindingsDialog-lGoLNJyU.js → BindingsDialog-CNY83IzG.js} +1 -1
- package/dist/{BindingsPicker-CdvkacXh.js → BindingsPicker-BCeGBlTl.js} +1 -1
- package/dist/{BindingsTable-B8G9Ckdk.js → BindingsTable-DwN0rUr_.js} +1 -1
- package/dist/{ClosingTemplateView-Dcy08dPm.js → ClosingTemplateView-BE1JMBGd.js} +342 -349
- package/dist/{FmDroppableField-DeW5xBTW.js → FmDroppableField-DeZRIGOb.js} +13 -13
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DBpTwDEI.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CptHxbFO.js} +3 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BGYVXLcj.js +435 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFHzlUVu.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C0liaZ9Y.js} +1 -1
- package/dist/{IngredientsView-DKJjOK_4.js → IngredientsView-B6BPG_MN.js} +414 -417
- package/dist/{IntegrationView-CgqU4EBV.js → IntegrationView-CXurxj5t.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-gvpXGm1X.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4np_znK.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B3JDjoOu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CvSRvT_i.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-olI-JfjI.js → PurchaseOrderPrintPreview-BYSkl_zL.js} +3 -3
- package/dist/{ReceiveRequestView-flhI8D2c.js → ReceiveRequestView-DWKEL17S.js} +31 -27
- package/dist/{RecipeView-CoMyQ92u.js → RecipeView-DEZblbQT.js} +91 -88
- package/dist/{StockView-Dae47pLA.js → StockView-hijQ7wQL.js} +533 -525
- package/dist/SupplierView-B2xKGKCF.js +3011 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DoEEedkk.js → TransferDetails.vue_vue_type_script_setup_true_lang-CBwT8yGC.js} +5 -5
- package/dist/TransferTemplateView--2vvQWBW.js +1258 -0
- package/dist/{UnitView-B0E2nG3J.js → UnitView-B30FwZGg.js} +4 -4
- package/dist/{WarehouseView-NQ2JwyWK.js → WarehouseView-BwbqpKwn.js} +14 -14
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-tiUQG6R0.js → app-DXZpbt33.js} +7355 -7252
- package/dist/app.d.ts +20 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-BOvNv58m.js → decimal-BVO6jH4l.js} +1 -1
- package/dist/{defineDeepModel-CNgIKGt8.js → defineDeepModel-DlkycC_t.js} +1 -1
- package/dist/{format-time-from-id-DWlH-AZV.js → format-time-from-id-Dhgv47T9.js} +1 -1
- package/dist/{format-unit-display-DIhXvTxN.js → format-unit-display-D4D1b9F7.js} +15 -15
- package/dist/stores/supplier.d.ts +4 -1
- package/dist/supplier-Beauc4QC.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-BrK8SKvw.js → use-template-enabled-locations-2-DbnvkOM9.js} +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +30 -0
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/{xlsx-DGqkxpZX.js → xlsx-DXqCVrb5.js} +1 -1
- package/dist/{xlsx.util-CvycJwUf.js → xlsx.util-7VhQushh.js} +1 -1
- package/package.json +2 -1
- package/dist/ApprovalView-5YpqaJKy.js +0 -128
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-cSTp7zUx.js +0 -359
- package/dist/SupplierView-CxYZUHrc.js +0 -827
- package/dist/TransferTemplateView-DdB7z0b4.js +0 -1302
- package/dist/supplier-rpkSwf7L.js +0 -70
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ie, createCommentVNode as ce, Teleport as pe, mergeProps as ue } from "vue";
|
|
2
|
+
import { i as me, af as v, V as K } from "./app-DXZpbt33.js";
|
|
3
|
+
import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BGYVXLcj.js";
|
|
4
|
+
import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CBwT8yGC.js";
|
|
5
|
+
import { _ as be, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
+
import { useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
7
|
+
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
8
|
+
const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
11
|
+
}, Te = { class: "pt-8" }, Le = /* @__PURE__ */ ae({
|
|
12
|
+
__name: "ApprovalView",
|
|
13
|
+
setup(Ce) {
|
|
14
|
+
const o = he("approval"), { columnDefs: Q } = De("approval", o), W = me();
|
|
15
|
+
v.object({
|
|
16
|
+
name: v.string().optional().nullable(),
|
|
17
|
+
start: v.date().optional().nullable(),
|
|
18
|
+
end: v.date().optional().nullable()
|
|
19
|
+
});
|
|
20
|
+
const w = g({
|
|
21
|
+
name: "",
|
|
22
|
+
...de()
|
|
23
|
+
}), a = g({
|
|
24
|
+
startDate: K(w.value.start ?? /* @__PURE__ */ new Date()),
|
|
25
|
+
endDate: K(w.value.end ?? /* @__PURE__ */ new Date())
|
|
26
|
+
});
|
|
27
|
+
oe([() => a.value.startDate], () => {
|
|
28
|
+
if (!a.value.startDate)
|
|
29
|
+
return;
|
|
30
|
+
if (!a.value.endDate) {
|
|
31
|
+
a.value.endDate = a.value.startDate;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const i = new Date(a.value.startDate);
|
|
35
|
+
if (new Date(a.value.endDate).getTime() < i.getTime()) {
|
|
36
|
+
a.value.endDate = a.value.startDate;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const h = g(""), { breakpoints: R } = xe(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = ye(), B = b(() => [
|
|
41
|
+
{
|
|
42
|
+
label: k("common.refresh"),
|
|
43
|
+
value: "refresh"
|
|
44
|
+
}
|
|
45
|
+
]);
|
|
46
|
+
function I(i) {
|
|
47
|
+
switch (i) {
|
|
48
|
+
case "refresh":
|
|
49
|
+
return o.fetchData();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return (i, l) => {
|
|
53
|
+
const ee = re("FmTable");
|
|
54
|
+
return x(), J(ve, {
|
|
55
|
+
title: e(k)("inventory.transfer.approval.title"),
|
|
56
|
+
actions: B.value,
|
|
57
|
+
"onClick:action": I
|
|
58
|
+
}, {
|
|
59
|
+
default: y(() => [
|
|
60
|
+
s("div", {
|
|
61
|
+
class: ne([
|
|
62
|
+
"flex flex-col gap-8 max-h-full",
|
|
63
|
+
{
|
|
64
|
+
"p-0": D.value,
|
|
65
|
+
"px-24 ": !D.value
|
|
66
|
+
}
|
|
67
|
+
])
|
|
68
|
+
}, [
|
|
69
|
+
n(_e, {
|
|
70
|
+
searchable: "",
|
|
71
|
+
"change-location": "",
|
|
72
|
+
search: h.value,
|
|
73
|
+
"onUpdate:search": l[0] || (l[0] = (r) => h.value = r)
|
|
74
|
+
}, null, 8, ["search"]),
|
|
75
|
+
n(ee, {
|
|
76
|
+
style: se(e(Z).tableHeight),
|
|
77
|
+
"column-defs": e(Q),
|
|
78
|
+
"row-data": e(o).purchaseRequests.value,
|
|
79
|
+
"search-value": h.value,
|
|
80
|
+
loading: !e(W)._currentLocation || e(o).loading.value,
|
|
81
|
+
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
|
|
82
|
+
"page-size": X.value
|
|
83
|
+
}, {
|
|
84
|
+
"list-row": y((r) => [
|
|
85
|
+
n(be, {
|
|
86
|
+
row: r,
|
|
87
|
+
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
88
|
+
}, {
|
|
89
|
+
default: y((t) => {
|
|
90
|
+
var O, S, T, c, C, z, F, M, p, V, $, u, Y, m, q, L, N, P, j, d, A, E, H, U, f, G;
|
|
91
|
+
return [
|
|
92
|
+
s("div", we, [
|
|
93
|
+
s("div", Re, [
|
|
94
|
+
n(e(_), {
|
|
95
|
+
render: (T = (S = (O = t.purchaseOrder__id) == null ? void 0 : O.column) == null ? void 0 : S.columnDef) == null ? void 0 : T.cell,
|
|
96
|
+
props: (C = (c = t.purchaseOrder__id) == null ? void 0 : c.getContext) == null ? void 0 : C.call(c)
|
|
97
|
+
}, null, 8, ["render", "props"])
|
|
98
|
+
]),
|
|
99
|
+
s("div", ke, [
|
|
100
|
+
n(e(_), {
|
|
101
|
+
render: (M = (F = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
|
|
102
|
+
props: (V = (p = t.to_name) == null ? void 0 : p.getContext) == null ? void 0 : V.call(p)
|
|
103
|
+
}, null, 8, ["render", "props"])
|
|
104
|
+
]),
|
|
105
|
+
s("div", Oe, le((q = (m = (Y = (u = ($ = r.original.purchaseOrder) == null ? void 0 : $.items) == null ? void 0 : u.map) == null ? void 0 : Y.call(u, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
|
|
106
|
+
(L = r.original.purchaseOrder) != null && L.ref ? (x(), ie("div", Se, [
|
|
107
|
+
n(e(_), {
|
|
108
|
+
render: (j = (P = (N = t.purchaseOrder_ref) == null ? void 0 : N.column) == null ? void 0 : P.columnDef) == null ? void 0 : j.cell,
|
|
109
|
+
props: (A = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : A.call(d)
|
|
110
|
+
}, null, 8, ["render", "props"])
|
|
111
|
+
])) : ce("", !0),
|
|
112
|
+
s("div", Te, [
|
|
113
|
+
n(e(_), {
|
|
114
|
+
render: (U = (H = (E = t.purchaseOrder_status) == null ? void 0 : E.column) == null ? void 0 : H.columnDef) == null ? void 0 : U.cell,
|
|
115
|
+
props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
|
|
116
|
+
}, null, 8, ["render", "props"])
|
|
117
|
+
])
|
|
118
|
+
])
|
|
119
|
+
];
|
|
120
|
+
}),
|
|
121
|
+
_: 2
|
|
122
|
+
}, 1032, ["row", "onRowClick"])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
126
|
+
], 2),
|
|
127
|
+
(x(), J(pe, { to: "body" }, [
|
|
128
|
+
n(ge, ue(e(o).transferDetailsProps.value, {
|
|
129
|
+
onSubmitted: e(o).fetchData
|
|
130
|
+
}), null, 16, ["onSubmitted"])
|
|
131
|
+
]))
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["title", "actions"]);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
export {
|
|
139
|
+
Le as default
|
|
140
|
+
};
|
|
@@ -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 c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { u as V, av as L, _ as S } from "./app-
|
|
2
|
+
import { u as V, av as L, _ as S } from "./app-DXZpbt33.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 u, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as r, createElementVNode as k } from "vue";
|
|
2
|
-
import { u as M, av as x, y as z } from "./app-
|
|
2
|
+
import { u as M, av as x, y as z } from "./app-DXZpbt33.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 { j as v, u as E, av as L } from "./app-
|
|
2
|
+
import { j as v, u as E, av as L } from "./app-DXZpbt33.js";
|
|
3
3
|
import { components as F } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|