@feedmepos/mf-inventory-portal 1.2.25-dev.1 → 1.2.25-dev.2
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/{App-svECebjK.js → App-pG3igEbR.js} +1 -1
- package/dist/{ApprovalView-CMSf_J2n.js → ApprovalView-JoTq2Bdf.js} +2 -2
- package/dist/{BindingsDialog-DENEjolJ.js → BindingsDialog-D44lDz_m.js} +2 -2
- package/dist/{BindingsPicker-BYImJRaj.js → BindingsPicker-BwaLwmiz.js} +1 -1
- package/dist/{BindingsTable-BrGqgucq.js → BindingsTable-C5y3yr5d.js} +1 -1
- package/dist/{ClosingDraftView-uGF3mkBd.js → ClosingDraftView-BxBEDZ8r.js} +3 -3
- package/dist/ClosingHistoryView-DU0Dv4IW.js +363 -0
- package/dist/{ClosingTemplateView-BQmC4An_.js → ClosingTemplateView-tigOzz56.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CqfFyoTx.js → DeliveryOrderPrintPreview-BSxjnk3a.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CCTMmG94.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-eUMrmGD4.js} +3 -3
- package/dist/{FmMultiselectDialog-_MlkbNly.js → FmMultiselectDialog-s0EntbOX.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DmLhEVWi.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DQuvByaf.js} +1 -1
- package/dist/{ImportView-D-d9ATVE.js → ImportView-D6c6oNby.js} +2 -2
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CdX2Uvdb.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Ko8B7MYK.js} +1 -1
- package/dist/{IngredientGroupView-BcaX4ZRX.js → IngredientGroupView-oCZpkxZO.js} +2 -2
- package/dist/{IngredientsView-DxA8tI-v.js → IngredientsView-C8WzhNAH.js} +7 -7
- package/dist/{IntegrationView-BtzwigHc.js → IntegrationView-DD1QWlE3.js} +3 -3
- package/dist/{InventoryBindingForm-CIlQbCPQ.js → InventoryBindingForm-ChoO3SrA.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BH6zgB9N.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXe0VwF9.js} +3 -3
- package/dist/{InventoryBindingSummary-DCLkDnck.js → InventoryBindingSummary-BGmUNPfu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BdUVlwac.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DDXfvqWA.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CNn57Gsw.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BwW92Whg.js} +1 -1
- package/dist/{PublishView-Cg56zsdv.js → PublishView-CzS06kO-.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-ab3npDLz.js → PurchaseOrderPrintPreview-YCg4lu_a.js} +1 -1
- package/dist/{ReceiveRequestView-CZ9GoTB3.js → ReceiveRequestView-WjbYB-a0.js} +8 -8
- package/dist/{RecipeView-DODYvOxp.js → RecipeView-Cl4_vFBE.js} +3 -3
- package/dist/{StockView-P4B0_4cp.js → StockView-dyF-JQbP.js} +8 -8
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DDGU8k4Y.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-fQRg6q.js} +1 -1
- package/dist/{SupplierView-BBFEWOUO.js → SupplierView-BN_pPxS7.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CUw4_F1q.js → TransferDetails.vue_vue_type_script_setup_true_lang-DR9qQoBL.js} +5 -5
- package/dist/{TransferTemplateView-CZapMuRF.js → TransferTemplateView-CSA2wNJR.js} +7 -7
- package/dist/{UnitView-BBBwzqJ-.js → UnitView-C69iwndm.js} +3 -3
- package/dist/{WarehouseView-Blc2Yput.js → WarehouseView-BkSvBJg_.js} +1 -1
- package/dist/{app-_mYLQuxf.js → app-NmiyG_NE.js} +412 -403
- package/dist/app.d.ts +9 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-Cb5DEV38.js → decimal-B-SPLtwh.js} +1 -1
- package/dist/{format-unit-display-DH44zkQq.js → format-unit-display-jXD4D_J4.js} +3 -3
- package/dist/{import-export.helper-cLaJAcgW.js → import-export.helper-BOFJJxVC.js} +1 -1
- package/dist/{index-YHqLg0qR.js → index-BvtleP-f.js} +1 -1
- package/dist/{index-CCIRnIFI.js → index-DY1lwU0l.js} +1 -1
- package/dist/{purchase-order-template-Dt5KDXNO.js → purchase-order-template-BNtdgrTt.js} +1 -1
- package/dist/{stock-CV3z7I58.js → stock-Basa-Xi7.js} +2 -2
- package/dist/{stock-CrjsQRTg.js → stock-F2A8gqHx.js} +1 -1
- package/dist/{supplier-CbaxXdZ-.js → supplier-CBUmza-i.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CaEOT5eK.js → use-ingredient-select-dialog-ogRof947.js} +1 -1
- package/dist/{use-inventory-binding-dialog-C6OfhRBn.js → use-inventory-binding-dialog-D9P4uH3I.js} +1 -1
- package/package.json +2 -2
- package/dist/ClosingHistoryView-BKgZsXZU.js +0 -355
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, createElementVNode as v, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
|
|
2
|
-
import { u as K, a as $, b as j, R as e, c as V, m as _, g as r, d as k } from "./app-
|
|
2
|
+
import { u as K, a as $, b as j, R as e, c as V, m as _, g as r, d as k } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useCoreStore as U, useI18n as H } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as O, useRoute as z } from "vue-router";
|
|
5
5
|
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as W, unref as n, withCtx as k, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
|
|
2
|
-
import { u as De, b as ge, m as b, aZ as ye, am as X, G as be, N as Oe, H as Re, I as Se, J as xe, K as ke, L as O } from "./app-
|
|
3
|
-
import { u as qe, P as q, a as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as De, b as ge, m as b, aZ as ye, am as X, G as be, N as Oe, H as Re, I as Se, J as xe, K as ke, L as O } from "./app-NmiyG_NE.js";
|
|
3
|
+
import { u as qe, P as q, a as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DR9qQoBL.js";
|
|
4
4
|
import { useBreakpoints as Ne } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Te } from "@feedmepos/mf-common";
|
|
6
6
|
const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ve = {
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L, bc as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXe0VwF9.js";
|
|
3
|
+
import { a as L, bc as S } from "./app-NmiyG_NE.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
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 { a as x, bc as M, x as z } from "./app-
|
|
2
|
+
import { a as x, bc as M, x as z } from "./app-NmiyG_NE.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 x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P, bc as R } from "./app-
|
|
2
|
+
import { F as b, a as P, bc as R } from "./app-NmiyG_NE.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as He, ref as H, computed as V, onMounted as Ye, resolveComponent as U, openBlock as j, createElementBlock as L, Fragment as ee, createTextVNode as X, createBlock as se, withCtx as G, createElementVNode as r, toDisplayString as J, unref as F, createVNode as x, createCommentVNode as de, h as T, reactive as _t, watch as Dt, isRef as rt, normalizeClass as De, renderList as je, normalizeStyle as lt, Teleport as wt, mergeProps as St } from "vue";
|
|
2
|
-
import { aa as Ct, u as ze, ax as z, am as ct, ay as it, r as jt, Z as Qe, n as N, t as Bt, a0 as Be, W as Ft, Y as Tt, X as $t, az as ut, aA as dt, ah as mt, aB as pe, an as Mt, ac as Ke, ab as ve, a6 as Ue, D as st, j as Re, i as Rt, f as It, a as Pt, $ as Ie, a9 as Vt, G as Ut, I as Lt, J as Et, K as Ht, L as Pe } from "./app-
|
|
2
|
+
import { aa as Ct, u as ze, ax as z, am as ct, ay as it, r as jt, Z as Qe, n as N, t as Bt, a0 as Be, W as Ft, Y as Tt, X as $t, az as ut, aA as dt, ah as mt, aB as pe, an as Mt, ac as Ke, ab as ve, a6 as Ue, D as st, j as Re, i as Rt, f as It, a as Pt, $ as Ie, a9 as Vt, G as Ut, I as Lt, J as Et, K as Ht, L as Pe } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useCoreStore as zt, useI18n as ft } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ge, useDialog as Nt, useProxiedModel as Ot, components as Ve, useBreakpoints as Kt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as pt, storeToRefs as Yt } from "pinia";
|
|
6
|
-
import { u as vt } from "./stock-
|
|
7
|
-
import { u as We } from "./stock-
|
|
6
|
+
import { u as vt } from "./stock-Basa-Xi7.js";
|
|
7
|
+
import { u as We } from "./stock-F2A8gqHx.js";
|
|
8
8
|
import { E as Qt } from "./empty-placeholder-wf6-BWE8.js";
|
|
9
9
|
const Ne = Ct((o, l) => {
|
|
10
10
|
function e() {
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { defineComponent as H, ref as f, computed as k, resolveComponent as x, openBlock as u, createElementBlock as v, createVNode as y, withModifiers as te, withCtx as F, createElementVNode as c, toDisplayString as s, unref as n, Fragment as K, createTextVNode as M, createBlock as B, createCommentVNode as h, renderList as oe, normalizeClass as le, h as ae, onMounted as ne, Teleport as se } from "vue";
|
|
2
|
+
import { aD as j, ac as D, u as ce, h as ie, I as re, J as ue } from "./app-NmiyG_NE.js";
|
|
3
|
+
import { useI18n as z, useCoreStore as de } from "@feedmepos/mf-common";
|
|
4
|
+
import { useSnackbar as me } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as ve } from "./stock-F2A8gqHx.js";
|
|
6
|
+
const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col gap-16" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "flex flex-col gap-8" }, _e = { class: "fm-typo-en-body-md-600" }, be = { class: "flex flex-col gap-8" }, ke = { class: "fm-typo-en-body-md-600" }, he = { class: "flex items-center gap-8 mb-8" }, xe = {
|
|
7
|
+
key: 2,
|
|
8
|
+
class: "text-red-500 text-sm mt-2"
|
|
9
|
+
}, De = { class: "fm-typo-en-body-sm-400" }, Ve = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "flex flex-col gap-8"
|
|
12
|
+
}, Se = { class: "fm-typo-en-body-md-600" }, we = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ae = { class: "flex items-center justify-between" }, Ce = { class: "fm-typo-en-body-sm-600" }, Re = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Fe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Be = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
15
|
+
}, Le = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
18
|
+
}, Te = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "fm-typo-en-body-xs-400 text-fm-color-system-error-500"
|
|
21
|
+
}, $e = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "flex gap-8 ml-auto"
|
|
24
|
+
}, Ee = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "flex gap-8 ml-auto"
|
|
27
|
+
}, Ne = /* @__PURE__ */ H({
|
|
28
|
+
__name: "RecalculationDialog",
|
|
29
|
+
emits: ["submitted"],
|
|
30
|
+
setup(J, { expose: _, emit: T }) {
|
|
31
|
+
const w = T, { t: o } = z(), V = ve(), A = j(), C = me(), p = f(!1), i = f(""), r = f(""), m = f(!1), S = f([]), l = f(!1), d = f([]), b = f(!1), R = k(() => S.value.map((e) => {
|
|
32
|
+
const a = D(e._id), g = new Date(a);
|
|
33
|
+
return {
|
|
34
|
+
label: `${g.toLocaleDateString()} ${g.toLocaleTimeString()}`,
|
|
35
|
+
value: e._id
|
|
36
|
+
};
|
|
37
|
+
})), G = k(() => i.value ? R.value.filter((e) => e.value > i.value) : []), E = k({
|
|
38
|
+
get: () => {
|
|
39
|
+
if (m.value && r.value) {
|
|
40
|
+
const e = S.value.find((a) => D(a._id) === r.value);
|
|
41
|
+
return (e == null ? void 0 : e._id) || r.value;
|
|
42
|
+
}
|
|
43
|
+
return r.value;
|
|
44
|
+
},
|
|
45
|
+
set: (e) => {
|
|
46
|
+
m.value && e ? r.value = D(e) : r.value = e;
|
|
47
|
+
}
|
|
48
|
+
}), Q = k(() => {
|
|
49
|
+
if (i.value)
|
|
50
|
+
try {
|
|
51
|
+
const e = D(i.value);
|
|
52
|
+
if (e)
|
|
53
|
+
return e;
|
|
54
|
+
} catch (e) {
|
|
55
|
+
console.error("Error parsing date from closing ID:", e);
|
|
56
|
+
}
|
|
57
|
+
}), L = k(() => {
|
|
58
|
+
if (!i.value || !r.value) return "";
|
|
59
|
+
const e = D(i.value), a = r.value;
|
|
60
|
+
if (e && a) {
|
|
61
|
+
const g = new Date(e).getTime();
|
|
62
|
+
if (new Date(a).getTime() <= g)
|
|
63
|
+
return o("inventory.stock.recalculation.error.endDateBeforeOpening");
|
|
64
|
+
}
|
|
65
|
+
return "";
|
|
66
|
+
}), N = k(() => !!i.value && !!r.value && !L.value), U = k(() => d.value.some(
|
|
67
|
+
(e) => !e.completedAt && !e.failedReason
|
|
68
|
+
));
|
|
69
|
+
async function I() {
|
|
70
|
+
p.value = !0, await Promise.all([X(), P()]), i.value = "", r.value = "", m.value = !1;
|
|
71
|
+
}
|
|
72
|
+
function W() {
|
|
73
|
+
p.value = !1;
|
|
74
|
+
}
|
|
75
|
+
_({
|
|
76
|
+
open: I,
|
|
77
|
+
close: W
|
|
78
|
+
});
|
|
79
|
+
async function X() {
|
|
80
|
+
l.value = !0;
|
|
81
|
+
try {
|
|
82
|
+
const e = await A.getLastNClosings(10);
|
|
83
|
+
S.value = e;
|
|
84
|
+
} catch (e) {
|
|
85
|
+
console.error("Error fetching recent closings:", e), C.open({
|
|
86
|
+
title: o("common.error"),
|
|
87
|
+
message: "Failed to fetch recent closings",
|
|
88
|
+
type: "error"
|
|
89
|
+
});
|
|
90
|
+
} finally {
|
|
91
|
+
l.value = !1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
async function P() {
|
|
95
|
+
b.value = !0;
|
|
96
|
+
try {
|
|
97
|
+
const e = await V.recalculation.recalculationRequests();
|
|
98
|
+
d.value = e;
|
|
99
|
+
} catch (e) {
|
|
100
|
+
console.error("Error fetching recalculation requests:", e);
|
|
101
|
+
} finally {
|
|
102
|
+
b.value = !1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async function Y() {
|
|
106
|
+
if (N.value) {
|
|
107
|
+
l.value = !0;
|
|
108
|
+
try {
|
|
109
|
+
await V.recalculation.scheduleRecalculation(i.value, r.value), C.open({
|
|
110
|
+
title: o("common.success"),
|
|
111
|
+
message: "Stock recalculation has been scheduled successfully",
|
|
112
|
+
type: "success"
|
|
113
|
+
}), await P(), p.value = !1, w("submitted");
|
|
114
|
+
} catch (e) {
|
|
115
|
+
console.error("Error scheduling recalculation:", e), C.open({
|
|
116
|
+
title: o("common.error"),
|
|
117
|
+
message: "Failed to schedule stock recalculation",
|
|
118
|
+
type: "error"
|
|
119
|
+
});
|
|
120
|
+
} finally {
|
|
121
|
+
l.value = !1;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return (e, a) => {
|
|
126
|
+
const g = x("FmButton"), $ = x("FmSelect"), O = x("FmRadio"), Z = x("FmDatePicker"), q = x("FmAlert"), ee = x("FmDialog");
|
|
127
|
+
return u(), v("div", null, [
|
|
128
|
+
y(g, {
|
|
129
|
+
"prepend-icon": "info",
|
|
130
|
+
variant: "tertiary",
|
|
131
|
+
onClick: te(I, ["stop"])
|
|
132
|
+
}),
|
|
133
|
+
y(ee, {
|
|
134
|
+
modelValue: p.value,
|
|
135
|
+
"onUpdate:modelValue": a[7] || (a[7] = (t) => p.value = t),
|
|
136
|
+
"close-button": "",
|
|
137
|
+
dismissAway: "",
|
|
138
|
+
"max-width": "600px"
|
|
139
|
+
}, {
|
|
140
|
+
"dialog-header": F(() => [
|
|
141
|
+
c("div", fe, s(n(o)("inventory.stock.recalculation.title")), 1)
|
|
142
|
+
]),
|
|
143
|
+
"dialog-footer": F(() => [
|
|
144
|
+
U.value ? (u(), v("div", Ee, [
|
|
145
|
+
y(g, {
|
|
146
|
+
variant: "tertiary",
|
|
147
|
+
onClick: a[6] || (a[6] = (t) => p.value = !1),
|
|
148
|
+
label: n(o)("common.close")
|
|
149
|
+
}, null, 8, ["label"])
|
|
150
|
+
])) : (u(), v("div", $e, [
|
|
151
|
+
y(g, {
|
|
152
|
+
variant: "tertiary",
|
|
153
|
+
onClick: a[5] || (a[5] = (t) => p.value = !1),
|
|
154
|
+
disabled: l.value,
|
|
155
|
+
label: n(o)("common.cancel")
|
|
156
|
+
}, null, 8, ["disabled", "label"]),
|
|
157
|
+
y(g, {
|
|
158
|
+
variant: "primary",
|
|
159
|
+
onClick: Y,
|
|
160
|
+
disabled: !N.value || l.value,
|
|
161
|
+
loading: l.value,
|
|
162
|
+
label: n(o)("inventory.stock.recalculation.schedule")
|
|
163
|
+
}, null, 8, ["disabled", "loading", "label"])
|
|
164
|
+
]))
|
|
165
|
+
]),
|
|
166
|
+
default: F(() => [
|
|
167
|
+
c("div", ye, [
|
|
168
|
+
c("div", pe, s(n(o)("inventory.stock.recalculation.description")), 1),
|
|
169
|
+
U.value ? h("", !0) : (u(), v(K, { key: 0 }, [
|
|
170
|
+
c("div", ge, [
|
|
171
|
+
c("p", _e, [
|
|
172
|
+
M(s(n(o)("inventory.stock.recalculation.openingDate")) + " ", 1),
|
|
173
|
+
a[8] || (a[8] = c("span", { class: "text-fm-color-system-error-300" }, "*", -1))
|
|
174
|
+
]),
|
|
175
|
+
y($, {
|
|
176
|
+
modelValue: i.value,
|
|
177
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => i.value = t),
|
|
178
|
+
items: R.value,
|
|
179
|
+
placeholder: n(o)("inventory.stock.recalculation.selectOpening"),
|
|
180
|
+
loading: l.value,
|
|
181
|
+
disabled: l.value
|
|
182
|
+
}, null, 8, ["modelValue", "items", "placeholder", "loading", "disabled"])
|
|
183
|
+
]),
|
|
184
|
+
c("div", be, [
|
|
185
|
+
c("p", ke, [
|
|
186
|
+
M(s(n(o)("inventory.stock.recalculation.untilDate")) + " ", 1),
|
|
187
|
+
a[9] || (a[9] = c("span", { class: "text-fm-color-system-error-300" }, "*", -1))
|
|
188
|
+
]),
|
|
189
|
+
c("div", he, [
|
|
190
|
+
y(O, {
|
|
191
|
+
modelValue: m.value,
|
|
192
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => m.value = t),
|
|
193
|
+
value: !1,
|
|
194
|
+
label: n(o)("inventory.stock.recalculation.selectByDate")
|
|
195
|
+
}, null, 8, ["modelValue", "label"]),
|
|
196
|
+
y(O, {
|
|
197
|
+
modelValue: m.value,
|
|
198
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => m.value = t),
|
|
199
|
+
value: !0,
|
|
200
|
+
label: n(o)("inventory.stock.recalculation.selectByClosing")
|
|
201
|
+
}, null, 8, ["modelValue", "label"])
|
|
202
|
+
]),
|
|
203
|
+
m.value ? (u(), B($, {
|
|
204
|
+
key: 1,
|
|
205
|
+
modelValue: E.value,
|
|
206
|
+
"onUpdate:modelValue": a[4] || (a[4] = (t) => E.value = t),
|
|
207
|
+
items: G.value,
|
|
208
|
+
placeholder: n(o)("inventory.stock.recalculation.selectClosing"),
|
|
209
|
+
loading: l.value,
|
|
210
|
+
disabled: !i.value || l.value
|
|
211
|
+
}, null, 8, ["modelValue", "items", "placeholder", "loading", "disabled"])) : (u(), B(Z, {
|
|
212
|
+
key: 0,
|
|
213
|
+
modelValue: r.value,
|
|
214
|
+
"onUpdate:modelValue": a[3] || (a[3] = (t) => r.value = t),
|
|
215
|
+
placeholder: n(o)("inventory.stock.recalculation.selectDate"),
|
|
216
|
+
min: Q.value,
|
|
217
|
+
disabled: !i.value || l.value
|
|
218
|
+
}, null, 8, ["modelValue", "placeholder", "min", "disabled"])),
|
|
219
|
+
L.value ? (u(), v("div", xe, s(L.value), 1)) : h("", !0)
|
|
220
|
+
]),
|
|
221
|
+
i.value && r.value && !L.value ? (u(), B(q, {
|
|
222
|
+
key: 0,
|
|
223
|
+
type: "info"
|
|
224
|
+
}, {
|
|
225
|
+
default: F(() => [
|
|
226
|
+
c("div", De, s(n(o)("inventory.stock.recalculation.info")), 1)
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
})) : h("", !0)
|
|
230
|
+
], 64)),
|
|
231
|
+
d.value.length > 0 ? (u(), v("div", Ve, [
|
|
232
|
+
c("p", Se, s(n(o)("inventory.stock.recalculation.recentRequests")), 1),
|
|
233
|
+
c("div", we, [
|
|
234
|
+
(u(!0), v(K, null, oe(d.value, (t) => (u(), v("div", {
|
|
235
|
+
key: t._id,
|
|
236
|
+
class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
|
|
237
|
+
}, [
|
|
238
|
+
c("div", Ae, [
|
|
239
|
+
c("div", Ce, s(n(o)("inventory.stock.recalculation.requestedAt")) + ": " + s(new Date(t.createdAt).toLocaleString()), 1),
|
|
240
|
+
c("div", {
|
|
241
|
+
class: le(["fm-typo-en-body-xs-600 px-8 py-4 rounded-4", {
|
|
242
|
+
"bg-fm-color-system-error-100 text-fm-color-system-error-500": t.failedReason,
|
|
243
|
+
"bg-fm-color-system-success-100 text-fm-color-system-success-500": t.completedAt,
|
|
244
|
+
"bg-fm-color-system-info-100 text-fm-color-system-info-500": !t.failedReason && !t.completedAt
|
|
245
|
+
}])
|
|
246
|
+
}, s(t.failedReason ? n(o)("inventory.stock.recalculation.status.failed") : t.completedAt ? n(o)("inventory.stock.recalculation.status.completed") : n(o)("inventory.stock.recalculation.status.inProgress")), 3)
|
|
247
|
+
]),
|
|
248
|
+
c("div", Re, s(n(o)("inventory.stock.recalculation.from")) + ": " + s(new Date(t.recalculateStartDate).toLocaleDateString()), 1),
|
|
249
|
+
c("div", Fe, s(n(o)("inventory.stock.recalculation.to")) + ": " + s(new Date(t.recalculateEndDate).toLocaleDateString()), 1),
|
|
250
|
+
t.createdBy ? (u(), v("div", Be, s(n(o)("inventory.stock.recalculation.requestedBy")) + ": " + s(t.createdBy.name || t.createdBy.id), 1)) : h("", !0),
|
|
251
|
+
t.completedAt ? (u(), v("div", Le, s(n(o)("inventory.stock.recalculation.completedAt")) + ": " + s(new Date(t.completedAt).toLocaleString()), 1)) : h("", !0),
|
|
252
|
+
t.failedReason ? (u(), v("div", Te, s(t.failedReason), 1)) : h("", !0)
|
|
253
|
+
]))), 128))
|
|
254
|
+
])
|
|
255
|
+
])) : h("", !0)
|
|
256
|
+
])
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}, 8, ["modelValue"])
|
|
260
|
+
]);
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
}), Ue = { class: "flex flex-col gap-16 p-16" }, He = /* @__PURE__ */ H({
|
|
264
|
+
__name: "ClosingHistoryView",
|
|
265
|
+
setup(J) {
|
|
266
|
+
var S;
|
|
267
|
+
const { t: _ } = z(), T = j(), w = ce(), o = de(), V = f([]), A = f(!1), C = k(() => [
|
|
268
|
+
{
|
|
269
|
+
label: _("inventory.stock.recalculation.title", "Stock Recalculation"),
|
|
270
|
+
value: "recalculation",
|
|
271
|
+
prependIcon: "history",
|
|
272
|
+
isAdminOnly: !0
|
|
273
|
+
}
|
|
274
|
+
]), p = f();
|
|
275
|
+
function i(l) {
|
|
276
|
+
var d;
|
|
277
|
+
switch (l) {
|
|
278
|
+
case "recalculation":
|
|
279
|
+
return (d = p.value) == null ? void 0 : d.open();
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
const r = [
|
|
283
|
+
...(S = o.sessionUser.value) != null && S.role.isAdmin ? [
|
|
284
|
+
{
|
|
285
|
+
accessorKey: "_id",
|
|
286
|
+
header: () => ae(ie, {}, () => `${_("inventory.closing.history.closingId")}`),
|
|
287
|
+
cell: (l) => l.getValue()
|
|
288
|
+
}
|
|
289
|
+
] : [],
|
|
290
|
+
{
|
|
291
|
+
accessorKey: "_id",
|
|
292
|
+
id: "date",
|
|
293
|
+
header: () => _("inventory.closing.history.date"),
|
|
294
|
+
cell: (l) => {
|
|
295
|
+
const d = l.getValue(), b = D(d);
|
|
296
|
+
return new Date(b).toLocaleDateString();
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
accessorKey: "_id",
|
|
301
|
+
id: "time",
|
|
302
|
+
header: () => _("inventory.closing.history.time"),
|
|
303
|
+
cell: (l) => {
|
|
304
|
+
const d = l.getValue(), b = D(d);
|
|
305
|
+
return new Date(b).toLocaleTimeString();
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
accessorKey: "ref",
|
|
310
|
+
header: () => _("inventory.closing.history.createdFrom"),
|
|
311
|
+
cell: (l) => l.getValue() || "-"
|
|
312
|
+
}
|
|
313
|
+
];
|
|
314
|
+
async function m() {
|
|
315
|
+
if (w.currentLocationDBName) {
|
|
316
|
+
A.value = !0;
|
|
317
|
+
try {
|
|
318
|
+
const l = await T.getLastNClosings(10);
|
|
319
|
+
V.value = l;
|
|
320
|
+
} catch (l) {
|
|
321
|
+
console.error("Error fetching closings:", l), V.value = [];
|
|
322
|
+
} finally {
|
|
323
|
+
A.value = !1;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return ne(async () => {
|
|
328
|
+
w.currentLocationDBName && await m();
|
|
329
|
+
}), w.watchLocation(m), (l, d) => {
|
|
330
|
+
const b = x("FmTable");
|
|
331
|
+
return u(), B(re, {
|
|
332
|
+
actions: C.value,
|
|
333
|
+
title: n(_)("inventory.closing.history.title"),
|
|
334
|
+
"onClick:action": i
|
|
335
|
+
}, {
|
|
336
|
+
default: F(() => [
|
|
337
|
+
c("div", Ue, [
|
|
338
|
+
y(ue, {
|
|
339
|
+
"change-location": "",
|
|
340
|
+
"hide-filter-options": !0
|
|
341
|
+
}),
|
|
342
|
+
y(b, {
|
|
343
|
+
loading: A.value,
|
|
344
|
+
"row-data": V.value,
|
|
345
|
+
"column-defs": r
|
|
346
|
+
}, null, 8, ["loading", "row-data"])
|
|
347
|
+
]),
|
|
348
|
+
(u(), B(se, { to: "body" }, [
|
|
349
|
+
y(Ne, {
|
|
350
|
+
ref_key: "recalculationDialogRef",
|
|
351
|
+
ref: p,
|
|
352
|
+
onSubmitted: d[0] || (d[0] = (R) => m())
|
|
353
|
+
}, null, 512)
|
|
354
|
+
]))
|
|
355
|
+
]),
|
|
356
|
+
_: 1
|
|
357
|
+
}, 8, ["actions", "title"]);
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
export {
|
|
362
|
+
He as default
|
|
363
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as F, h as R, defineComponent as Y, resolveComponent as P, openBlock as $, createElementBlock as M, createElementVNode as y, normalizeClass as q, createTextVNode as le, toDisplayString as S, unref as d, createCommentVNode as z, createVNode as C, withCtx as A, Fragment as j, renderList as W, computed as V, watch as Ae, createSlots as Ee, createBlock as U, isRef as Ye, normalizeStyle as Ke, Teleport as Ge, normalizeProps as qe, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
-
import { u as de, l as ie, an as Xe, D as ne, j as L, i as Qe, f as Ve, ao as Ze, ap as ae, Y as Ue, aq as pe, X as fe, a as ve, b as et, ar as tt, as as Le, C as nt, E as ot, at as st, e as O, L as G, Q as lt, au as at, r as rt, K as Ne, A as it, ab as se, av as ct, aw as mt, G as ut, I as dt, J as pt } from "./app-
|
|
2
|
+
import { u as de, l as ie, an as Xe, D as ne, j as L, i as Qe, f as Ve, ao as Ze, ap as ae, Y as Ue, aq as pe, X as fe, a as ve, b as et, ar as tt, as as Le, C as nt, E as ot, at as st, e as O, L as G, Q as lt, au as at, r as rt, K as Ne, A as it, ab as se, av as ct, aw as mt, G as ut, I as dt, J as pt } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useI18n as K, useCoreStore as ge } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as ce, useDialogChild as ft, useSnackbar as me, FmButtonVariant as oe, components as H, useProxiedModel as vt, useBreakpoints as gt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Be, storeToRefs as ze } from "pinia";
|
|
6
|
-
import { u as yt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as yt } from "./use-ingredient-select-dialog-ogRof947.js";
|
|
7
7
|
const ue = Be(
|
|
8
8
|
"closingTemplateTable",
|
|
9
9
|
function() {
|
package/dist/{DeliveryOrderPrintPreview-CqfFyoTx.js → DeliveryOrderPrintPreview-BSxjnk3a.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { aL as y, aw as w } from "./app-
|
|
3
|
+
import { aL as y, aw as w } from "./app-NmiyG_NE.js";
|
|
4
4
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "subtitle"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as C, t as E, aI as M, u as R, aN as B, aX as D, p as H, aY as U } from "./app-
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { P as T } from "./format-unit-display-
|
|
1
|
+
import { n as C, t as E, aI as M, u as R, aN as B, aX as D, p as H, aY as U } from "./app-NmiyG_NE.js";
|
|
2
|
+
import { u as z } from "./supplier-CBUmza-i.js";
|
|
3
|
+
import { P as T } from "./format-unit-display-jXD4D_J4.js";
|
|
4
4
|
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as L, createElementBlock as O, normalizeStyle as $, createElementVNode as I, createVNode as X, withCtx as Y, createBlock as V, createCommentVNode as N, Fragment as J, renderList as K, unref as g } from "vue";
|
|
5
5
|
function Q(e, a, r) {
|
|
6
6
|
var o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import { x as a } from "./app-
|
|
4
|
+
import { x as a } from "./app-NmiyG_NE.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as W, useModel as ae, computed as v, ref as B, watch as E, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as $, toDisplayString as A, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
|
|
2
|
-
import { $ as D, P as R, z as j, a0 as fe, n as M, aW as ve, t as be, bf as ye, Z as he, aA as Me, aU as ge, aT as xe } from "./app-
|
|
2
|
+
import { $ as D, P as R, z as j, a0 as fe, n as M, aW as ve, t as be, bf as ye, Z as he, aA as Me, aU as ge, aT as xe } from "./app-NmiyG_NE.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
function H() {
|
|
5
5
|
return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as De, ref as F, computed as J, watch as ze, resolveComponent as Y, openBlock as N, createElementBlock as D, createVNode as A, normalizeClass as ce, unref as i, createSlots as Ke, withCtx as Q, createElementVNode as n, createBlock as se, toDisplayString as a, createCommentVNode as Z, Fragment as Be, renderList as Pe, shallowRef as $e, h as Ie, createTextVNode as k } from "vue";
|
|
2
|
-
import { a as ie, as as je, a0 as Fe, aq as Ve, X as We, n as pe, ap as Re, C as Le, E as Je, G as Xe, I as ke, c as qe } from "./app-
|
|
2
|
+
import { a as ie, as as je, a0 as Fe, aq as Ve, X as We, n as pe, ap as Re, C as Le, E as Je, G as Xe, I as ke, c as qe } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useCoreStore as Ce, useI18n as Oe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as Qe, useSnackbar as He, useDialog as Ye, useBreakpoints as Ze } from "@feedmepos/ui-library";
|
|
5
|
-
import { s as et, g as tt, b as nt, d as Ae } from "./import-export.helper-
|
|
5
|
+
import { s as et, g as tt, b as nt, d as Ae } from "./import-export.helper-BOFJJxVC.js";
|
|
6
6
|
import { r as ot } from "./random-CSbEbElR.js";
|
|
7
7
|
function Ee() {
|
|
8
8
|
return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${ot()}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as n, createElementBlock as s, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { n as a, Z as y } from "./app-
|
|
2
|
+
import { n as a, Z as y } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
|
|
2
|
-
import { a as P, e as S, f as L, i as Re, D as oe, j as K, P as Ie, A as Se, U as Ge, Q as ue, T as Fe, N as Ve, r as de, V as Ce, y as ae, u as De, G as Ae, I as $e, J as Te, K as Ee, L as le } from "./app-
|
|
2
|
+
import { a as P, e as S, f as L, i as Re, D as oe, j as K, P as Ie, A as Se, U as Ge, Q as ue, T as Fe, N as Ve, r as de, V as Ce, y as ae, u as De, G as Ae, I as $e, J as Te, K as Ee, L as le } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useDialog as Me, useSnackbar as J, components as U, useProxiedModel as Ue, useBreakpoints as Be } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as z, useCoreStore as Le } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ce, storeToRefs as ie } from "pinia";
|
|
6
|
-
import { u as Pe } from "./FmMultiselectDialog-
|
|
6
|
+
import { u as Pe } from "./FmMultiselectDialog-s0EntbOX.js";
|
|
7
7
|
import { r as me } from "./random-CSbEbElR.js";
|
|
8
8
|
import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
|
|
9
9
|
const H = ce(
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ref as B, defineComponent as pe, computed as g, resolveComponent as F, openBlock as u, createElementBlock as w, Fragment as X, unref as o, createVNode as a, withModifiers as Bt, createCommentVNode as L, withCtx as y, createElementVNode as l, toDisplayString as A, normalizeClass as te, renderList as ue, createBlock as D, h as Q, renderSlot as xe, createSlots as Ye, createTextVNode as Ge, mergeModels as it, onMounted as Ot, watch as kt, useModel as Dt, isRef as dt, normalizeStyle as Nt, Teleport as ut, normalizeProps as zt, guardReactiveProps as Lt } from "vue";
|
|
2
|
-
import { a as Ce, e as H, f as Tt, S as jt, b as Fe, h as He, i as Wt, D as ct, j as Me, A as Pe, k as wt, l as Vt, n as Ht, o as mt, t as qt, p as Yt, q as pt, r as De, U as Gt, s as Kt, M as Jt, v as vt, w as ft, c as It, x as Ne, _ as Zt, y as yt, z as Qt, B as gt, C as Xt, E as en, N as tn, H as nn, u as ln, G as on, I as an, J as sn, K as rn, L as bt, O as dn } from "./app-
|
|
2
|
+
import { a as Ce, e as H, f as Tt, S as jt, b as Fe, h as He, i as Wt, D as ct, j as Me, A as Pe, k as wt, l as Vt, n as Ht, o as mt, t as qt, p as Yt, q as pt, r as De, U as Gt, s as Kt, M as Jt, v as vt, w as ft, c as It, x as Ne, _ as Zt, y as yt, z as Qt, B as gt, C as Xt, E as en, N as tn, H as nn, u as ln, G as on, I as an, J as sn, K as rn, L as bt, O as dn } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useDialog as Re, useSnackbar as Ae, components as ze, useProxiedModel as ht, useDialogChild as un, useBreakpoints as cn } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as mn, _ as pn } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { useI18n as ve, useCoreStore as St } from "@feedmepos/mf-common";
|
|
6
6
|
import { defineStore as vn, storeToRefs as fn } from "pinia";
|
|
7
|
-
import { g as yn, _ as Le, S as je, a as gn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as bn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as We } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { g as yn, _ as Le, S as je, a as gn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-fQRg6q.js";
|
|
8
|
+
import { _ as bn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXe0VwF9.js";
|
|
9
|
+
import { _ as We } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-Ko8B7MYK.js";
|
|
10
10
|
import { _ as he } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
11
|
-
import { d as Ue, g as hn, e as _n, a as xn } from "./import-export.helper-
|
|
11
|
+
import { d as Ue, g as hn, e as _n, a as xn } from "./import-export.helper-BOFJJxVC.js";
|
|
12
12
|
import { _ as kn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
13
|
-
import { u as Ct } from "./purchase-order-template-
|
|
14
|
-
import { u as Tn } from "./FmMultiselectDialog-
|
|
13
|
+
import { u as Ct } from "./purchase-order-template-BNtdgrTt.js";
|
|
14
|
+
import { u as Tn } from "./FmMultiselectDialog-s0EntbOX.js";
|
|
15
15
|
const qe = vn("ingredientForm", function() {
|
|
16
16
|
const s = Re(), T = Ae(), r = Ce(), b = B(!1), { t: S } = ve(), U = B();
|
|
17
17
|
function k() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Y, mergeModels as Te, useModel as we, onMounted as ve, ref as R, computed as T, resolveComponent as B, openBlock as I, createElementBlock as L, createElementVNode as s, toDisplayString as O, unref as S, createVNode as b, createBlock as H, withCtx as N, Fragment as Q, renderList as W, normalizeClass as K, normalizeStyle as je, createSlots as te, createCommentVNode as z, withModifiers as ze, reactive as ge, watch as ye, isRef as le, Teleport as de, h as M, createTextVNode as q, watchEffect as He } from "vue";
|
|
2
2
|
import { E as Ue } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { b8 as Xe, aY as Ye, f as ne, u as $, b9 as Qe, ba as Je, r as Ke, b as re, aM as me, n as Pe, b3 as fe, ab as Ae, ac as be, a as he, x as qe, h as ke, $ as G, a5 as Be, bb as Ce, aR as Ee, aD as Fe, Y as Le, C as Ve, a6 as ce, c as Ne, I as Ze, J as Ge } from "./app-
|
|
3
|
+
import { b8 as Xe, aY as Ye, f as ne, u as $, b9 as Qe, ba as Je, r as Ke, b as re, aM as me, n as Pe, b3 as fe, ab as Ae, ac as be, a as he, x as qe, h as ke, $ as G, a5 as Be, bb as Ce, aR as Ee, aD as Fe, Y as Le, C as Ve, a6 as ce, c as Ne, I as Ze, J as Ge } from "./app-NmiyG_NE.js";
|
|
4
4
|
import { useDialogChild as We, useDialog as ue, useProxiedModel as ie, useSnackbar as ee, useBreakpoints as De, components as oe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Z, useCoreStore as se } from "@feedmepos/mf-common";
|
|
6
|
-
import { a as $e, b as et, c as tt, u as nt } from "./index-
|
|
7
|
-
import { _ as ot, F as st } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { a as $e, b as et, c as tt, u as nt } from "./index-DY1lwU0l.js";
|
|
7
|
+
import { _ as ot, F as st } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DQuvByaf.js";
|
|
8
8
|
const at = "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";
|
|
9
9
|
var Me = { exports: {} };
|
|
10
10
|
(function(C, A) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as y, withCtx as U, createElementVNode as n, toDisplayString as m, unref as i, createBlock as B, createCommentVNode as v, Fragment as E, renderList as C, nextTick as oe } from "vue";
|
|
2
|
-
import { a as te, a3 as le, bd as ie, n as h, be as T, a1 as G, a0 as se, F as de } from "./app-
|
|
3
|
-
import { u as re } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as te, a3 as le, bd as ie, n as h, be as T, a1 as G, a0 as se, F as de } from "./app-NmiyG_NE.js";
|
|
3
|
+
import { u as re } from "./use-inventory-binding-dialog-D9P4uH3I.js";
|
|
4
|
+
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DQuvByaf.js";
|
|
5
5
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
6
6
|
const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-16" }, fe = { class: "flex items-center" }, ve = { class: "flex-1 fm-typo-en-title-sm-600" }, be = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, _e = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, he = {
|
|
7
7
|
class: "flex items-center",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-NmiyG_NE.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import { a0 as s } from "./app-
|
|
2
|
+
import { a0 as s } from "./app-NmiyG_NE.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aR as u, aS as _, aa as h, u as F } from "./app-
|
|
1
|
+
import { aR as u, aS as _, aa as h, u as F } from "./app-NmiyG_NE.js";
|
|
2
2
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as O } from "vue";
|
|
4
4
|
function w(e, t) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as D, computed as c, watch as X, resolveComponent as l, openBlock as W, createBlock as z, unref as h, createSlots as Z, withCtx as u, createElementVNode as f, normalizeClass as ee, createVNode as a, normalizeStyle as te, Teleport as oe, h as g } from "vue";
|
|
2
|
-
import { aM as ne, u as ae, a as se, b7 as le, G as ie, I as re, ab as B } from "./app-
|
|
2
|
+
import { aM as ne, u as ae, a as se, b7 as le, G as ie, I as re, ab as B } from "./app-NmiyG_NE.js";
|
|
3
3
|
import { useBreakpoints as ce, useDialog as ue, useSnackbar as me, components as H } from "@feedmepos/ui-library";
|
|
4
4
|
const pe = { class: "flex flex-col py-8" }, de = { 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" }, ge = /* @__PURE__ */ Q({
|
|
5
5
|
__name: "PublishView",
|