@feedmepos/mf-inventory-portal 0.0.25-dev.8 → 0.0.25-dev.9
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-CKLQeRNl.js → App-9zSE_swt.js} +35 -34
- package/dist/{ApprovalView-BWO2tkbO.js → ApprovalView-C2tg-wsm.js} +16 -16
- package/dist/{BindingsDialog-C0kTZLOn.js → BindingsDialog-eGbOIQkw.js} +6 -6
- package/dist/{BindingsPicker-DjcS3uTL.js → BindingsPicker-CVXrd29s.js} +11 -11
- package/dist/{BindingsTable-Ctpv958D.js → BindingsTable-CCsQEFnu.js} +5 -5
- package/dist/{ClosingDraftView-CsAPSZPc.js → ClosingDraftView-BI8b3CJ9.js} +47 -47
- package/dist/ClosingTemplateView-miJnC-ML.js +1859 -0
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJfBmiRt.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js} +44 -44
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js} +52 -52
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js +51 -0
- package/dist/{IngredientGroupView-Dc3glXN3.js → IngredientGroupView-ZWCOAljO.js} +1 -1
- package/dist/{IngredientsView-btzrUQ1-.js → IngredientsView-5-pSX6y_.js} +16 -14
- package/dist/{IntegrationView-DO1SF1Ca.js → IntegrationView-DO3Ambro.js} +1 -1
- package/dist/{InventoryBindingForm-_2p-YetL.js → InventoryBindingForm-BjtFP29c.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js} +53 -53
- package/dist/{InventoryBindingSummary-CEdLu3d9.js → InventoryBindingSummary-C6DkVX-B.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kLdZ5acK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js} +15 -15
- package/dist/{PublishView-CXTiPWIx.js → PublishView-DOMQdIJ7.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-DBviMTyA.js → PurchaseOrderPrintPreview-_MCAsdw9.js} +1 -1
- package/dist/{ReceiveRequestView-Ct1AQDGK.js → ReceiveRequestView-902hWGtz.js} +56 -55
- package/dist/{RecipeView-C0HiPNvf.js → RecipeView-dmmjklwh.js} +32 -31
- package/dist/{index-ro6xANOo.js → StockView-C4lEYLXU.js} +3577 -1764
- package/dist/{SupplierView-th75_ohq.js → SupplierView-CO5460uC.js} +12 -11
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-n7fH8GRs.js → TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js} +186 -185
- package/dist/TransferTemplateView-C9UwNTnY.js +1371 -0
- package/dist/{UnitView-lnoMsoBN.js → UnitView-DbYzxCXF.js} +14 -14
- package/dist/{WarehouseView-ChXcNnmp.js → WarehouseView-BII4SEVC.js} +332 -314
- package/dist/api/inventory.d.ts +7 -6
- package/dist/{app-B4RHEuan.js → app-IM1yJnE8.js} +15087 -15907
- package/dist/app.js +1 -1
- package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
- package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
- package/dist/{decimal-BocxWSo6.js → decimal-DQUpCN-B.js} +1 -1
- package/dist/feature-DMBVVBsQ.js +1005 -0
- package/dist/{format-unit-display-E_NtfEtV.js → format-unit-display-COuIZISg.js} +242 -238
- package/dist/helper/fuzzy.d.ts +1 -1
- package/dist/index-CIrsMt6f.js +35546 -0
- package/dist/{stock-DpmweZQd.js → stock-BJUTiXXk.js} +3 -3
- package/dist/stores/inventory.d.ts +8 -8
- package/dist/stores/location.d.ts +9 -0
- package/dist/stores/warehouse.d.ts +1 -0
- package/dist/{supplier--P-eubcS.js → supplier-CM-qQVyI.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-C7WZf5D4.js → use-ingredient-select-dialog-Cn79xFNg.js} +3 -4
- package/dist/{use-inventory-binding-dialog-DW_kAtLh.js → use-inventory-binding-dialog-zwOG19YV.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
- package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +25 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +36 -24
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +36 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +36 -12
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
- package/dist/{vue-i18n-SeWrkOlu.js → vue-i18n-CzPFJ9JY.js} +134 -134
- package/package.json +3 -3
- package/dist/ClosingTemplateView-D0HWVhk3.js +0 -1804
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js +0 -142
- package/dist/StockView-BG8jsV_X.js +0 -1817
- package/dist/TransferTemplateView-Dcz6xGR_.js +0 -1269
- package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
- package/dist/index-B-MhJgPv.js +0 -29202
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ref as x, onUnmounted as F, defineComponent as h, watch as P, onMounted as U, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as G, createCommentVNode as M } from "vue";
|
|
2
|
-
import { u as k, a as D, b as H, R as e,
|
|
3
|
-
import { useCoreStore as A, useI18n as
|
|
2
|
+
import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-IM1yJnE8.js";
|
|
3
|
+
import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as C, useRoute as K } from "vue-router";
|
|
5
|
+
import { u as O } from "./feature-DMBVVBsQ.js";
|
|
5
6
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
6
7
|
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
7
8
|
import "./array-hChJVZLE.js";
|
|
@@ -40,19 +41,19 @@ const q = {
|
|
|
40
41
|
}, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
|
|
41
42
|
__name: "InventoryView",
|
|
42
43
|
setup(l) {
|
|
43
|
-
const n = k(), i = D(), u = H(),
|
|
44
|
+
const n = k(), i = D(), u = H(), a = A(), c = C(), o = z(), R = O(), { t: d } = B();
|
|
44
45
|
P(
|
|
45
|
-
[() =>
|
|
46
|
-
([t,
|
|
47
|
-
f(t,
|
|
46
|
+
[() => a.sessionUser.value, () => a.currentBusiness.value],
|
|
47
|
+
([t, r]) => {
|
|
48
|
+
f(t, r);
|
|
48
49
|
}
|
|
49
50
|
), U(async () => {
|
|
50
|
-
await R.init(), await
|
|
51
|
-
const t =
|
|
52
|
-
f(t,
|
|
51
|
+
await R.init(), await a.readBusinesses();
|
|
52
|
+
const t = a.sessionUser.value, r = a.currentBusiness.value;
|
|
53
|
+
f(t, r);
|
|
53
54
|
});
|
|
54
|
-
function f(t,
|
|
55
|
-
!t || !
|
|
55
|
+
function f(t, r) {
|
|
56
|
+
!t || !r || T();
|
|
56
57
|
}
|
|
57
58
|
async function T() {
|
|
58
59
|
return await n.init(), await u.readSetting().catch((t) => {
|
|
@@ -60,7 +61,7 @@ const q = {
|
|
|
60
61
|
}), await i.init();
|
|
61
62
|
}
|
|
62
63
|
const y = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
|
|
63
|
-
return (t,
|
|
64
|
+
return (t, r) => {
|
|
64
65
|
const m = b("FmSpacer"), N = b("FmCircularProgress"), L = b("FmButton"), V = b("RouterView");
|
|
65
66
|
return S(), I("div", null, [
|
|
66
67
|
v(o).isLoading ? (S(), I("div", q, [
|
|
@@ -68,9 +69,9 @@ const q = {
|
|
|
68
69
|
p("div", null, [
|
|
69
70
|
_(N, { size: "xl" })
|
|
70
71
|
]),
|
|
71
|
-
|
|
72
|
+
r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
72
73
|
_(m)
|
|
73
|
-
])) : y.value ? v(
|
|
74
|
+
])) : y.value ? v(a).sessionUser.value ? (S(), G(V, { key: 2 })) : M("", !0) : (S(), I("div", J, [
|
|
74
75
|
p("div", X, [
|
|
75
76
|
p("div", Y, w(v(d)("inventory.common.proPlan.title")), 1),
|
|
76
77
|
p("div", Z, w(v(d)("inventory.common.proPlan.subtitle")), 1)
|
|
@@ -93,15 +94,15 @@ const q = {
|
|
|
93
94
|
]);
|
|
94
95
|
};
|
|
95
96
|
}
|
|
96
|
-
}),
|
|
97
|
+
}), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
|
|
97
98
|
__name: "NavigationTab",
|
|
98
99
|
setup(l) {
|
|
99
|
-
const n = K(), i = C(), u = A(),
|
|
100
|
-
P([() => u.currentBusiness.value, () => n.name], ([t,
|
|
101
|
-
(t == null ? void 0 : t.menuVersion) === "v3" && (
|
|
100
|
+
const n = K(), i = C(), u = A(), a = O(), c = $(), { t: o } = B();
|
|
101
|
+
P([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
|
|
102
|
+
(t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
|
|
102
103
|
});
|
|
103
104
|
const R = g(() => {
|
|
104
|
-
var
|
|
105
|
+
var r;
|
|
105
106
|
const t = [
|
|
106
107
|
{
|
|
107
108
|
label: s(e.STOCK, o),
|
|
@@ -111,7 +112,7 @@ const q = {
|
|
|
111
112
|
label: "Stock balance",
|
|
112
113
|
value: e.STOCK
|
|
113
114
|
},
|
|
114
|
-
...
|
|
115
|
+
...a.enableWastageTemplate ? [
|
|
115
116
|
{
|
|
116
117
|
label: s(e.WASTAGE_TEMPLATE, o),
|
|
117
118
|
value: e.WASTAGE_TEMPLATE
|
|
@@ -119,7 +120,7 @@ const q = {
|
|
|
119
120
|
] : []
|
|
120
121
|
]
|
|
121
122
|
},
|
|
122
|
-
...
|
|
123
|
+
...a.enableClosingTemplate ? [
|
|
123
124
|
{
|
|
124
125
|
label: "Closing",
|
|
125
126
|
children: [
|
|
@@ -139,7 +140,7 @@ const q = {
|
|
|
139
140
|
// icon: 'grocery',
|
|
140
141
|
value: e.INGREDIENTS
|
|
141
142
|
},
|
|
142
|
-
...
|
|
143
|
+
...a.enableIngredientGroup ? [
|
|
143
144
|
{
|
|
144
145
|
label: s(e.INGREDIENT_GROUP, o),
|
|
145
146
|
// icon: 'grocery',
|
|
@@ -168,7 +169,7 @@ const q = {
|
|
|
168
169
|
label: s(e.APPROVAL, o),
|
|
169
170
|
value: e.APPROVAL
|
|
170
171
|
},
|
|
171
|
-
...
|
|
172
|
+
...a.enablePoTemplate ? [
|
|
172
173
|
{
|
|
173
174
|
label: s(e.TRANSFER_TEMPLATE, o),
|
|
174
175
|
value: e.TRANSFER_TEMPLATE
|
|
@@ -196,7 +197,7 @@ const q = {
|
|
|
196
197
|
value: e.INTEGRATION
|
|
197
198
|
}
|
|
198
199
|
];
|
|
199
|
-
return ((
|
|
200
|
+
return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
|
|
200
201
|
(m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
|
|
201
202
|
) : t;
|
|
202
203
|
}), d = g({
|
|
@@ -224,12 +225,12 @@ const q = {
|
|
|
224
225
|
T.value = !1, setTimeout(() => {
|
|
225
226
|
y.value = !c.getItem(f.value);
|
|
226
227
|
}, 2e3);
|
|
227
|
-
}), (t,
|
|
228
|
+
}), (t, r) => {
|
|
228
229
|
const m = b("FmCollapsibleTabs");
|
|
229
|
-
return S(), I("div",
|
|
230
|
+
return S(), I("div", re, [
|
|
230
231
|
_(m, {
|
|
231
232
|
modelValue: d.value,
|
|
232
|
-
"onUpdate:modelValue":
|
|
233
|
+
"onUpdate:modelValue": r[0] || (r[0] = (N) => d.value = N),
|
|
233
234
|
items: R.value
|
|
234
235
|
}, null, 8, ["modelValue", "items"])
|
|
235
236
|
]);
|
|
@@ -238,14 +239,14 @@ const q = {
|
|
|
238
239
|
});
|
|
239
240
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
240
241
|
let l, n;
|
|
241
|
-
return { promise: new Promise((u,
|
|
242
|
-
l = u, n =
|
|
242
|
+
return { promise: new Promise((u, a) => {
|
|
243
|
+
l = u, n = a;
|
|
243
244
|
}), resolve: l, reject: n };
|
|
244
245
|
});
|
|
245
246
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
246
247
|
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
247
248
|
});
|
|
248
|
-
const
|
|
249
|
+
const fe = /* @__PURE__ */ h({
|
|
249
250
|
__name: "App",
|
|
250
251
|
setup(l) {
|
|
251
252
|
const n = A(), i = Q(), u = W();
|
|
@@ -254,13 +255,13 @@ const de = /* @__PURE__ */ h({
|
|
|
254
255
|
n.setEmbedded(!0);
|
|
255
256
|
return;
|
|
256
257
|
}
|
|
257
|
-
n.registerSidebarComponent(
|
|
258
|
+
n.registerSidebarComponent(ae), i.initGoogleMap(u.appApi.googleMap).catch(() => {
|
|
258
259
|
console.error("Google map cannot be loaded");
|
|
259
260
|
});
|
|
260
261
|
}), P([() => n.currentCountry.value], () => {
|
|
261
|
-
|
|
262
|
+
a();
|
|
262
263
|
});
|
|
263
|
-
async function
|
|
264
|
+
async function a() {
|
|
264
265
|
var c;
|
|
265
266
|
try {
|
|
266
267
|
await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
|
|
@@ -272,5 +273,5 @@ const de = /* @__PURE__ */ h({
|
|
|
272
273
|
}
|
|
273
274
|
});
|
|
274
275
|
export {
|
|
275
|
-
|
|
276
|
+
fe as default
|
|
276
277
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { useBreakpoints as
|
|
5
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as y, createBlock as G, 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 ue, mergeProps as pe } from "vue";
|
|
2
|
+
import { u as me, az as v, aK as de, ab as J, y as fe, _ as ve, z as _e, B as he, E as _ } from "./app-IM1yJnE8.js";
|
|
3
|
+
import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js";
|
|
4
|
+
import { useBreakpoints as ye } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as xe } from "@feedmepos/mf-common";
|
|
6
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 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
@@ -19,8 +19,8 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
19
19
|
name: "",
|
|
20
20
|
...de()
|
|
21
21
|
}), a = g({
|
|
22
|
-
startDate:
|
|
23
|
-
endDate:
|
|
22
|
+
startDate: J(w.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
|
+
endDate: J(w.value.end ?? /* @__PURE__ */ new Date())
|
|
24
24
|
});
|
|
25
25
|
oe([() => a.value.startDate], () => {
|
|
26
26
|
if (!a.value.startDate)
|
|
@@ -35,7 +35,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
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(() => [
|
|
39
39
|
{
|
|
40
40
|
label: k("common.refresh"),
|
|
41
41
|
value: "refresh"
|
|
@@ -49,12 +49,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
49
49
|
}
|
|
50
50
|
return (c, l) => {
|
|
51
51
|
const ee = re("FmTable");
|
|
52
|
-
return
|
|
52
|
+
return y(), G(ve, {
|
|
53
53
|
title: e(k)("inventory.transfer.approval.title"),
|
|
54
54
|
actions: B.value,
|
|
55
55
|
"onClick:action": I
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
57
|
+
default: x(() => [
|
|
58
58
|
s("div", {
|
|
59
59
|
class: ne([
|
|
60
60
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -79,13 +79,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
79
79
|
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
|
|
80
80
|
"page-size": X.value
|
|
81
81
|
}, {
|
|
82
|
-
"list-row":
|
|
82
|
+
"list-row": x((r) => [
|
|
83
83
|
n(he, {
|
|
84
84
|
row: r,
|
|
85
85
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
86
86
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
var O, S, T, i, C, z, M, $, u, F, V, p, Y, m, q, E, L, N, P, d, j, A,
|
|
87
|
+
default: x((t) => {
|
|
88
|
+
var O, S, T, i, C, z, M, $, u, F, V, p, Y, m, q, E, L, N, P, d, j, A, H, K, f, U;
|
|
89
89
|
return [
|
|
90
90
|
s("div", we, [
|
|
91
91
|
s("div", Re, [
|
|
@@ -101,7 +101,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
101
101
|
}, null, 8, ["render", "props"])
|
|
102
102
|
]),
|
|
103
103
|
s("div", Oe, le((q = (m = (Y = (p = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : p.map) == null ? void 0 : Y.call(p, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
|
|
104
|
-
(E = r.original.purchaseOrder) != null && E.ref ? (
|
|
104
|
+
(E = r.original.purchaseOrder) != null && E.ref ? (y(), ce("div", Se, [
|
|
105
105
|
n(e(_), {
|
|
106
106
|
render: (P = (N = (L = t.purchaseOrder_ref) == null ? void 0 : L.column) == null ? void 0 : N.columnDef) == null ? void 0 : P.cell,
|
|
107
107
|
props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
|
|
@@ -109,7 +109,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
109
109
|
])) : ie("", !0),
|
|
110
110
|
s("div", Te, [
|
|
111
111
|
n(e(_), {
|
|
112
|
-
render: (
|
|
112
|
+
render: (K = (H = (A = t.purchaseOrder_status) == null ? void 0 : A.column) == null ? void 0 : H.columnDef) == null ? void 0 : K.cell,
|
|
113
113
|
props: (U = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : U.call(f)
|
|
114
114
|
}, null, 8, ["render", "props"])
|
|
115
115
|
])
|
|
@@ -122,7 +122,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
|
|
|
122
122
|
_: 1
|
|
123
123
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
124
124
|
], 2),
|
|
125
|
-
(
|
|
125
|
+
(y(), G(ue, { to: "body" }, [
|
|
126
126
|
n(be, pe(e(o).transferDetailsProps.value, {
|
|
127
127
|
onSubmitted: e(o).fetchData
|
|
128
128
|
}), null, 16, ["onSubmitted"])
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L,
|
|
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-CFMZ4VsK.js";
|
|
3
|
+
import { a as L, aQ as S } from "./app-IM1yJnE8.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
7
7
|
}, E = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
|
-
}, D = /* @__PURE__ */
|
|
10
|
+
}, D = /* @__PURE__ */ C({
|
|
11
11
|
__name: "BindingsDialog",
|
|
12
12
|
setup(N) {
|
|
13
13
|
const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
|
|
@@ -29,7 +29,7 @@ const U = {
|
|
|
29
29
|
t.sendMessage("@click:pick-inventory-bindings", e);
|
|
30
30
|
}
|
|
31
31
|
const m = o(), r = o(!0);
|
|
32
|
-
|
|
32
|
+
M(() => {
|
|
33
33
|
v();
|
|
34
34
|
const e = m.value;
|
|
35
35
|
e && new ResizeObserver(() => {
|
|
@@ -66,7 +66,7 @@ const U = {
|
|
|
66
66
|
default: R(() => [
|
|
67
67
|
a(V, {
|
|
68
68
|
"model-value": s.value,
|
|
69
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
69
|
+
"onUpdate:modelValue": n[0] || (n[0] = (w) => s.value = w),
|
|
70
70
|
"iframe-mode": "",
|
|
71
71
|
"onClick:pickInventoryBindings": k
|
|
72
72
|
}, null, 8, ["model-value"]),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
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 M, aQ as x, H as z } from "./app-IM1yJnE8.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
6
6
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
|
-
},
|
|
9
|
+
}, H = /* @__PURE__ */ S({
|
|
10
10
|
__name: "BindingsPicker",
|
|
11
11
|
setup(L) {
|
|
12
|
-
const d =
|
|
12
|
+
const d = M(), 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) => ({
|
|
13
13
|
label: s.name,
|
|
14
14
|
sublabel: s.code,
|
|
15
15
|
value: s
|
|
@@ -71,19 +71,19 @@ const F = {
|
|
|
71
71
|
}
|
|
72
72
|
), o.sendMessage("props:binding-items");
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function P() {
|
|
75
75
|
o.sendMessage("@close");
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function R() {
|
|
78
78
|
o.sendMessage("@submit:items", i.value);
|
|
79
79
|
}
|
|
80
80
|
const y = l();
|
|
81
|
-
return
|
|
81
|
+
return U(() => {
|
|
82
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
88
|
(s = (e = _.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
|
|
89
89
|
}), (e, s) => {
|
|
@@ -106,11 +106,11 @@ const F = {
|
|
|
106
106
|
u(n, {
|
|
107
107
|
variant: "tertiary",
|
|
108
108
|
label: "Close",
|
|
109
|
-
onClick:
|
|
109
|
+
onClick: P
|
|
110
110
|
}),
|
|
111
111
|
u(n, {
|
|
112
112
|
label: "Submit",
|
|
113
|
-
onClick:
|
|
113
|
+
onClick: R
|
|
114
114
|
})
|
|
115
115
|
])
|
|
116
116
|
]))
|
|
@@ -119,5 +119,5 @@ const F = {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
H as default
|
|
123
123
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { F as v, a as E,
|
|
2
|
+
import { F as v, a as E, aQ as F } from "./app-IM1yJnE8.js";
|
|
3
3
|
import { components as L } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
|
-
const
|
|
5
|
+
const P = /* @__PURE__ */ _({
|
|
6
6
|
__name: "binding-ui",
|
|
7
7
|
props: {
|
|
8
8
|
items: { default: () => [] },
|
|
@@ -87,7 +87,7 @@ const M = /* @__PURE__ */ _({
|
|
|
87
87
|
}, null, 8, ["row-data"]);
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), R = {
|
|
91
91
|
key: 1,
|
|
92
92
|
class: "p-24 flex items-center justify-center gap-16"
|
|
93
93
|
}, D = /* @__PURE__ */ _({
|
|
@@ -124,10 +124,10 @@ const M = /* @__PURE__ */ _({
|
|
|
124
124
|
ref_key: "resizeableRef",
|
|
125
125
|
ref: l
|
|
126
126
|
}, [
|
|
127
|
-
u.value ? (p(), y("div",
|
|
127
|
+
u.value ? (p(), y("div", R, [
|
|
128
128
|
N(w, { size: "md" }),
|
|
129
129
|
r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
|
|
130
|
-
])) : (p(), h(
|
|
130
|
+
])) : (p(), h(P, {
|
|
131
131
|
key: 0,
|
|
132
132
|
items: o.value,
|
|
133
133
|
recipes: m.value,
|