@feedmepos/mf-inventory-portal 0.0.23-dev.19 → 0.0.23-dev.20
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-DY01VbHo.js → App-N2myASr3.js} +44 -41
- package/dist/{ApprovalView-DtwXb5T7.js → ApprovalView-B87DpnNq.js} +20 -23
- package/dist/{BindingsDialog-ClnnwUTV.js → BindingsDialog-DehCgt1T.js} +7 -7
- package/dist/{BindingsPicker-DbdkXiHx.js → BindingsPicker-BBtJ3rBB.js} +7 -8
- package/dist/{BindingsTable-Cqh3Ku0d.js → BindingsTable-CfHuy-K1.js} +16 -20
- package/dist/{ClosingDraftView-CzuMTeC1.js → ClosingDraftView-BYZ1mZrG.js} +190 -196
- package/dist/{ClosingTemplateView-CVQlOya4.js → ClosingTemplateView-CAL9jYaf.js} +49 -60
- package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-CC7RiBoR.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BO1wCa9i.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4G9LaXv.js} +24 -25
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-sgvBxxkn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBf7jmJz.js} +56 -57
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7uvrzFU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DjTvrLPs.js} +7 -7
- package/dist/{IngredientGroupView-DgDZnggI.js → IngredientGroupView-X0ST4tW9.js} +30 -37
- package/dist/{IngredientsView-SuCckJrj.js → IngredientsView-BUJXzpVr.js} +106 -112
- package/dist/{IntegrationView-CZQoHCkX.js → IntegrationView-QbuIwjec.js} +63 -65
- package/dist/{InventoryBindingForm-C-E3EINv.js → InventoryBindingForm-C1BR_h_3.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3nsmCuj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js} +18 -20
- package/dist/{InventoryBindingSummary-DNiOKfO8.js → InventoryBindingSummary-gn3Gq1ok.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdYa8Pv2.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GY3FFm5_.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BwxgZ-vM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DVwtuUg9.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-C6i2S9L-.js → PurchaseOrderPrintPreview-FuOYaO56.js} +13 -14
- package/dist/{ReceiveRequestView-BABjGvIn.js → ReceiveRequestView-BNz1brve.js} +66 -75
- package/dist/{RecipeView-CoMcIuHu.js → RecipeView-DRKTODfC.js} +58 -64
- package/dist/{StockView-DhJshtaj.js → StockView-DnMcfkGG.js} +80 -87
- package/dist/{SupplierView-hQtDIQzE.js → SupplierView-DAnnWZUN.js} +45 -52
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DsJUSZsm.js → TransferDetails.vue_vue_type_script_setup_true_lang-BBARPa0S.js} +103 -110
- package/dist/{TransferTemplateView-GzwT4hp-.js → TransferTemplateView-2qlKwwKg.js} +217 -227
- package/dist/{UnitView-CRMF6RWu.js → UnitView-u5wZGetF.js} +103 -108
- package/dist/{WarehouseView-AVEDff0v.js → WarehouseView-Z80N7FJV.js} +77 -84
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/app-Fc2FPGhO.js +58871 -0
- package/dist/app.d.ts +51 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-N5ymnwhP.js → decimal-BDD-e5Lb.js} +1 -1
- package/dist/{feature-Bfq8yWgS.js → feature-BMEyYowI.js} +1 -1
- package/dist/{format-unit-display-CXawcmvj.js → format-unit-display-DvlR_z--.js} +205 -212
- package/dist/{index-CcCqc9jx.js → index-CR22QBdu.js} +1 -1
- package/dist/{netsuite-DX6L1oLu.js → netsuite-CqMWgzKo.js} +9 -9
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-Btlxmf8R.js → stock-sIy40ix1.js} +7 -8
- package/dist/style.css +1 -1
- package/dist/supplier-Cf24JqTH.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BFqxWNzX.js → use-inventory-binding-dialog-Br9Uv9o8.js} +10 -11
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/{xlsx-C3L2eW52.js → xlsx-sL0sD2HQ.js} +1 -1
- package/dist/{xlsx.util-CJKLCuWK.js → xlsx.util-D2Tdwf8J.js} +1 -1
- package/package.json +3 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js +0 -436
- package/dist/FmMultiselectDialog-Jr9uL_z_.js +0 -415
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-ww5ibHkL.js +0 -33540
- package/dist/date2-D5MTVjlP.js +0 -117
- package/dist/dayjs.min-7pwGJ2aW.js +0 -282
- package/dist/defineDeepModel-DJODEpcR.js +0 -13
- package/dist/form-mode.enum-BKiNVH6A.js +0 -4
- package/dist/format-time-from-id-0UkRUr39.js +0 -15
- package/dist/fuzzy-DdOiOd-q.js +0 -41
- package/dist/index-Cin_fxtb.js +0 -45
- package/dist/index-gvJJ-xRY.js +0 -22283
- package/dist/row-action.enum-7rGLGZ5v.js +0 -55
- package/dist/rules-C83wiSGb.js +0 -203
- package/dist/supplier-CSzla-9I.js +0 -77
- package/dist/use-template-enabled-locations-2-CUkqC-cd.js +0 -86
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useCoreStore as A, useI18n as
|
|
4
|
-
import { useRouter as C, useRoute as
|
|
5
|
-
import { u as O } from "./feature-
|
|
6
|
-
import { u as $ } from "./netsuite-
|
|
1
|
+
import { ref as w, onUnmounted as F, defineComponent as h, watch as I, onMounted as G, computed as g, resolveComponent as R, openBlock as S, createElementBlock as b, unref as v, createVNode as E, createElementVNode as p, toDisplayString as x, createBlock as U, createCommentVNode as M } from "vue";
|
|
2
|
+
import { u as k, a as D, R as e, g as s, _ as H, b as K } from "./app-Fc2FPGhO.js";
|
|
3
|
+
import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as C, useRoute as W } from "vue-router";
|
|
5
|
+
import { u as O } from "./feature-BMEyYowI.js";
|
|
6
|
+
import { u as $ } from "./netsuite-CqMWgzKo.js";
|
|
7
7
|
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
8
|
-
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
8
|
import { u as j } from "./googlemap-Dm8ERVai.js";
|
|
10
9
|
import "./array-hChJVZLE.js";
|
|
11
10
|
function z() {
|
|
@@ -14,7 +13,7 @@ function z() {
|
|
|
14
13
|
isLoading: !1
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
|
-
const _ =
|
|
16
|
+
const _ = w(z());
|
|
18
17
|
function q() {
|
|
19
18
|
const l = C();
|
|
20
19
|
if (!_.value.loadingHookInstalled) {
|
|
@@ -43,50 +42,50 @@ const J = {
|
|
|
43
42
|
}, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, re = /* @__PURE__ */ h({
|
|
44
43
|
__name: "InventoryView",
|
|
45
44
|
setup(l) {
|
|
46
|
-
const n =
|
|
47
|
-
|
|
45
|
+
const n = k(), i = D(), u = $(), a = A(), c = C(), o = q(), y = O(), { t: d } = B();
|
|
46
|
+
I(
|
|
48
47
|
[() => a.sessionUser.value, () => a.currentBusiness.value],
|
|
49
48
|
([t, r]) => {
|
|
50
49
|
f(t, r);
|
|
51
50
|
}
|
|
52
|
-
),
|
|
51
|
+
), G(async () => {
|
|
53
52
|
await a.readBusinesses();
|
|
54
53
|
const t = a.sessionUser.value, r = a.currentBusiness.value;
|
|
55
54
|
f(t, r);
|
|
56
55
|
});
|
|
57
56
|
function f(t, r) {
|
|
58
|
-
!t || !r ||
|
|
57
|
+
!t || !r || T();
|
|
59
58
|
}
|
|
60
|
-
async function
|
|
59
|
+
async function T() {
|
|
61
60
|
return await n.init(), await u.readSetting().catch((t) => {
|
|
62
61
|
console.error("error on reading netsuite store", t);
|
|
63
62
|
}), await i.init();
|
|
64
63
|
}
|
|
65
|
-
const N =
|
|
64
|
+
const N = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
|
|
66
65
|
return (t, r) => {
|
|
67
|
-
const m =
|
|
68
|
-
return S(),
|
|
69
|
-
v(o).isLoading ? (S(),
|
|
66
|
+
const m = R("FmSpacer"), P = R("FmCircularProgress"), L = R("FmButton"), V = R("RouterView");
|
|
67
|
+
return S(), b("div", null, [
|
|
68
|
+
v(o).isLoading ? (S(), b("div", J, [
|
|
70
69
|
E(m),
|
|
71
70
|
p("div", null, [
|
|
72
71
|
E(P, { size: "xl" })
|
|
73
72
|
]),
|
|
74
73
|
r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
75
74
|
E(m)
|
|
76
|
-
])) : N.value ? v(a).sessionUser.value ? (S(),
|
|
75
|
+
])) : N.value ? v(a).sessionUser.value ? (S(), U(V, { key: 2 })) : M("", !0) : (S(), b("div", X, [
|
|
77
76
|
p("div", Y, [
|
|
78
|
-
p("div", Z,
|
|
79
|
-
p("div", ee,
|
|
77
|
+
p("div", Z, x(v(d)("inventory.common.proPlan.title")), 1),
|
|
78
|
+
p("div", ee, x(v(d)("inventory.common.proPlan.subtitle")), 1)
|
|
80
79
|
]),
|
|
81
80
|
p("div", te, [
|
|
82
81
|
p("a", oe, [
|
|
83
|
-
E(
|
|
82
|
+
E(L, {
|
|
84
83
|
label: v(d)("inventory.common.proPlan.comparePlans"),
|
|
85
84
|
variant: "secondary"
|
|
86
85
|
}, null, 8, ["label"])
|
|
87
86
|
]),
|
|
88
87
|
p("a", ne, [
|
|
89
|
-
E(
|
|
88
|
+
E(L, {
|
|
90
89
|
label: v(d)("inventory.common.proPlan.callUs"),
|
|
91
90
|
"prepend-icon": "call"
|
|
92
91
|
}, null, 8, ["label"])
|
|
@@ -99,11 +98,11 @@ const J = {
|
|
|
99
98
|
}), se = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
|
|
100
99
|
__name: "NavigationTab",
|
|
101
100
|
setup(l) {
|
|
102
|
-
const n =
|
|
103
|
-
|
|
101
|
+
const n = W(), i = C(), u = A(), a = O(), c = Q(), { t: o } = B();
|
|
102
|
+
I([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
|
|
104
103
|
(t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
|
|
105
104
|
});
|
|
106
|
-
const y =
|
|
105
|
+
const y = g(() => {
|
|
107
106
|
var r;
|
|
108
107
|
const t = [
|
|
109
108
|
{
|
|
@@ -121,6 +120,10 @@ const J = {
|
|
|
121
120
|
{
|
|
122
121
|
label: s(e.CLOSING_DRAFT, o),
|
|
123
122
|
value: e.CLOSING_DRAFT
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: s(e.WASTAGE_TEMPLATE, o),
|
|
126
|
+
value: e.WASTAGE_TEMPLATE
|
|
124
127
|
}
|
|
125
128
|
]
|
|
126
129
|
},
|
|
@@ -183,7 +186,7 @@ const J = {
|
|
|
183
186
|
return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
|
|
184
187
|
(m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
|
|
185
188
|
) : t;
|
|
186
|
-
}), d =
|
|
189
|
+
}), d = g({
|
|
187
190
|
get() {
|
|
188
191
|
if (n.name)
|
|
189
192
|
return String(n.name);
|
|
@@ -191,26 +194,26 @@ const J = {
|
|
|
191
194
|
set(t) {
|
|
192
195
|
t && i.push({ name: t });
|
|
193
196
|
}
|
|
194
|
-
}), f =
|
|
197
|
+
}), f = g(
|
|
195
198
|
() => {
|
|
196
199
|
var t;
|
|
197
200
|
return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
|
|
198
201
|
}
|
|
199
|
-
),
|
|
202
|
+
), T = w(!1), N = g({
|
|
200
203
|
get() {
|
|
201
|
-
return
|
|
204
|
+
return T.value;
|
|
202
205
|
},
|
|
203
206
|
set(t) {
|
|
204
|
-
|
|
207
|
+
T.value = t, t || c.setItem(f.value, "true");
|
|
205
208
|
}
|
|
206
209
|
});
|
|
207
|
-
return
|
|
208
|
-
|
|
210
|
+
return I([() => f.value], () => {
|
|
211
|
+
T.value = !1, setTimeout(() => {
|
|
209
212
|
N.value = !c.getItem(f.value);
|
|
210
213
|
}, 2e3);
|
|
211
214
|
}), (t, r) => {
|
|
212
|
-
const m =
|
|
213
|
-
return S(),
|
|
215
|
+
const m = R("FmCollapsibleTabs");
|
|
216
|
+
return S(), b("div", se, [
|
|
214
217
|
E(m, {
|
|
215
218
|
modelValue: d.value,
|
|
216
219
|
"onUpdate:modelValue": r[0] || (r[0] = (P) => d.value = P),
|
|
@@ -219,7 +222,7 @@ const J = {
|
|
|
219
222
|
]);
|
|
220
223
|
};
|
|
221
224
|
}
|
|
222
|
-
}), le = /* @__PURE__ */
|
|
225
|
+
}), le = /* @__PURE__ */ H(ae, [["__scopeId", "data-v-fb8b7488"]]);
|
|
223
226
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
224
227
|
let l, n;
|
|
225
228
|
return { promise: new Promise((u, a) => {
|
|
@@ -229,11 +232,11 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
|
229
232
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
230
233
|
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
231
234
|
});
|
|
232
|
-
const
|
|
235
|
+
const Ee = /* @__PURE__ */ h({
|
|
233
236
|
__name: "App",
|
|
234
237
|
setup(l) {
|
|
235
|
-
const n = A(), i = j(), u =
|
|
236
|
-
|
|
238
|
+
const n = A(), i = j(), u = K();
|
|
239
|
+
G(() => {
|
|
237
240
|
if (window.location.href.includes("print-preview")) {
|
|
238
241
|
n.setEmbedded(!0);
|
|
239
242
|
return;
|
|
@@ -241,7 +244,7 @@ const Se = /* @__PURE__ */ h({
|
|
|
241
244
|
n.registerSidebarComponent(le), i.initGoogleMap(u.appApi.googleMap).catch(() => {
|
|
242
245
|
console.error("Google map cannot be loaded");
|
|
243
246
|
});
|
|
244
|
-
}),
|
|
247
|
+
}), I([() => n.currentCountry.value], () => {
|
|
245
248
|
a();
|
|
246
249
|
});
|
|
247
250
|
async function a() {
|
|
@@ -252,9 +255,9 @@ const Se = /* @__PURE__ */ h({
|
|
|
252
255
|
console.error("error when trying to reset businesses:", o);
|
|
253
256
|
}
|
|
254
257
|
}
|
|
255
|
-
return (c, o) => (S(),
|
|
258
|
+
return (c, o) => (S(), U(re));
|
|
256
259
|
}
|
|
257
260
|
});
|
|
258
261
|
export {
|
|
259
|
-
|
|
262
|
+
Ee as default
|
|
260
263
|
};
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as
|
|
2
|
-
import { u as me,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as be, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
7
|
-
import { useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
8
|
-
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
1
|
+
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as y, createBlock as J, unref as e, withCtx as x, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as pe, mergeProps as ue } from "vue";
|
|
2
|
+
import { u as me, aq as v, ay as de, a5 as K, p as fe, q as ve, r as _e, s as he, v as _ } from "./app-Fc2FPGhO.js";
|
|
3
|
+
import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BBARPa0S.js";
|
|
4
|
+
import { useBreakpoints as ye } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as xe } from "@feedmepos/mf-common";
|
|
9
6
|
const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
|
|
10
7
|
key: 0,
|
|
11
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
12
|
-
}, Te = { class: "pt-8" },
|
|
9
|
+
}, Te = { class: "pt-8" }, Ve = /* @__PURE__ */ ae({
|
|
13
10
|
__name: "ApprovalView",
|
|
14
11
|
setup(Ce) {
|
|
15
|
-
const o =
|
|
12
|
+
const o = De("approval"), { columnDefs: Q } = ge("approval", o), W = me();
|
|
16
13
|
v.object({
|
|
17
14
|
name: v.string().optional().nullable(),
|
|
18
15
|
start: v.date().optional().nullable(),
|
|
@@ -38,7 +35,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
38
35
|
return;
|
|
39
36
|
}
|
|
40
37
|
});
|
|
41
|
-
const h = g(""), { breakpoints: R } =
|
|
38
|
+
const h = g(""), { breakpoints: R } = ye(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = xe(), B = b(() => [
|
|
42
39
|
{
|
|
43
40
|
label: k("common.refresh"),
|
|
44
41
|
value: "refresh"
|
|
@@ -52,12 +49,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
52
49
|
}
|
|
53
50
|
return (c, l) => {
|
|
54
51
|
const ee = re("FmTable");
|
|
55
|
-
return
|
|
52
|
+
return y(), J(ve, {
|
|
56
53
|
title: e(k)("inventory.transfer.approval.title"),
|
|
57
54
|
actions: B.value,
|
|
58
55
|
"onClick:action": I
|
|
59
56
|
}, {
|
|
60
|
-
default:
|
|
57
|
+
default: x(() => [
|
|
61
58
|
s("div", {
|
|
62
59
|
class: ne([
|
|
63
60
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -82,13 +79,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
82
79
|
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
|
|
83
80
|
"page-size": X.value
|
|
84
81
|
}, {
|
|
85
|
-
"list-row":
|
|
86
|
-
n(
|
|
82
|
+
"list-row": x((r) => [
|
|
83
|
+
n(he, {
|
|
87
84
|
row: r,
|
|
88
85
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
89
86
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
var O, S, T, i, C,
|
|
87
|
+
default: x((t) => {
|
|
88
|
+
var O, S, T, i, C, q, z, M, p, $, F, u, V, m, Y, L, N, P, j, d, A, E, H, U, f, G;
|
|
92
89
|
return [
|
|
93
90
|
s("div", we, [
|
|
94
91
|
s("div", Re, [
|
|
@@ -99,12 +96,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
99
96
|
]),
|
|
100
97
|
s("div", ke, [
|
|
101
98
|
n(e(_), {
|
|
102
|
-
render: (M = (
|
|
99
|
+
render: (M = (z = (q = t.to_name) == null ? void 0 : q.column) == null ? void 0 : z.columnDef) == null ? void 0 : M.cell,
|
|
103
100
|
props: ($ = (p = t.to_name) == null ? void 0 : p.getContext) == null ? void 0 : $.call(p)
|
|
104
101
|
}, null, 8, ["render", "props"])
|
|
105
102
|
]),
|
|
106
|
-
s("div", Oe, le((
|
|
107
|
-
(L = r.original.purchaseOrder) != null && L.ref ? (
|
|
103
|
+
s("div", Oe, le((Y = (m = (V = (u = (F = r.original.purchaseOrder) == null ? void 0 : F.items) == null ? void 0 : u.map) == null ? void 0 : V.call(u, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : Y.call(m, ", ")), 1),
|
|
104
|
+
(L = r.original.purchaseOrder) != null && L.ref ? (y(), ce("div", Se, [
|
|
108
105
|
n(e(_), {
|
|
109
106
|
render: (j = (P = (N = t.purchaseOrder_ref) == null ? void 0 : N.column) == null ? void 0 : P.columnDef) == null ? void 0 : j.cell,
|
|
110
107
|
props: (A = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : A.call(d)
|
|
@@ -125,8 +122,8 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
125
122
|
_: 1
|
|
126
123
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
127
124
|
], 2),
|
|
128
|
-
(
|
|
129
|
-
n(
|
|
125
|
+
(y(), J(pe, { to: "body" }, [
|
|
126
|
+
n(be, ue(e(o).transferDetailsProps.value, {
|
|
130
127
|
onSubmitted: e(o).fetchData
|
|
131
128
|
}), null, 16, ["onSubmitted"])
|
|
132
129
|
]))
|
|
@@ -137,5 +134,5 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
137
134
|
}
|
|
138
135
|
});
|
|
139
136
|
export {
|
|
140
|
-
|
|
137
|
+
Ve as default
|
|
141
138
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
|
4
|
-
const
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js";
|
|
3
|
+
import { a as E, aE as L } from "./app-Fc2FPGhO.js";
|
|
4
|
+
const S = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
7
|
-
},
|
|
7
|
+
}, U = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
10
|
}, D = /* @__PURE__ */ C({
|
|
11
11
|
__name: "BindingsDialog",
|
|
12
12
|
setup(N) {
|
|
13
|
-
const p =
|
|
13
|
+
const p = E(), d = o(!0), s = o(new Array()), u = o(), t = L(y);
|
|
14
14
|
async function y() {
|
|
15
15
|
await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
|
|
16
16
|
d.value = !1, s.value = e;
|
|
@@ -53,7 +53,7 @@ const U = {
|
|
|
53
53
|
ref_key: "resizeableRef",
|
|
54
54
|
ref: m
|
|
55
55
|
}, [
|
|
56
|
-
d.value ? (i(), c("div",
|
|
56
|
+
d.value ? (i(), c("div", U, [
|
|
57
57
|
a(h, { size: "md" }),
|
|
58
58
|
n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
|
|
59
59
|
])) : (i(), I(B, {
|
|
@@ -70,7 +70,7 @@ const U = {
|
|
|
70
70
|
"iframe-mode": "",
|
|
71
71
|
"onClick:pickInventoryBindings": k
|
|
72
72
|
}, null, 8, ["model-value"]),
|
|
73
|
-
r.value ? z("", !0) : (i(), c("div",
|
|
73
|
+
r.value ? z("", !0) : (i(), c("div", S, [
|
|
74
74
|
a(g, {
|
|
75
75
|
type: "button",
|
|
76
76
|
variant: "tertiary",
|
|
@@ -1,13 +1,12 @@
|
|
|
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 {
|
|
3
|
-
|
|
4
|
-
const z = {
|
|
2
|
+
import { a as x, aE as M, x as z } from "./app-Fc2FPGhO.js";
|
|
3
|
+
const F = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "flex flex-col gap-16"
|
|
7
6
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
8
7
|
key: 1,
|
|
9
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
|
-
},
|
|
9
|
+
}, N = /* @__PURE__ */ S({
|
|
11
10
|
__name: "BindingsPicker",
|
|
12
11
|
setup(L) {
|
|
13
12
|
const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
@@ -63,7 +62,7 @@ const z = {
|
|
|
63
62
|
];
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
}), _ = l(), o =
|
|
65
|
+
}), _ = l(), o = M(B);
|
|
67
66
|
async function B() {
|
|
68
67
|
await d.readInventory(), _.value = o.onMessage(
|
|
69
68
|
"props:binding-items",
|
|
@@ -97,8 +96,8 @@ const z = {
|
|
|
97
96
|
g.value ? (p(), f("div", w, [
|
|
98
97
|
u(t, { size: "md" }),
|
|
99
98
|
s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
|
|
100
|
-
])) : (p(), f("div",
|
|
101
|
-
u(
|
|
99
|
+
])) : (p(), f("div", F, [
|
|
100
|
+
u(z, {
|
|
102
101
|
"model-value": b.value,
|
|
103
102
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
|
|
104
103
|
items: c.value
|
|
@@ -120,5 +119,5 @@ const z = {
|
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
121
|
export {
|
|
123
|
-
|
|
122
|
+
N as default
|
|
124
123
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
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
|
|
2
|
-
import { F as v, a as
|
|
3
|
-
import "./index-gvJJ-xRY.js";
|
|
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 E } from "vue";
|
|
2
|
+
import { F as v, a as x, aE as F } from "./app-Fc2FPGhO.js";
|
|
4
3
|
import { components as L } from "@feedmepos/ui-library";
|
|
5
|
-
import "./fuzzy-DdOiOd-q.js";
|
|
6
|
-
/* empty css */
|
|
7
4
|
import "@feedmepos/mf-common";
|
|
8
|
-
import "./dayjs.min-7pwGJ2aW.js";
|
|
9
5
|
const P = /* @__PURE__ */ _({
|
|
10
6
|
__name: "binding-ui",
|
|
11
7
|
props: {
|
|
@@ -26,17 +22,17 @@ const P = /* @__PURE__ */ _({
|
|
|
26
22
|
C("closeDialog", () => {
|
|
27
23
|
u.value.isOpen = !u.value.isOpen;
|
|
28
24
|
});
|
|
29
|
-
const
|
|
25
|
+
const o = k, m = d, a = f(() => o.items.map((e) => ({
|
|
30
26
|
key: e.key,
|
|
31
27
|
name: e.name,
|
|
32
28
|
_skuLinked: e.bindings.filter(
|
|
33
|
-
({ type: n, id:
|
|
29
|
+
({ type: n, id: s }) => n === v.enum.SKU && o.skus.some((l) => l._id === s)
|
|
34
30
|
).length,
|
|
35
31
|
_recipeLinked: e.bindings.filter(
|
|
36
|
-
({ type: n, id:
|
|
32
|
+
({ type: n, id: s }) => n === v.enum.RECIPE && o.recipes.some((l) => l._id === s)
|
|
37
33
|
).length,
|
|
38
34
|
onUpdate: async () => {
|
|
39
|
-
|
|
35
|
+
o.editable && m("click:open-binding-dialog", o.type, e);
|
|
40
36
|
}
|
|
41
37
|
}))), g = [
|
|
42
38
|
{
|
|
@@ -49,7 +45,7 @@ const P = /* @__PURE__ */ _({
|
|
|
49
45
|
header: "Ingredient",
|
|
50
46
|
size: 200,
|
|
51
47
|
cell(i) {
|
|
52
|
-
const e = a.value.find((
|
|
48
|
+
const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
|
|
53
49
|
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
54
50
|
}
|
|
55
51
|
},
|
|
@@ -58,7 +54,7 @@ const P = /* @__PURE__ */ _({
|
|
|
58
54
|
header: "Recipe",
|
|
59
55
|
size: 200,
|
|
60
56
|
cell(i) {
|
|
61
|
-
const e = a.value.find((
|
|
57
|
+
const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
|
|
62
58
|
return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
|
|
63
59
|
}
|
|
64
60
|
},
|
|
@@ -94,19 +90,19 @@ const P = /* @__PURE__ */ _({
|
|
|
94
90
|
}), R = {
|
|
95
91
|
key: 1,
|
|
96
92
|
class: "p-24 flex items-center justify-center gap-16"
|
|
97
|
-
},
|
|
93
|
+
}, D = /* @__PURE__ */ _({
|
|
98
94
|
__name: "BindingsTable",
|
|
99
95
|
setup(k) {
|
|
100
|
-
const d =
|
|
96
|
+
const d = x(), u = c(!0), o = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
|
|
101
97
|
async function n() {
|
|
102
98
|
await d.readInventory(), e.value = i.onMessage(
|
|
103
99
|
"props:grouped-bindings",
|
|
104
100
|
(t) => {
|
|
105
|
-
u.value = !1,
|
|
101
|
+
u.value = !1, o.value = t;
|
|
106
102
|
}
|
|
107
103
|
), i.sendMessage("props:grouped-bindings");
|
|
108
104
|
}
|
|
109
|
-
async function
|
|
105
|
+
async function s(t, r) {
|
|
110
106
|
i.sendMessage("@click:open-binding-dialog", {
|
|
111
107
|
key: t,
|
|
112
108
|
binding: r
|
|
@@ -130,20 +126,20 @@ const P = /* @__PURE__ */ _({
|
|
|
130
126
|
}, [
|
|
131
127
|
u.value ? (p(), y("div", R, [
|
|
132
128
|
N(w, { size: "md" }),
|
|
133
|
-
r[0] || (r[0] =
|
|
129
|
+
r[0] || (r[0] = E("div", null, "Loading bindings table...", -1))
|
|
134
130
|
])) : (p(), h(P, {
|
|
135
131
|
key: 0,
|
|
136
|
-
items:
|
|
132
|
+
items: o.value,
|
|
137
133
|
recipes: m.value,
|
|
138
134
|
skus: a.value,
|
|
139
135
|
type: g.value,
|
|
140
136
|
editable: "",
|
|
141
|
-
"onClick:openBindingDialog":
|
|
137
|
+
"onClick:openBindingDialog": s
|
|
142
138
|
}, null, 8, ["items", "recipes", "skus", "type"]))
|
|
143
139
|
], 512);
|
|
144
140
|
};
|
|
145
141
|
}
|
|
146
142
|
});
|
|
147
143
|
export {
|
|
148
|
-
|
|
144
|
+
D as default
|
|
149
145
|
};
|