@feedmepos/mf-inventory-portal 0.0.22-dev.11 → 0.0.22-dev.12
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-D0WHopPL.js → ApprovalView-Cjeqabxg.js} +26 -26
- package/dist/{BindingsDialog-Ddv46-I4.js → BindingsDialog-DYf9izzO.js} +1 -1
- package/dist/{BindingsPicker-CbNehOQo.js → BindingsPicker--GhOF5Zy.js} +7 -7
- package/dist/{BindingsTable-C-z5jzGu.js → BindingsTable-DFGX1bO_.js} +1 -1
- package/dist/{ClosingTemplateView-Bs59bML_.js → ClosingTemplateView-D0ZehXOT.js} +23 -23
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGIfL24N.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js} +8 -8
- package/dist/{IngredientsView-Bk0U9IrL.js → IngredientsView-D-M4VjtX.js} +3 -3
- package/dist/{IntegrationView-hEv2Fe67.js → IntegrationView-D29NyKuw.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ButZx6Cm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMzUk8cN.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D1WcEO5R.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CrYQR5oS.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-wJLaWy-I.js → PurchaseOrderPrintPreview-BmzWBQYf.js} +1 -1
- package/dist/{ReceiveRequestView-CT7_gSPj.js → ReceiveRequestView-D5uhgByr.js} +20 -20
- package/dist/{RecipeView-smOk18iy.js → RecipeView-CREeE1nK.js} +3 -3
- package/dist/{StockView-CE00jzyG.js → StockView-jAGaTT7q.js} +586 -568
- package/dist/{SupplierView-D346tx42.js → SupplierView-BjkhByNr.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ixxW-kNE.js → TransferDetails.vue_vue_type_script_setup_true_lang-CInXmMf_.js} +4 -4
- package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-Cf9TVjj7.js → TransferDialog.vue_vue_type_script_setup_true_lang-CLiLhIMS.js} +56 -56
- package/dist/{TransferTemplateView-Cz6Hlmtm.js → TransferTemplateView-CUqEsRJ6.js} +68 -68
- package/dist/{UnitView-BdEvCjCv.js → UnitView-BrlpQn3T.js} +4 -4
- package/dist/{WarehouseView-CtqTSV9B.js → WarehouseView-CbTTIdv9.js} +15 -15
- package/dist/{app-BbLqKVBN.js → app-BDzV3RNp.js} +1627 -1581
- package/dist/app.js +1 -1
- package/dist/{decimal-BXH34eZD.js → decimal-CRTw2PGO.js} +1 -1
- package/dist/{defineDeepModel-CN2db5nM.js → defineDeepModel-BoSSw2c6.js} +4 -4
- package/dist/{format-time-from-id-mDqFHPw7.js → format-time-from-id-CxoHtJa5.js} +1 -1
- package/dist/{id-to-date-CRXORa4v.js → id-to-date-CJbxtIFh.js} +1 -1
- package/dist/{purchase-order-transaction-type-DHsIlV8_.js → purchase-order-transaction-type-0nZnCUE7.js} +38 -38
- package/dist/{supplier-DTKB6s-P.js → supplier-BA6jJGNv.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-BVp9gXZX.js → use-template-enabled-locations-2-Di0NHn-g.js} +1 -1
- package/dist/{xlsx-CZubj3Ki.js → xlsx-BEDKASqP.js} +1 -1
- package/dist/{xlsx.util-DjhsRAqO.js → xlsx.util-MTUBPx67.js} +2 -2
- package/package.json +3 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as
|
|
2
|
-
import {
|
|
3
|
-
import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as _e } from "./purchase-order-transaction-type-
|
|
5
|
-
import { u as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as G, unref as e, withCtx as b, createElementVNode as s, normalizeClass as oe, createVNode as n, normalizeStyle as re, toDisplayString as ne, createElementBlock as se, createCommentVNode as le, Teleport as ie, mergeProps as ce } from "vue";
|
|
2
|
+
import { $ as f, P as J, j as pe } from "./app-BDzV3RNp.js";
|
|
3
|
+
import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js";
|
|
4
|
+
import { u as _e } from "./purchase-order-transaction-type-0nZnCUE7.js";
|
|
5
|
+
import { u as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CInXmMf_.js";
|
|
6
6
|
import { _ as he, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
7
7
|
import { useBreakpoints as ge } from "@feedmepos/ui-library";
|
|
8
8
|
import { useI18n as be } from "@feedmepos/mf-common";
|
|
9
|
-
const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" },
|
|
9
|
+
const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, ke = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
12
|
-
},
|
|
12
|
+
}, Oe = { class: "pt-8" }, je = /* @__PURE__ */ ee({
|
|
13
13
|
__name: "ApprovalView",
|
|
14
14
|
setup(Se) {
|
|
15
|
-
const o = _e("approval"), { columnDefs:
|
|
15
|
+
const o = _e("approval"), { columnDefs: K } = ve("approval", o), Q = pe();
|
|
16
16
|
f.object({
|
|
17
17
|
name: f.string().optional().nullable(),
|
|
18
18
|
start: f.date().optional().nullable(),
|
|
@@ -22,8 +22,8 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
22
22
|
name: "",
|
|
23
23
|
...ue()
|
|
24
24
|
}), a = h({
|
|
25
|
-
startDate:
|
|
26
|
-
endDate:
|
|
25
|
+
startDate: J(x.value.start ?? /* @__PURE__ */ new Date()),
|
|
26
|
+
endDate: J(x.value.end ?? /* @__PURE__ */ new Date())
|
|
27
27
|
});
|
|
28
28
|
te([() => a.value.startDate], () => {
|
|
29
29
|
if (!a.value.startDate)
|
|
@@ -38,11 +38,11 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
const v = h(""), { breakpoints: y } = ge(), D = U(() => y.value.xs || y.value.sm),
|
|
41
|
+
const v = h(""), { breakpoints: y } = ge(), D = U(() => y.value.xs || y.value.sm), W = U(() => D.value ? 10 : 20), X = me(), { t: Z } = be();
|
|
42
42
|
return (w, l) => {
|
|
43
43
|
const B = ae("FmTable");
|
|
44
|
-
return g(),
|
|
45
|
-
title: e(
|
|
44
|
+
return g(), G(de, {
|
|
45
|
+
title: e(Z)("inventory.transfer.approval.title")
|
|
46
46
|
}, {
|
|
47
47
|
default: b(() => [
|
|
48
48
|
s("div", {
|
|
@@ -62,13 +62,13 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
62
62
|
actions: [{ icon: "refresh", onClick: e(o).fetchData }]
|
|
63
63
|
}, null, 8, ["search", "actions"]),
|
|
64
64
|
n(B, {
|
|
65
|
-
style: re(e(
|
|
66
|
-
"column-defs": e(
|
|
65
|
+
style: re(e(X).tableHeight),
|
|
66
|
+
"column-defs": e(K),
|
|
67
67
|
"row-data": e(o).purchaseRequests.value,
|
|
68
68
|
"search-value": v.value,
|
|
69
|
-
loading: !e(
|
|
69
|
+
loading: !e(Q)._currentLocation || e(o).loading.value,
|
|
70
70
|
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
|
|
71
|
-
"page-size":
|
|
71
|
+
"page-size": W.value
|
|
72
72
|
}, {
|
|
73
73
|
"list-row": b((r) => [
|
|
74
74
|
n(he, {
|
|
@@ -76,31 +76,31 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
76
76
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
77
77
|
}, {
|
|
78
78
|
default: b((t) => {
|
|
79
|
-
var
|
|
79
|
+
var R, k, O, i, S, T, C, $, c, z, F, p, M, u, V, Y, j, q, L, m, N, P, E, A, d, H;
|
|
80
80
|
return [
|
|
81
81
|
s("div", xe, [
|
|
82
82
|
s("div", ye, [
|
|
83
83
|
n(e(_), {
|
|
84
|
-
render: (
|
|
84
|
+
render: (O = (k = (R = t.purchaseOrder__id) == null ? void 0 : R.column) == null ? void 0 : k.columnDef) == null ? void 0 : O.cell,
|
|
85
85
|
props: (S = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : S.call(i)
|
|
86
86
|
}, null, 8, ["render", "props"])
|
|
87
87
|
]),
|
|
88
88
|
s("div", we, [
|
|
89
89
|
n(e(_), {
|
|
90
|
-
render: (
|
|
91
|
-
props: (
|
|
90
|
+
render: ($ = (C = (T = t.to_name) == null ? void 0 : T.column) == null ? void 0 : C.columnDef) == null ? void 0 : $.cell,
|
|
91
|
+
props: (z = (c = t.to_name) == null ? void 0 : c.getContext) == null ? void 0 : z.call(c)
|
|
92
92
|
}, null, 8, ["render", "props"])
|
|
93
93
|
]),
|
|
94
|
-
s("div",
|
|
95
|
-
(Y = r.original.purchaseOrder) != null && Y.ref ? (g(), se("div",
|
|
94
|
+
s("div", Re, ne((V = (u = (M = (p = (F = r.original.purchaseOrder) == null ? void 0 : F.items) == null ? void 0 : p.map) == null ? void 0 : M.call(p, (I) => `${I.name}`)) == null ? void 0 : u.join) == null ? void 0 : V.call(u, ", ")), 1),
|
|
95
|
+
(Y = r.original.purchaseOrder) != null && Y.ref ? (g(), se("div", ke, [
|
|
96
96
|
n(e(_), {
|
|
97
97
|
render: (L = (q = (j = t.purchaseOrder_ref) == null ? void 0 : j.column) == null ? void 0 : q.columnDef) == null ? void 0 : L.cell,
|
|
98
98
|
props: (N = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : N.call(m)
|
|
99
99
|
}, null, 8, ["render", "props"])
|
|
100
100
|
])) : le("", !0),
|
|
101
|
-
s("div",
|
|
101
|
+
s("div", Oe, [
|
|
102
102
|
n(e(_), {
|
|
103
|
-
render: (A = (
|
|
103
|
+
render: (A = (E = (P = t.purchaseOrder_status) == null ? void 0 : P.column) == null ? void 0 : E.columnDef) == null ? void 0 : A.cell,
|
|
104
104
|
props: (H = (d = t.purchaseOrder_status) == null ? void 0 : d.getContext) == null ? void 0 : H.call(d)
|
|
105
105
|
}, null, 8, ["render", "props"])
|
|
106
106
|
])
|
|
@@ -113,7 +113,7 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
|
|
|
113
113
|
_: 1
|
|
114
114
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
115
115
|
], 2),
|
|
116
|
-
(g(),
|
|
116
|
+
(g(), G(ie, { to: "body" }, [
|
|
117
117
|
n(De, ce(e(o).transferDetailsProps.value, {
|
|
118
118
|
onSubmitted: e(o).fetchData
|
|
119
119
|
}), null, 16, ["onSubmitted"])
|
|
@@ -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, ap as L, _ as S } from "./app-BDzV3RNp.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,
|
|
2
|
+
import { u as M, ap as x, z } from "./app-BDzV3RNp.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -62,9 +62,9 @@ const F = {
|
|
|
62
62
|
];
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), _ = l(), o = x(B);
|
|
66
66
|
async function B() {
|
|
67
|
-
await d.readInventory(),
|
|
67
|
+
await d.readInventory(), _.value = o.onMessage(
|
|
68
68
|
"props:binding-items",
|
|
69
69
|
(e) => {
|
|
70
70
|
g.value = !1, a.value = e.type, i.value = e.bindings;
|
|
@@ -77,21 +77,21 @@ const F = {
|
|
|
77
77
|
function R() {
|
|
78
78
|
o.sendMessage("@submit:items", i.value);
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const y = l();
|
|
81
81
|
return U(() => {
|
|
82
|
-
const e =
|
|
82
|
+
const e = y.value;
|
|
83
83
|
e && new ResizeObserver(() => {
|
|
84
84
|
o.sendMessage("resize", e.scrollHeight);
|
|
85
85
|
}).observe(e);
|
|
86
86
|
}), V(() => {
|
|
87
87
|
var e, s;
|
|
88
|
-
(s = (e =
|
|
88
|
+
(s = (e = _.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
|
|
89
89
|
}), (e, s) => {
|
|
90
90
|
const n = E("FmButton"), t = E("FmCircularProgress");
|
|
91
91
|
return p(), f("div", {
|
|
92
92
|
class: "bg-white",
|
|
93
93
|
ref_key: "resizeableRef",
|
|
94
|
-
ref:
|
|
94
|
+
ref: y
|
|
95
95
|
}, [
|
|
96
96
|
g.value ? (p(), f("div", w, [
|
|
97
97
|
r(t, { size: "md" }),
|
|
@@ -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 {
|
|
2
|
+
import { r as v, u as E, ap as L } from "./app-BDzV3RNp.js";
|
|
3
3
|
import { components as F } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as S, h as x, computed as P, defineComponent as Y, openBlock as k, createElementBlock as F, createElementVNode as f, toDisplayString as A, createVNode as w, unref as c, Fragment as _e, renderList as Ce, resolveComponent as V, createBlock as
|
|
2
|
-
import { u as Ue, _ as Ee, a as Ne } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import { useDialog as Q, useSnackbar as W, FmButtonVariant as be, components as R, useProxiedModel as
|
|
1
|
+
import { ref as S, h as x, computed as P, defineComponent as Y, openBlock as k, createElementBlock as F, createElementVNode as f, toDisplayString as A, createVNode as w, unref as c, Fragment as _e, renderList as Ce, resolveComponent as V, createBlock as B, withCtx as I, watch as Me, isRef as Pe, createTextVNode as ve, normalizeClass as Se, normalizeStyle as Fe, Teleport as Ae, normalizeProps as Ve, guardReactiveProps as Ie, mergeProps as Re } from "vue";
|
|
2
|
+
import { u as Ue, _ as Ee, a as Ne } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js";
|
|
3
|
+
import { useCoreStore as ze, useI18n as q } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialog as Q, useSnackbar as W, FmButtonVariant as be, components as R, useProxiedModel as Be, useBreakpoints as Le } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as we, storeToRefs as Ye } from "pinia";
|
|
6
6
|
import { F as U, D as ye, R as E } from "./row-action.enum-PMKMRrZR.js";
|
|
7
|
-
import { n as je, c as xe, j as ke, u as Ke, R as He,
|
|
8
|
-
import { c as Ge, F as
|
|
9
|
-
import { f as Oe } from "./format-time-from-id-
|
|
7
|
+
import { n as je, c as xe, j as ke, u as Ke, R as He, z as Je, i as qe, T as he } from "./app-BDzV3RNp.js";
|
|
8
|
+
import { c as Ge, F as z, _ as Te } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
|
+
import { f as Oe } from "./format-time-from-id-CxoHtJa5.js";
|
|
10
10
|
import "vue-router";
|
|
11
|
-
import { d as Qe } from "./defineDeepModel-
|
|
12
|
-
import { u as We } from "./use-template-enabled-locations-2-
|
|
11
|
+
import { d as Qe } from "./defineDeepModel-BoSSw2c6.js";
|
|
12
|
+
import { u as We } from "./use-template-enabled-locations-2-Di0NHn-g.js";
|
|
13
13
|
const G = je((m, g) => {
|
|
14
14
|
function v() {
|
|
15
15
|
var t;
|
|
16
|
-
return `business_${((t =
|
|
16
|
+
return `business_${((t = ze().currentBusiness.value) == null ? void 0 : t._id) ?? ""}`;
|
|
17
17
|
}
|
|
18
18
|
return {
|
|
19
19
|
async getRecentPublishingJob() {
|
|
@@ -495,7 +495,7 @@ const Ze = { class: "flex flex-col gap-16 py-12" }, et = { class: "flex" }, tt =
|
|
|
495
495
|
f("div", lt, A(v.value.original.sku.code), 1)
|
|
496
496
|
]),
|
|
497
497
|
f("div", null, [
|
|
498
|
-
w(c(
|
|
498
|
+
w(c(z), {
|
|
499
499
|
render: (i = (a = (b = n.cellByColId[c(L).Delete]) == null ? void 0 : b.column) == null ? void 0 : a.columnDef) == null ? void 0 : i.cell,
|
|
500
500
|
props: (u = (d = n.cellByColId[c(L).Delete]) == null ? void 0 : d.getContext) == null ? void 0 : u.call(d)
|
|
501
501
|
}, null, 8, ["render", "props"])
|
|
@@ -508,7 +508,7 @@ const Ze = { class: "flex flex-col gap-16 py-12" }, et = { class: "flex" }, tt =
|
|
|
508
508
|
return k(), F("div", {
|
|
509
509
|
key: y.id
|
|
510
510
|
}, [
|
|
511
|
-
w(c(
|
|
511
|
+
w(c(z), {
|
|
512
512
|
render: (_ = (p = y.column) == null ? void 0 : p.columnDef) == null ? void 0 : _.cell,
|
|
513
513
|
props: (e = y.getContext) == null ? void 0 : e.call(y)
|
|
514
514
|
}, null, 8, ["render", "props"])
|
|
@@ -604,7 +604,7 @@ const Ze = { class: "flex flex-col gap-16 py-12" }, et = { class: "flex" }, tt =
|
|
|
604
604
|
}
|
|
605
605
|
return (e, o) => {
|
|
606
606
|
const h = V("FmTextField"), D = V("FmButton"), $ = V("FmTable"), C = V("FmForm");
|
|
607
|
-
return k(),
|
|
607
|
+
return k(), B(C, {
|
|
608
608
|
ref_key: "formRef",
|
|
609
609
|
ref: u,
|
|
610
610
|
class: "flex flex-col gap-32",
|
|
@@ -661,14 +661,14 @@ const Ze = { class: "flex flex-col gap-16 py-12" }, et = { class: "flex" }, tt =
|
|
|
661
661
|
size: "md"
|
|
662
662
|
}, null, 8, ["disabled", "label"])
|
|
663
663
|
]),
|
|
664
|
-
(k(),
|
|
664
|
+
(k(), B($, {
|
|
665
665
|
"column-defs": p.value,
|
|
666
666
|
"row-data": c(s).items,
|
|
667
667
|
key: c(s).items.map((l) => l.sku._id).join("."),
|
|
668
668
|
"hide-footer": ""
|
|
669
669
|
}, {
|
|
670
670
|
"list-row": I((l) => [
|
|
671
|
-
(k(),
|
|
671
|
+
(k(), B(Te, {
|
|
672
672
|
row: l,
|
|
673
673
|
key: c(s).items.map((r) => r.sku._id).join(".")
|
|
674
674
|
}, {
|
|
@@ -699,7 +699,7 @@ const Ze = { class: "flex flex-col gap-16 py-12" }, et = { class: "flex" }, tt =
|
|
|
699
699
|
emits: ["update:show", "submitted"],
|
|
700
700
|
setup(m, { expose: g, emit: v }) {
|
|
701
701
|
var C;
|
|
702
|
-
const s = m, n = v, t = G(), b = W(), { t: a } = q(), i =
|
|
702
|
+
const s = m, n = v, t = G(), b = W(), { t: a } = q(), i = Be(s, "show");
|
|
703
703
|
function d() {
|
|
704
704
|
return {
|
|
705
705
|
_id: "",
|
|
@@ -796,7 +796,7 @@ const Ze = { class: "flex flex-col gap-16 py-12" }, et = { class: "flex" }, tt =
|
|
|
796
796
|
}
|
|
797
797
|
return (l, r) => {
|
|
798
798
|
const N = V("FmButton"), M = V("FmSideSheet");
|
|
799
|
-
return k(),
|
|
799
|
+
return k(), B(M, {
|
|
800
800
|
modelValue: c(i),
|
|
801
801
|
"onUpdate:modelValue": r[2] || (r[2] = (T) => Pe(i) ? i.value = T : null),
|
|
802
802
|
"dismiss-away": "",
|
|
@@ -809,7 +809,7 @@ const Ze = { class: "flex flex-col gap-16 py-12" }, et = { class: "flex" }, tt =
|
|
|
809
809
|
])
|
|
810
810
|
]),
|
|
811
811
|
default: I(() => [
|
|
812
|
-
(k(),
|
|
812
|
+
(k(), B(pt, {
|
|
813
813
|
class: "w-full",
|
|
814
814
|
ref_key: "formRef",
|
|
815
815
|
ref: e,
|
|
@@ -1011,13 +1011,13 @@ const _t = /* @__PURE__ */ qe(yt, [["render", ht]]), wt = { class: "flex flex-co
|
|
|
1011
1011
|
f("div", Pt, [
|
|
1012
1012
|
f("div", St, [
|
|
1013
1013
|
f("div", Ft, [
|
|
1014
|
-
w(c(
|
|
1014
|
+
w(c(z), {
|
|
1015
1015
|
render: (ee = (Z = (X = T._id) == null ? void 0 : X.column) == null ? void 0 : Z.columnDef) == null ? void 0 : ee.cell,
|
|
1016
1016
|
props: (te = (j = T._id) == null ? void 0 : j.getContext) == null ? void 0 : te.call(j)
|
|
1017
1017
|
}, null, 8, ["render", "props"])
|
|
1018
1018
|
]),
|
|
1019
1019
|
f("div", At, [
|
|
1020
|
-
w(c(
|
|
1020
|
+
w(c(z), {
|
|
1021
1021
|
render: (oe = (le = (se = T.name) == null ? void 0 : se.column) == null ? void 0 : le.columnDef) == null ? void 0 : oe.cell,
|
|
1022
1022
|
props: (ne = (K = T.name) == null ? void 0 : K.getContext) == null ? void 0 : ne.call(K)
|
|
1023
1023
|
}, null, 8, ["render", "props"])
|
|
@@ -1028,14 +1028,14 @@ const _t = /* @__PURE__ */ qe(yt, [["render", ht]]), wt = { class: "flex flex-co
|
|
|
1028
1028
|
...M.original.items.length >= 3 ? [`and ${M.original.items.length - 3} more items`] : []
|
|
1029
1029
|
].join(", ")), 1),
|
|
1030
1030
|
f("div", It, [
|
|
1031
|
-
w(c(
|
|
1031
|
+
w(c(z), {
|
|
1032
1032
|
render: (ue = (ce = (re = T.ref) == null ? void 0 : re.column) == null ? void 0 : ce.columnDef) == null ? void 0 : ue.cell,
|
|
1033
1033
|
props: (de = (H = T.ref) == null ? void 0 : H.getContext) == null ? void 0 : de.call(H)
|
|
1034
1034
|
}, null, 8, ["render", "props"])
|
|
1035
1035
|
])
|
|
1036
1036
|
]),
|
|
1037
1037
|
f("div", null, [
|
|
1038
|
-
w(c(
|
|
1038
|
+
w(c(z), {
|
|
1039
1039
|
render: (fe = (pe = (me = T.status) == null ? void 0 : me.column) == null ? void 0 : pe.columnDef) == null ? void 0 : fe.cell,
|
|
1040
1040
|
props: (ge = (J = T.status) == null ? void 0 : J.getContext) == null ? void 0 : ge.call(J)
|
|
1041
1041
|
}, null, 8, ["render", "props"])
|
|
@@ -1052,7 +1052,7 @@ const _t = /* @__PURE__ */ qe(yt, [["render", ht]]), wt = { class: "flex flex-co
|
|
|
1052
1052
|
]),
|
|
1053
1053
|
_: 1
|
|
1054
1054
|
}, 8, ["title", "actions"]),
|
|
1055
|
-
(k(),
|
|
1055
|
+
(k(), B(Ae, { to: "body" }, [
|
|
1056
1056
|
w(_t, Ve(Ie(c(t))), null, 16),
|
|
1057
1057
|
w(bt, Re(c(n), {
|
|
1058
1058
|
onSubmitted: r[2] || (r[2] = (M) => c(i).fetchTemplates())
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
2
|
-
import { FmButtonVariant as X, useBreakpoints as
|
|
3
|
-
import { j as
|
|
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 P, withCtx as T, watch as K, mergeModels as W, useModel as S } from "vue";
|
|
2
|
+
import { FmButtonVariant as X, useBreakpoints as z } from "@feedmepos/ui-library";
|
|
3
|
+
import { j as O, P as U } from "./app-BDzV3RNp.js";
|
|
4
4
|
import { useCoreStore as Z, useI18n as j } from "@feedmepos/mf-common";
|
|
5
5
|
const I = E({});
|
|
6
6
|
function A() {
|
|
@@ -44,7 +44,7 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
44
44
|
setup(i, { emit: o }) {
|
|
45
45
|
const c = i, r = o, t = _(() => c.actions.find((e) => e.isPrimary)), l = _(
|
|
46
46
|
() => c.actions.filter((e) => !e.isPrimary).map((e) => ({ ...e, variant: e.variant ?? X.Tertiary }))
|
|
47
|
-
), { breakpoints: n } =
|
|
47
|
+
), { breakpoints: n } = z(), s = _(() => n.value.xs || n.value.sm), d = O(), k = _(() => d.businessLevel), x = A();
|
|
48
48
|
return (e, m) => {
|
|
49
49
|
const B = h("FmButton");
|
|
50
50
|
return a(), b(F, null, [
|
|
@@ -120,10 +120,10 @@ const ee = { class: "flex flex-col w-full bg-white h-full" }, ne = {
|
|
|
120
120
|
showBusiness: { type: Boolean }
|
|
121
121
|
},
|
|
122
122
|
setup(i) {
|
|
123
|
-
const o =
|
|
123
|
+
const o = O(), c = Z(), r = _(() => {
|
|
124
124
|
var e;
|
|
125
125
|
return (e = c.currentBusiness.value) == null ? void 0 : e.name;
|
|
126
|
-
}), { t } = j(), l =
|
|
126
|
+
}), { t } = j(), l = P(""), n = _({
|
|
127
127
|
get() {
|
|
128
128
|
return o.businessLevel;
|
|
129
129
|
},
|
|
@@ -251,7 +251,7 @@ const me = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
|
|
|
251
251
|
},
|
|
252
252
|
emits: ["update:modelValue"],
|
|
253
253
|
setup(i, { emit: o }) {
|
|
254
|
-
const c = o, r =
|
|
254
|
+
const c = o, r = P(N());
|
|
255
255
|
K(r, (l) => {
|
|
256
256
|
c("update:modelValue", l);
|
|
257
257
|
});
|
|
@@ -301,7 +301,7 @@ const me = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
|
|
|
301
301
|
}),
|
|
302
302
|
emits: ["update:search", "update:dateRange"],
|
|
303
303
|
setup(i) {
|
|
304
|
-
const { breakpoints: o } =
|
|
304
|
+
const { breakpoints: o } = z(), c = _(() => o.value.xs || o.value.sm), r = S(i, "search"), t = S(i, "dateRange"), { t: l } = j(), n = A();
|
|
305
305
|
return (s, d) => {
|
|
306
306
|
const k = h("FmTextField"), x = h("FmButton");
|
|
307
307
|
return a(), b("div", {
|
|
@@ -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 X, createElementVNode as c, createCommentVNode as O, onMounted as nt, watch as je, normalizeClass as Q, 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-BDzV3RNp.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
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-
|
|
9
|
+
import { u as kt, _ as Ct, a as Ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.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-MTUBPx67.js";
|
|
12
12
|
import { _ as Me } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
13
13
|
const $e = ht("ingredientForm", function() {
|
|
14
14
|
const i = Ke(), m = Ve(), r = ae(), n = z(!1), { t: l } = re(), o = z();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as z, mergeModels as le, useModel as re, onMounted as ae, ref as P, computed as K, resolveComponent as L, openBlock as F, createElementBlock as B, createElementVNode as u, toDisplayString as I, createVNode as V, createBlock as U, withCtx as D, Fragment as E, renderList as G, normalizeClass as R, normalizeStyle as de, createSlots as ue, unref as w, createCommentVNode as O, withModifiers as ce, reactive as J, watch as Q, isRef as X, Teleport as fe } from "vue";
|
|
2
2
|
import { E as me } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { am as ee, an as pe, c as q, ao as ge, j as ve } from "./app-BDzV3RNp.js";
|
|
4
4
|
import { useDialogChild as ye, useDialog as te, useProxiedModel as ne, useSnackbar as be, useBreakpoints as he } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as T, useCoreStore as _e } from "@feedmepos/mf-common";
|
|
6
|
-
import { _ as Ce, a as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as Ce, a as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js";
|
|
7
7
|
const He = "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 Y(x, v) {
|
|
9
9
|
return ee.filter(x, v).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-BDzV3RNp.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-BDzV3RNp.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-wJLaWy-I.js → PurchaseOrderPrintPreview-BmzWBQYf.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, 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 {
|
|
3
|
+
import { af as y, i as C } from "./app-BDzV3RNp.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" }, T = { class: "sub-header" }, q = { 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,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as ce, ref as C, watch as Q, computed as k, resolveComponent as le, openBlock as b, createBlock as q, unref as e, withCtx as w, createElementVNode as u, normalizeClass as ue, createVNode as c, normalizeStyle as me, toDisplayString as de, createElementBlock as pe, createCommentVNode as fe, Teleport as ve, mergeProps as G } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { i as
|
|
4
|
-
import { u as xe } from "./purchase-order-transaction-type-
|
|
5
|
-
import { u as Re, _ as Ce, g as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { i as qe, e as we } from "./id-to-date-
|
|
2
|
+
import { $ as h, j as _e, p as W, a as X, H as ye, a0 as ge, b as De } from "./app-BDzV3RNp.js";
|
|
3
|
+
import { i as Z, u as be, _ as he, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js";
|
|
4
|
+
import { u as xe } from "./purchase-order-transaction-type-0nZnCUE7.js";
|
|
5
|
+
import { u as Re, _ as Ce, g as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CInXmMf_.js";
|
|
6
|
+
import { i as qe, e as we } from "./id-to-date-CJbxtIFh.js";
|
|
7
7
|
import { useSnackbar as Te, useBreakpoints as Fe } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as Me } from "./TransferDialog.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Me } from "./TransferDialog.vue_vue_type_script_setup_true_lang-CLiLhIMS.js";
|
|
9
9
|
import { _ as Oe, F as S } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
10
10
|
import { useI18n as $e } from "@feedmepos/mf-common";
|
|
11
|
-
const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" },
|
|
11
|
+
const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, He = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
14
|
-
},
|
|
14
|
+
}, Ne = { class: "pt-8" }, B = "ReceiveRequestViewSearchCriteria", Ze = /* @__PURE__ */ ce({
|
|
15
15
|
__name: "ReceiveRequestView",
|
|
16
|
-
setup(
|
|
16
|
+
setup(je) {
|
|
17
17
|
const { t: m } = $e(), I = Te();
|
|
18
18
|
h.object({
|
|
19
19
|
name: h.string().optional().nullable(),
|
|
@@ -24,7 +24,7 @@ const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-40
|
|
|
24
24
|
function ee() {
|
|
25
25
|
const o = {
|
|
26
26
|
name: "",
|
|
27
|
-
...
|
|
27
|
+
...Z()
|
|
28
28
|
}, r = T.getItem(B);
|
|
29
29
|
if (!r)
|
|
30
30
|
return o;
|
|
@@ -39,11 +39,11 @@ const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-40
|
|
|
39
39
|
}
|
|
40
40
|
const i = C(ee()), a = xe("receive/request", i.value), { columnDefs: te } = Re("receive/request", a), O = _e();
|
|
41
41
|
async function ae() {
|
|
42
|
-
const o = `inventory-record_${
|
|
42
|
+
const o = `inventory-record_${W(i.value.startDate).format("DD-MM-YYYY_HH-mm")}-${W(i.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, r = a.purchaseOrders.value.flatMap(
|
|
43
43
|
(n) => n.items.map((t) => {
|
|
44
|
-
const s = new Date(qe(n._id) ?? ""), p = n.effectiveAt ? new Date(n.effectiveAt) : void 0, f =
|
|
44
|
+
const s = new Date(qe(n._id) ?? ""), p = n.effectiveAt ? new Date(n.effectiveAt) : void 0, f = X(
|
|
45
45
|
ke(t.sku, n.deliveryOrder || [])
|
|
46
|
-
), v =
|
|
46
|
+
), v = X(t.quantity);
|
|
47
47
|
return {
|
|
48
48
|
"SKU code": t.code,
|
|
49
49
|
"SKU name": t.name,
|
|
@@ -84,7 +84,7 @@ const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-40
|
|
|
84
84
|
type: "success"
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
const x = C(
|
|
87
|
+
const x = C(Z()), d = C("");
|
|
88
88
|
Q([() => x.value], ([o]) => {
|
|
89
89
|
!o.startDate || !o.endDate || (i.value.startDate = o.startDate, i.value.endDate = o.endDate, a.updateDateRange(
|
|
90
90
|
i.value.startDate,
|
|
@@ -158,7 +158,7 @@ const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-40
|
|
|
158
158
|
onRowClick: e(a).promptShowTransferDetails
|
|
159
159
|
}, {
|
|
160
160
|
default: w((s) => {
|
|
161
|
-
var p, f, v, _, E, P, U, Y, y, N, j, A,
|
|
161
|
+
var p, f, v, _, E, P, U, Y, y, H, N, j, A, g, V, z, K, L, D, J;
|
|
162
162
|
return [
|
|
163
163
|
u("div", Ee, [
|
|
164
164
|
u("div", Pe, [
|
|
@@ -170,17 +170,17 @@ const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-40
|
|
|
170
170
|
u("div", Ue, [
|
|
171
171
|
c(e(S), {
|
|
172
172
|
render: (Y = (U = (P = s.supplier_name) == null ? void 0 : P.column) == null ? void 0 : U.columnDef) == null ? void 0 : Y.cell,
|
|
173
|
-
props: (
|
|
173
|
+
props: (H = (y = s.supplier_name) == null ? void 0 : y.getContext) == null ? void 0 : H.call(y)
|
|
174
174
|
}, null, 8, ["render", "props"])
|
|
175
175
|
]),
|
|
176
176
|
u("div", Ye, de(t.original.items.map((ie) => `${ie.name}`).join(", ")), 1),
|
|
177
|
-
t.original.ref ? (b(), pe("div",
|
|
177
|
+
t.original.ref ? (b(), pe("div", He, [
|
|
178
178
|
c(e(S), {
|
|
179
|
-
render: (
|
|
179
|
+
render: (A = (j = (N = s.ref) == null ? void 0 : N.column) == null ? void 0 : j.columnDef) == null ? void 0 : A.cell,
|
|
180
180
|
props: (V = (g = s.ref) == null ? void 0 : g.getContext) == null ? void 0 : V.call(g)
|
|
181
181
|
}, null, 8, ["render", "props"])
|
|
182
182
|
])) : fe("", !0),
|
|
183
|
-
u("div",
|
|
183
|
+
u("div", Ne, [
|
|
184
184
|
c(e(S), {
|
|
185
185
|
render: (L = (K = (z = s.status) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : L.cell,
|
|
186
186
|
props: (J = (D = s.status) == null ? void 0 : D.getContext) == null ? void 0 : J.call(D)
|
|
@@ -211,5 +211,5 @@ const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-40
|
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
export {
|
|
214
|
-
|
|
214
|
+
Ze as default
|
|
215
215
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as N, ref as x, onMounted as le, resolveComponent as F, openBlock as h, createElementBlock as $, Fragment as re, createElementVNode as b, toDisplayString as ie, createVNode as y, createCommentVNode as H, computed as V, watch as ce, createBlock as M, withCtx as I, unref as v, isRef as Z, normalizeClass as ue, normalizeStyle as de, Teleport as me, normalizeProps as pe, guardReactiveProps as fe } from "vue";
|
|
2
|
-
import { u as P, c as G, S as ve, a as q, R as ye, U as ge, _ as be, A as _e, e as ee, f as we, j as Re } from "./app-
|
|
2
|
+
import { u as P, c as G, S as ve, a as q, R as ye, U as ge, _ as be, A as _e, e as ee, f as we, j as Re } from "./app-BDzV3RNp.js";
|
|
3
3
|
import { useDialog as he, useSnackbar as ae, useProxiedModel as te, useBreakpoints as Ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as xe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as R, D as ne, R as z } from "./row-action.enum-PMKMRrZR.js";
|
|
6
|
-
import { _ as se, t as Fe, d as ke } from "./xlsx.util-
|
|
6
|
+
import { _ as se, t as Fe, d as ke } from "./xlsx.util-MTUBPx67.js";
|
|
7
7
|
import { defineStore as Ve, storeToRefs as Se } from "pinia";
|
|
8
8
|
import { c as De, _ as Ae, F as oe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
9
|
import { useI18n as Y } from "@feedmepos/mf-common";
|
|
10
|
-
import { u as $e, _ as Ie, a as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as $e, _ as Ie, a as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js";
|
|
11
11
|
const Te = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex flex-col items-center w-full h-full gap-24"
|