@feedmepos/mf-inventory-portal 0.0.21-dev.3 → 0.0.21-dev.4
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-DE6af6Jx.js → ApprovalView-BS4jzhAR.js} +11 -11
- package/dist/{BindingsDialog-TLWBqVLe.js → BindingsDialog-BFLeun5L.js} +1 -1
- package/dist/{BindingsPicker-CArDO6LQ.js → BindingsPicker-CnjJZH9t.js} +1 -1
- package/dist/{BindingsTable-CVBhfcWm.js → BindingsTable-C3VTa0YL.js} +1 -1
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js +374 -0
- package/dist/{IngredientsView-Sld49F2i.js → IngredientsView-CQYJfAze.js} +4 -4
- package/dist/{IntegrationView-C9lcGzjf.js → IntegrationView-9V2OcyP_.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BcDiOeBk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Wv8RvXJL.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DVQozd4y.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DsOGlAb7.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-D0Rnf43J.js → PurchaseOrderPrintPreview-B0hDduXB.js} +1 -1
- package/dist/{ReceiveRequestView-CyWq3rxP.js → ReceiveRequestView-3boFHkOO.js} +19 -19
- package/dist/{RecipeView-ppyuFTCK.js → RecipeView-DYKhSgtw.js} +4 -4
- package/dist/{StockView-CoDH6Yf_.js → StockView-BIGGG87A.js} +32 -32
- package/dist/{SupplierView-D9pKF63i.js → SupplierView-DQzopnzt.js} +12 -12
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ELF9eLeq.js → TransferDetails.vue_vue_type_script_setup_true_lang-D8-sMRGm.js} +4 -4
- package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-BbcRP-G_.js → TransferDialog.vue_vue_type_script_setup_true_lang-CSUnXAyq.js} +5 -5
- package/dist/{TransferTemplateView-DMkSlBvQ.js → TransferTemplateView-DWF54okN.js} +34 -34
- package/dist/{UnitView-DV4WP6eO.js → UnitView-Cdw8xxzV.js} +5 -5
- package/dist/{WarehouseView-DwbO0UGj.js → WarehouseView-DOelxuIh.js} +3 -3
- package/dist/{app-Bt8YzxIk.js → app-SBnQEeEV.js} +2531 -2541
- package/dist/app.js +3 -3
- package/dist/{decimal-SucbZ9G4.js → decimal-BlEB2PrM.js} +1 -1
- package/dist/{id-to-date-B81eSX7L.js → id-to-date-Y6berpHs.js} +1 -1
- package/dist/{purchase-order-transaction-type-CuGdiH6i.js → purchase-order-transaction-type-Dp0wsGal.js} +3 -3
- package/dist/stores/layout.d.ts +3 -0
- package/dist/{supplier-CMS9fSlT.js → supplier-I_rYvljH.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{xlsx-BKyJT0L0.js → xlsx-DGwG2ekM.js} +1 -1
- package/dist/{xlsx.util-bHyU3BvF.js → xlsx.util-Dsf-EgrG.js} +2 -2
- package/package.json +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BCI1_Jqi.js +0 -308
- package/dist/layout-B2j73HnF.js +0 -151
|
@@ -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,
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
2
|
+
import { Y as f, O as U, j as ie } from "./app-SBnQEeEV.js";
|
|
3
|
+
import { b as ce, u as pe, _ as ue, a as me } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js";
|
|
4
|
+
import { u as de } from "./purchase-order-transaction-type-Dp0wsGal.js";
|
|
5
|
+
import { u as fe, _ as _e } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D8-sMRGm.js";
|
|
6
|
+
import { _ as ve, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.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 = {
|
|
@@ -12,7 +12,7 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, xe =
|
|
|
12
12
|
}, Re = { class: "pt-8" }, Ve = /* @__PURE__ */ B({
|
|
13
13
|
__name: "ApprovalView",
|
|
14
14
|
setup(ke) {
|
|
15
|
-
const o =
|
|
15
|
+
const o = de("approval"), { columnDefs: G } = fe("approval", o), J = ie();
|
|
16
16
|
f.object({
|
|
17
17
|
name: f.string().optional().nullable(),
|
|
18
18
|
start: f.date().optional().nullable(),
|
|
@@ -38,15 +38,15 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, xe =
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
const v = h(""), { breakpoints: b } = he(), K = ee(() => b.value.xs || b.value.sm ? 10 : 20), Q =
|
|
41
|
+
const v = h(""), { breakpoints: b } = he(), K = ee(() => b.value.xs || b.value.sm ? 10 : 20), Q = pe(), { t: W } = De();
|
|
42
42
|
return (y, l) => {
|
|
43
43
|
const X = te("FmTable");
|
|
44
|
-
return D(), H(
|
|
44
|
+
return D(), H(ue, {
|
|
45
45
|
title: e(W)("inventory.transfer.approval.title")
|
|
46
46
|
}, {
|
|
47
47
|
default: g(() => [
|
|
48
48
|
s("div", ge, [
|
|
49
|
-
n(
|
|
49
|
+
n(me, {
|
|
50
50
|
searchable: "",
|
|
51
51
|
"change-location": "",
|
|
52
52
|
search: v.value,
|
|
@@ -63,7 +63,7 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, xe =
|
|
|
63
63
|
"page-size": K.value
|
|
64
64
|
}, {
|
|
65
65
|
"list-row": g((r) => [
|
|
66
|
-
n(
|
|
66
|
+
n(ve, {
|
|
67
67
|
row: r,
|
|
68
68
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
69
69
|
}, {
|
|
@@ -106,7 +106,7 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, xe =
|
|
|
106
106
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
107
107
|
]),
|
|
108
108
|
(D(), H(se, { to: "body" }, [
|
|
109
|
-
n(
|
|
109
|
+
n(_e, le(e(o).transferDetailsProps.value, {
|
|
110
110
|
onSubmitted: e(o).fetchData
|
|
111
111
|
}), null, 16, ["onSubmitted"])
|
|
112
112
|
]))
|
|
@@ -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, am as L, _ as S } from "./app-SBnQEeEV.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, am as M, y as z } from "./app-SBnQEeEV.js";
|
|
3
3
|
const K = {
|
|
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 { q as v, u as E,
|
|
2
|
+
import { q as v, u as E, am as L } from "./app-SBnQEeEV.js";
|
|
3
3
|
import { components as F } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import { reactive as E, onUnmounted as q, defineComponent as V, computed as _, resolveComponent as h, openBlock as a, createElementBlock as b, Fragment as F, createElementVNode as f, unref as u, normalizeClass as D, toDisplayString as L, createCommentVNode as y, renderList as R, createBlock as w, createVNode as v, renderSlot as G, Teleport as J, ref as O, withCtx as T, watch as K, mergeModels as W, useModel as U } from "vue";
|
|
2
|
+
import { useBreakpoints as S, FmButtonVariant as X } from "@feedmepos/ui-library";
|
|
3
|
+
import { j as P, O as N } from "./app-SBnQEeEV.js";
|
|
4
|
+
import { useCoreStore as Z, useI18n as j } from "@feedmepos/mf-common";
|
|
5
|
+
const I = E({});
|
|
6
|
+
function A() {
|
|
7
|
+
const i = `${Math.random()}`;
|
|
8
|
+
S();
|
|
9
|
+
const o = new ResizeObserver((t) => {
|
|
10
|
+
const l = t.map((n) => n.target.scrollHeight).reduce((n, s) => n + s);
|
|
11
|
+
I[i] = l;
|
|
12
|
+
}), c = (t) => {
|
|
13
|
+
const l = t.el;
|
|
14
|
+
l && o.observe(l);
|
|
15
|
+
}, r = (t) => {
|
|
16
|
+
const l = t.el;
|
|
17
|
+
l && o.unobserve(l);
|
|
18
|
+
};
|
|
19
|
+
return q(() => {
|
|
20
|
+
o.disconnect(), delete I[i];
|
|
21
|
+
}), {
|
|
22
|
+
get tableHeight() {
|
|
23
|
+
return {
|
|
24
|
+
height: `calc(100dvh - ${Object.values(I).reduce((n, s) => n + s, 0) + 64}px)`
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
onMounted: c,
|
|
28
|
+
onUnmounted: r
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: /* @__PURE__ */ D(["text-fm-color-typo-secondary fm-typo-en-body-sm-400"])
|
|
34
|
+
}, te = { key: 0 }, oe = { key: 1 }, le = { class: "bg-white flex-1" }, ae = { class: "fixed bottom-96 right-16" }, ke = /* @__PURE__ */ V({
|
|
35
|
+
__name: "SingleColumnLayout",
|
|
36
|
+
props: {
|
|
37
|
+
actions: { default: () => [] },
|
|
38
|
+
title: { default: "Title" },
|
|
39
|
+
description: {},
|
|
40
|
+
showBackButton: { type: Boolean },
|
|
41
|
+
defaultPadding: { type: Boolean },
|
|
42
|
+
breadcrumbs: { default: () => [] },
|
|
43
|
+
usingBusinessHelperText: {}
|
|
44
|
+
},
|
|
45
|
+
emits: ["click:action"],
|
|
46
|
+
setup(i, { emit: o }) {
|
|
47
|
+
const c = i, r = o, t = _(() => c.actions.find((e) => e.isPrimary)), l = _(
|
|
48
|
+
() => c.actions.filter((e) => !e.isPrimary).map((e) => ({ ...e, variant: e.variant ?? X.Tertiary }))
|
|
49
|
+
), { breakpoints: n } = S(), s = _(() => n.value.xs || n.value.sm), d = P(), k = _(() => d.businessLevel), x = A();
|
|
50
|
+
return (e, m) => {
|
|
51
|
+
const B = h("FmButton");
|
|
52
|
+
return a(), b(F, null, [
|
|
53
|
+
f("div", ee, [
|
|
54
|
+
f("div", {
|
|
55
|
+
onVnodeMounted: m[1] || (m[1] = //@ts-ignore
|
|
56
|
+
(...g) => u(x).onMounted && u(x).onMounted(...g)),
|
|
57
|
+
class: D([
|
|
58
|
+
"flex gap-4",
|
|
59
|
+
{
|
|
60
|
+
"p-12": s.value,
|
|
61
|
+
"px-24 py-16": !s.value
|
|
62
|
+
}
|
|
63
|
+
])
|
|
64
|
+
}, [
|
|
65
|
+
f("div", {
|
|
66
|
+
class: D([
|
|
67
|
+
"flex-1 flex flex-col gap-4 fm-typo-en-title-md-600 bg-white",
|
|
68
|
+
{
|
|
69
|
+
"py-12": s.value
|
|
70
|
+
}
|
|
71
|
+
])
|
|
72
|
+
}, [
|
|
73
|
+
f("div", null, L(e.title), 1),
|
|
74
|
+
e.usingBusinessHelperText && k.value ? (a(), b("div", ne, L(e.usingBusinessHelperText), 1)) : y("", !0)
|
|
75
|
+
], 2),
|
|
76
|
+
l.value.length ? (a(), b("div", te, [
|
|
77
|
+
(a(!0), b(F, null, R(l.value, (g) => (a(), w(B, {
|
|
78
|
+
key: g.value,
|
|
79
|
+
label: g.label,
|
|
80
|
+
"prepend-icon": g.prependIcon,
|
|
81
|
+
variant: g.variant,
|
|
82
|
+
onClick: (M) => r("click:action", g.value)
|
|
83
|
+
}, null, 8, ["label", "prepend-icon", "variant", "onClick"]))), 128))
|
|
84
|
+
])) : y("", !0),
|
|
85
|
+
t.value && (u(n).lg || u(n).md) ? (a(), b("div", oe, [
|
|
86
|
+
v(B, {
|
|
87
|
+
label: t.value.label,
|
|
88
|
+
"prepend-icon": t.value.prependIcon,
|
|
89
|
+
onClick: m[0] || (m[0] = (g) => r("click:action", t.value.value))
|
|
90
|
+
}, null, 8, ["label", "prepend-icon"])
|
|
91
|
+
])) : y("", !0)
|
|
92
|
+
], 2),
|
|
93
|
+
f("div", le, [
|
|
94
|
+
G(e.$slots, "default")
|
|
95
|
+
])
|
|
96
|
+
]),
|
|
97
|
+
t.value && s.value ? (a(), w(J, {
|
|
98
|
+
key: 0,
|
|
99
|
+
to: "body"
|
|
100
|
+
}, [
|
|
101
|
+
f("div", ae, [
|
|
102
|
+
v(B, {
|
|
103
|
+
label: t.value.label,
|
|
104
|
+
"prepend-icon": t.value.prependIcon,
|
|
105
|
+
onClick: m[2] || (m[2] = (g) => r("click:action", t.value.value)),
|
|
106
|
+
variant: "fab"
|
|
107
|
+
}, null, 8, ["label", "prepend-icon"])
|
|
108
|
+
])
|
|
109
|
+
])) : y("", !0)
|
|
110
|
+
], 64);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}), se = { class: "inline-flex" }, ue = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, re = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ie = {
|
|
114
|
+
class: "overflow-hidden overflow-y-scroll",
|
|
115
|
+
style: { maxHeight: "105px" }
|
|
116
|
+
}, ce = {
|
|
117
|
+
class: "overflow-hidden overflow-y-scroll",
|
|
118
|
+
style: { maxHeight: "105px" }
|
|
119
|
+
}, de = /* @__PURE__ */ V({
|
|
120
|
+
__name: "ChangeLocationComponent",
|
|
121
|
+
props: {
|
|
122
|
+
showBusiness: { type: Boolean }
|
|
123
|
+
},
|
|
124
|
+
setup(i) {
|
|
125
|
+
const o = P(), c = Z(), r = _(() => {
|
|
126
|
+
var e;
|
|
127
|
+
return (e = c.currentBusiness.value) == null ? void 0 : e.name;
|
|
128
|
+
}), { t } = j(), l = O(""), n = _({
|
|
129
|
+
get() {
|
|
130
|
+
return o.businessLevel;
|
|
131
|
+
},
|
|
132
|
+
set(e) {
|
|
133
|
+
o.businessLevel = e;
|
|
134
|
+
}
|
|
135
|
+
}), s = _(
|
|
136
|
+
() => o.locations.map((e) => ({ label: e.name, value: e.dbName, type: e.type })).filter(
|
|
137
|
+
(e) => l.value ? e.label.toLocaleLowerCase().includes(l.value.toLocaleLowerCase()) : !0
|
|
138
|
+
)
|
|
139
|
+
), d = _(
|
|
140
|
+
() => s.value.filter((e) => e.type === "restaurant")
|
|
141
|
+
), k = _(
|
|
142
|
+
() => s.value.filter((e) => e.type === "warehouse")
|
|
143
|
+
);
|
|
144
|
+
function x({ value: e }) {
|
|
145
|
+
n.value = !1, o.selectLocation(o.locations.find((m) => m.dbName === e));
|
|
146
|
+
}
|
|
147
|
+
return (e, m) => {
|
|
148
|
+
const B = h("FmIcon"), g = h("FmSearch"), M = h("FmMenuDivider"), H = h("FmMenuHeader"), $ = h("FmMenuItem"), Y = h("FmMenu");
|
|
149
|
+
return a(), b("div", se, [
|
|
150
|
+
v(Y, { "close-on-click": !0 }, {
|
|
151
|
+
"menu-button": T(() => {
|
|
152
|
+
var p;
|
|
153
|
+
return [
|
|
154
|
+
f("div", ue, [
|
|
155
|
+
v(B, {
|
|
156
|
+
name: e.showBusiness && n.value ? "store" : "storefront",
|
|
157
|
+
size: "sm"
|
|
158
|
+
}, null, 8, ["name"]),
|
|
159
|
+
f("div", re, L(e.showBusiness && n.value ? r.value : ((p = u(o)._currentLocation) == null ? void 0 : p.name) ?? u(t)("inventory.common.noLocationSelected")), 1),
|
|
160
|
+
v(B, {
|
|
161
|
+
name: "expand_more",
|
|
162
|
+
size: "sm"
|
|
163
|
+
})
|
|
164
|
+
])
|
|
165
|
+
];
|
|
166
|
+
}),
|
|
167
|
+
default: T(() => [
|
|
168
|
+
v(g, {
|
|
169
|
+
"model-value": l.value,
|
|
170
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => l.value = p),
|
|
171
|
+
class: "w-[200px]",
|
|
172
|
+
placeholder: u(t)("inventory.common.table.toolbar.filterItems")
|
|
173
|
+
}, null, 8, ["model-value", "placeholder"]),
|
|
174
|
+
v(M),
|
|
175
|
+
e.showBusiness ? (a(), b(F, { key: 0 }, [
|
|
176
|
+
v(H, {
|
|
177
|
+
label: u(t)("inventory.common.business")
|
|
178
|
+
}, null, 8, ["label"]),
|
|
179
|
+
v(M),
|
|
180
|
+
v($, {
|
|
181
|
+
"model-value": n.value,
|
|
182
|
+
label: r.value,
|
|
183
|
+
onClick: m[1] || (m[1] = (p) => n.value = !0)
|
|
184
|
+
}, null, 8, ["model-value", "label"])
|
|
185
|
+
], 64)) : y("", !0),
|
|
186
|
+
v(H, {
|
|
187
|
+
label: u(t)("inventory.common.restaurant")
|
|
188
|
+
}, null, 8, ["label"]),
|
|
189
|
+
v(M),
|
|
190
|
+
f("div", ie, [
|
|
191
|
+
(a(!0), b(F, null, R(d.value, (p) => {
|
|
192
|
+
var C;
|
|
193
|
+
return a(), w($, {
|
|
194
|
+
key: p.value,
|
|
195
|
+
"model-value": !n.value && ((C = u(o)._currentLocation) == null ? void 0 : C.dbName) === p.value,
|
|
196
|
+
label: p.label,
|
|
197
|
+
onClick: (Q) => x(p)
|
|
198
|
+
}, null, 8, ["model-value", "label", "onClick"]);
|
|
199
|
+
}), 128))
|
|
200
|
+
]),
|
|
201
|
+
d.value.length ? y("", !0) : (a(), w($, {
|
|
202
|
+
key: 1,
|
|
203
|
+
disabled: "",
|
|
204
|
+
label: u(t)("inventory.common.noResultFound")
|
|
205
|
+
}, null, 8, ["label"])),
|
|
206
|
+
v(H, {
|
|
207
|
+
label: u(t)("inventory.common.warehouse")
|
|
208
|
+
}, null, 8, ["label"]),
|
|
209
|
+
v(M),
|
|
210
|
+
f("div", ce, [
|
|
211
|
+
(a(!0), b(F, null, R(k.value, (p) => {
|
|
212
|
+
var C;
|
|
213
|
+
return a(), w($, {
|
|
214
|
+
key: p.value,
|
|
215
|
+
"model-value": !n.value && ((C = u(o)._currentLocation) == null ? void 0 : C.dbName) === p.value,
|
|
216
|
+
label: p.label,
|
|
217
|
+
onClick: (Q) => x(p)
|
|
218
|
+
}, null, 8, ["model-value", "label", "onClick"]);
|
|
219
|
+
}), 128))
|
|
220
|
+
]),
|
|
221
|
+
k.value.length ? y("", !0) : (a(), w($, {
|
|
222
|
+
key: 2,
|
|
223
|
+
disabled: "",
|
|
224
|
+
label: u(t)("inventory.common.noResultFound")
|
|
225
|
+
}, null, 8, ["label"]))
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
]);
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
function xe() {
|
|
234
|
+
const i = /* @__PURE__ */ new Date();
|
|
235
|
+
return i.setDate(i.getDate() - 15), {
|
|
236
|
+
start: i,
|
|
237
|
+
end: /* @__PURE__ */ new Date()
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function z(i = 15) {
|
|
241
|
+
const o = /* @__PURE__ */ new Date();
|
|
242
|
+
o.setDate(o.getDate() - i);
|
|
243
|
+
const c = o, r = /* @__PURE__ */ new Date();
|
|
244
|
+
return {
|
|
245
|
+
startDate: `${N(c)}`,
|
|
246
|
+
endDate: `${N(r)}`
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
const me = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, pe = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ve = /* @__PURE__ */ V({
|
|
250
|
+
__name: "FmDateRangePickerChip",
|
|
251
|
+
props: {
|
|
252
|
+
modelValue: { default: (i) => i.modelValue ?? z() }
|
|
253
|
+
},
|
|
254
|
+
emits: ["update:modelValue"],
|
|
255
|
+
setup(i, { emit: o }) {
|
|
256
|
+
const c = o, r = O(z());
|
|
257
|
+
K(r, (l) => {
|
|
258
|
+
c("update:modelValue", l);
|
|
259
|
+
});
|
|
260
|
+
const t = _(() => {
|
|
261
|
+
const { startDate: l, endDate: n } = r.value;
|
|
262
|
+
return !l && !n ? "" : `${l} - ${n}`;
|
|
263
|
+
});
|
|
264
|
+
return (l, n) => {
|
|
265
|
+
const s = h("FmIcon"), d = h("FmDateRangePicker");
|
|
266
|
+
return a(), w(d, {
|
|
267
|
+
"show-predefined-range": "",
|
|
268
|
+
modelValue: r.value,
|
|
269
|
+
"onUpdate:modelValue": n[0] || (n[0] = (k) => r.value = k),
|
|
270
|
+
"start-label": "",
|
|
271
|
+
"end-label": ""
|
|
272
|
+
}, {
|
|
273
|
+
"trigger-button": T(() => [
|
|
274
|
+
f("div", me, [
|
|
275
|
+
v(s, {
|
|
276
|
+
name: "calendar_month",
|
|
277
|
+
size: "sm"
|
|
278
|
+
}),
|
|
279
|
+
f("div", pe, L(t.value), 1)
|
|
280
|
+
])
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
}, 8, ["modelValue"]);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
}), fe = { class: "flex-1 w-full flex items-center gap-4" }, be = {
|
|
287
|
+
key: 0,
|
|
288
|
+
class: "flex-1"
|
|
289
|
+
}, ye = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, Be = /* @__PURE__ */ V({
|
|
290
|
+
__name: "FmInventoryTableToolbar",
|
|
291
|
+
props: /* @__PURE__ */ W({
|
|
292
|
+
dateRangeQuery: { type: Boolean },
|
|
293
|
+
changeLocation: { type: Boolean },
|
|
294
|
+
searchable: { type: Boolean },
|
|
295
|
+
actions: {},
|
|
296
|
+
usingBusinessHelperText: {},
|
|
297
|
+
showBusiness: { type: Boolean }
|
|
298
|
+
}, {
|
|
299
|
+
search: {},
|
|
300
|
+
searchModifiers: {},
|
|
301
|
+
dateRange: {},
|
|
302
|
+
dateRangeModifiers: {}
|
|
303
|
+
}),
|
|
304
|
+
emits: ["update:search", "update:dateRange"],
|
|
305
|
+
setup(i) {
|
|
306
|
+
const { breakpoints: o } = S(), c = _(() => o.value.xs || o.value.sm), r = U(i, "search"), t = U(i, "dateRange"), { t: l } = j(), n = A();
|
|
307
|
+
return (s, d) => {
|
|
308
|
+
const k = h("FmTextField"), x = h("FmButton");
|
|
309
|
+
return a(), b("div", {
|
|
310
|
+
class: "flex flex-col gap-8",
|
|
311
|
+
onVnodeMounted: d[2] || (d[2] = //@ts-ignore
|
|
312
|
+
(...e) => u(n).onMounted && u(n).onMounted(...e)),
|
|
313
|
+
onVnodeUnmounted: d[3] || (d[3] = //@ts-ignore
|
|
314
|
+
(...e) => u(n).onUnmounted && u(n).onUnmounted(...e))
|
|
315
|
+
}, [
|
|
316
|
+
f("div", {
|
|
317
|
+
class: D([
|
|
318
|
+
"flex gap-8 items-center h-48",
|
|
319
|
+
{
|
|
320
|
+
"px-8 flex-col-reverse h-[unset]": c.value,
|
|
321
|
+
"h-48": !c.value
|
|
322
|
+
}
|
|
323
|
+
])
|
|
324
|
+
}, [
|
|
325
|
+
s.changeLocation || s.dateRangeQuery ? (a(), b("div", {
|
|
326
|
+
key: 0,
|
|
327
|
+
class: D([
|
|
328
|
+
"flex gap-8 items-center",
|
|
329
|
+
{
|
|
330
|
+
"w-full overflow-x-auto": c.value
|
|
331
|
+
}
|
|
332
|
+
])
|
|
333
|
+
}, [
|
|
334
|
+
s.changeLocation ? (a(), w(de, {
|
|
335
|
+
key: 0,
|
|
336
|
+
"show-business": s.showBusiness
|
|
337
|
+
}, null, 8, ["show-business"])) : y("", !0),
|
|
338
|
+
s.dateRangeQuery ? (a(), w(ve, {
|
|
339
|
+
key: 1,
|
|
340
|
+
"model-value": t.value,
|
|
341
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => t.value = e)
|
|
342
|
+
}, null, 8, ["model-value"])) : y("", !0)
|
|
343
|
+
], 2)) : y("", !0),
|
|
344
|
+
f("div", fe, [
|
|
345
|
+
c.value ? y("", !0) : (a(), b("div", be)),
|
|
346
|
+
f("div", ye, [
|
|
347
|
+
s.searchable ? (a(), w(k, {
|
|
348
|
+
key: 0,
|
|
349
|
+
"model-value": r.value,
|
|
350
|
+
"onUpdate:modelValue": d[1] || (d[1] = (e) => r.value = e),
|
|
351
|
+
"prepend-icon": "search",
|
|
352
|
+
placeholder: u(l)("inventory.common.table.toolbar.filterItems"),
|
|
353
|
+
class: "w-full"
|
|
354
|
+
}, null, 8, ["model-value", "placeholder"])) : y("", !0)
|
|
355
|
+
]),
|
|
356
|
+
(a(!0), b(F, null, R(s.actions, (e, m) => (a(), w(x, {
|
|
357
|
+
key: m,
|
|
358
|
+
variant: "tertiary",
|
|
359
|
+
"prepend-icon": e.icon,
|
|
360
|
+
onClick: e.onClick
|
|
361
|
+
}, null, 8, ["prepend-icon", "onClick"]))), 128))
|
|
362
|
+
])
|
|
363
|
+
], 2)
|
|
364
|
+
], 512);
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
export {
|
|
369
|
+
ke as _,
|
|
370
|
+
Be as a,
|
|
371
|
+
xe as b,
|
|
372
|
+
z as i,
|
|
373
|
+
A as u
|
|
374
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref as z, defineComponent as le, computed as C, resolveComponent as R, openBlock as y, createBlock as B, withCtx as $, createVNode as f, unref as d, createElementBlock as U, Fragment as Q, createElementVNode as c, createCommentVNode as O, onMounted as nt, watch as je, normalizeClass as X, createTextVNode as He, toDisplayString as L, renderList as oe, isRef as Ee, renderSlot as ge, createSlots as Oe, normalizeStyle as ot, Teleport as De, normalizeProps as lt, guardReactiveProps as at } from "vue";
|
|
2
|
-
import { u as ae, c as Ye, S as rt, _ as st, A as _e, a as Ge, g as xe, t as qe, F as ve, R as be, U as it, M as ut, d as Ae, b as We, C as Ce, e as Te, f as dt, h as ct, I as mt, i as pt, j as vt } from "./app-
|
|
2
|
+
import { u as ae, c as Ye, S as rt, _ as st, A as _e, a as Ge, g as xe, t as qe, F as ve, R as be, U as it, M as ut, d as Ae, b as We, C as Ce, e as Te, f as dt, h as ct, I as mt, i as pt, j as vt } from "./app-SBnQEeEV.js";
|
|
3
3
|
import { useDialog as Ke, useSnackbar as Ve, useProxiedModel as Pe, useDialogChild as ft, useBreakpoints as yt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as gt, _ as bt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as K, D as Be, R as he } from "./row-action.enum-PMKMRrZR.js";
|
|
6
6
|
import { useI18n as re, useCoreStore as fe } from "@feedmepos/mf-common";
|
|
7
7
|
import { defineStore as ht, storeToRefs as _t } from "pinia";
|
|
8
|
-
import { c as xt, _ as Vt, F as ze
|
|
9
|
-
import { _ as Ct, a as Ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { c as xt, _ as Vt, F as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
|
+
import { u as kt, _ as Ct, a as Ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js";
|
|
10
10
|
import { g as St, _ as Fe, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
11
|
-
import { _ as we, t as Je, d as Qe, s as wt, r as Mt } from "./xlsx.util-
|
|
11
|
+
import { _ as we, t as Je, d as Qe, s as wt, r as Mt } from "./xlsx.util-Dsf-EgrG.js";
|
|
12
12
|
import { _ as Me } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
13
13
|
import "./array-ClJzD_Lt.js";
|
|
14
14
|
const $e = ht("ingredientForm", function() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as q, mergeModels as de, useModel as ue, onMounted as ce, ref as P, computed as K, resolveComponent as B, openBlock as k, createElementBlock as A, createElementVNode as m, toDisplayString as I, createVNode as $, createBlock as U, withCtx as N, Fragment as O, renderList as W, normalizeClass as T, normalizeStyle as fe, createSlots as me, unref as M, createCommentVNode as E, withModifiers as pe, reactive as X, watch as ee, isRef as te, Teleport as ge } from "vue";
|
|
2
2
|
import { E as ve } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { aj as ne, ak as ye, c as z, al as be, j as he } from "./app-SBnQEeEV.js";
|
|
4
4
|
import { useDialogChild as _e, useDialog as ie, useProxiedModel as oe, useSnackbar as Ce } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as R, useCoreStore as xe } from "@feedmepos/mf-common";
|
|
6
|
-
import { _ as we, a as He } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as we, a as He } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js";
|
|
7
7
|
const ke = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
8
8
|
function J(h, y) {
|
|
9
9
|
return ne.filter(h, y).length > 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import { l as d } from "./app-
|
|
2
|
+
import { l as d } from "./app-SBnQEeEV.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as m, j as F } from "./app-
|
|
1
|
+
import { n as m, j as F } from "./app-SBnQEeEV.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as h, defineComponent as y, resolveComponent as d, openBlock as _, createElementBlock as f, renderSlot as k, createVNode as p, withCtx as g } from "vue";
|
|
4
4
|
const l = m((e, t) => {
|
package/dist/{PurchaseOrderPrintPreview-D0Rnf43J.js → PurchaseOrderPrintPreview-B0hDduXB.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as f, onMounted as m, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { ae as y, i as C } from "./app-
|
|
3
|
+
import { ae as y, i as C } from "./app-SBnQEeEV.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, q = { class: "sub-header" }, T = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as R, watch as L, computed as J, resolveComponent as ce, openBlock as b, createBlock as k, unref as e, withCtx as C, createElementVNode as u, createVNode as c, normalizeStyle as le, toDisplayString as ue, createElementBlock as me, createCommentVNode as de, Teleport as pe, mergeProps as Q } from "vue";
|
|
2
|
-
import { Y as h, j as fe, o as G, a as Z, G as ve, Z as _e, b as ye } from "./app-
|
|
3
|
-
import { i as W,
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { i as
|
|
7
|
-
import { useSnackbar as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
2
|
+
import { Y as h, j as fe, o as G, a as Z, G as ve, Z as _e, b as ye } from "./app-SBnQEeEV.js";
|
|
3
|
+
import { i as W, u as ge, _ as De, a as be } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DYBTXD_J.js";
|
|
4
|
+
import { u as he } from "./purchase-order-transaction-type-Dp0wsGal.js";
|
|
5
|
+
import { u as xe, _ as Se, g as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D8-sMRGm.js";
|
|
6
|
+
import { i as ke, e as Ce } from "./id-to-date-Y6berpHs.js";
|
|
7
|
+
import { useSnackbar as qe, useBreakpoints as we } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as Te } from "./TransferDialog.vue_vue_type_script_setup_true_lang-CSUnXAyq.js";
|
|
9
|
+
import { _ as Fe, F as x } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
10
10
|
import "./array-ClJzD_Lt.js";
|
|
11
11
|
import { useI18n as Oe } from "@feedmepos/mf-common";
|
|
12
12
|
const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee = { class: "flex flex-col py-8" }, Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, $e = {
|
|
@@ -15,7 +15,7 @@ const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee =
|
|
|
15
15
|
}, Ne = { class: "pt-8" }, X = "ReceiveRequestViewSearchCriteria", Xe = /* @__PURE__ */ ie({
|
|
16
16
|
__name: "ReceiveRequestView",
|
|
17
17
|
setup(je) {
|
|
18
|
-
const { t: m } = Oe(), B =
|
|
18
|
+
const { t: m } = Oe(), B = qe();
|
|
19
19
|
h.object({
|
|
20
20
|
name: h.string().optional().nullable(),
|
|
21
21
|
startDate: h.string().optional().nullable(),
|
|
@@ -38,12 +38,12 @@ const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee =
|
|
|
38
38
|
function T() {
|
|
39
39
|
q.setItem(X, JSON.stringify(i.value));
|
|
40
40
|
}
|
|
41
|
-
const i = R(I()), a =
|
|
41
|
+
const i = R(I()), a = he("receive/request", i.value), { columnDefs: ee } = xe("receive/request", a), F = fe();
|
|
42
42
|
async function te() {
|
|
43
43
|
const o = `inventory-record_${G(i.value.startDate).format("DD-MM-YYYY_HH-mm")}-${G(i.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, r = a.purchaseOrders.value.flatMap(
|
|
44
44
|
(n) => n.items.map((t) => {
|
|
45
|
-
const s = new Date(
|
|
46
|
-
|
|
45
|
+
const s = new Date(ke(n._id) ?? ""), p = n.effectiveAt ? new Date(n.effectiveAt) : void 0, f = Z(
|
|
46
|
+
Re(t.sku, n.deliveryOrder || [])
|
|
47
47
|
), v = Z(t.quantity);
|
|
48
48
|
return {
|
|
49
49
|
"SKU code": t.code,
|
|
@@ -70,7 +70,7 @@ const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee =
|
|
|
70
70
|
"Ordered quantity",
|
|
71
71
|
"Unit"
|
|
72
72
|
];
|
|
73
|
-
w.enableBackdatePo && l.insert("Effective at", 4), w.enableTotalCost && l.push("Total cost"), await
|
|
73
|
+
w.enableBackdatePo && l.insert("Effective at", 4), w.enableTotalCost && l.push("Total cost"), await Ce(
|
|
74
74
|
[
|
|
75
75
|
{
|
|
76
76
|
name: "purchases",
|
|
@@ -97,7 +97,7 @@ const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee =
|
|
|
97
97
|
function ae(o) {
|
|
98
98
|
o === "create" && a.promptCreateTransferDialog();
|
|
99
99
|
}
|
|
100
|
-
const { breakpoints: O } =
|
|
100
|
+
const { breakpoints: O } = we(), oe = J(() => O.value.xs || O.value.sm ? 10 : 20), re = ge(), ne = J(() => [
|
|
101
101
|
{
|
|
102
102
|
icon: "refresh",
|
|
103
103
|
onClick: a.fetchData
|
|
@@ -109,7 +109,7 @@ const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee =
|
|
|
109
109
|
]);
|
|
110
110
|
return (o, r) => {
|
|
111
111
|
const l = ce("FmTable");
|
|
112
|
-
return b(), k(
|
|
112
|
+
return b(), k(De, {
|
|
113
113
|
title: e(m)("inventory.transfer.receiveRequest.title2"),
|
|
114
114
|
actions: [
|
|
115
115
|
{
|
|
@@ -125,7 +125,7 @@ const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee =
|
|
|
125
125
|
var n;
|
|
126
126
|
return [
|
|
127
127
|
u("div", Ye, [
|
|
128
|
-
c(
|
|
128
|
+
c(be, {
|
|
129
129
|
"date-range-query": "",
|
|
130
130
|
"date-range": S.value,
|
|
131
131
|
"onUpdate:dateRange": r[0] || (r[0] = (t) => S.value = t),
|
|
@@ -146,7 +146,7 @@ const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee =
|
|
|
146
146
|
"page-size": oe.value
|
|
147
147
|
}, {
|
|
148
148
|
"list-row": C((t) => [
|
|
149
|
-
c(
|
|
149
|
+
c(Fe, {
|
|
150
150
|
row: t,
|
|
151
151
|
onRowClick: e(a).promptShowTransferDetails
|
|
152
152
|
}, {
|
|
@@ -189,10 +189,10 @@ const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee =
|
|
|
189
189
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
190
190
|
]),
|
|
191
191
|
(b(), k(pe, { to: "body" }, [
|
|
192
|
-
c(
|
|
192
|
+
c(Te, Q(e(a).transferDialogProps.value, {
|
|
193
193
|
onSubmitted: e(a).fetchData
|
|
194
194
|
}), null, 16, ["onSubmitted"]),
|
|
195
|
-
c(
|
|
195
|
+
c(Se, Q(e(a).transferDetailsProps.value, {
|
|
196
196
|
onSubmitted: e(a).fetchData
|
|
197
197
|
}), null, 16, ["onSubmitted"])
|
|
198
198
|
]))
|