@feedmepos/mf-inventory-portal 0.0.25-dev.50 → 0.0.25-dev.52
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-B7fIlPKw.js → App-DkPiRPu7.js} +34 -34
- package/dist/{ApprovalView-Dp20w8em.js → ApprovalView-BEF-qPdZ.js} +20 -20
- package/dist/{BindingsDialog-BIHCuoDe.js → BindingsDialog-B6vjaPiA.js} +4 -4
- package/dist/{BindingsPicker-DoM1Dh1y.js → BindingsPicker-BmWf3j6H.js} +7 -7
- package/dist/{BindingsTable-ChJYIxrf.js → BindingsTable-VVNmzkzf.js} +1 -1
- package/dist/{ClosingDraftView-L4EHR0Sb.js → ClosingDraftView-C6sNEHK5.js} +120 -120
- package/dist/{ClosingTemplateView-CFVINyCr.js → ClosingTemplateView-5k8R-fMI.js} +285 -285
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DclFOxv5.js} +37 -37
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BFqAE1ZI.js} +32 -32
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DwAyTAFy.js} +1 -1
- package/dist/{IngredientGroupView-Vz6XV_-q.js → IngredientGroupView-DAeurvqt.js} +1 -1
- package/dist/{IngredientsView-D1lmg_97.js → IngredientsView-Ca8fShPE.js} +4 -4
- package/dist/{IntegrationView-CfDmLYwt.js → IntegrationView-Db4XlQvK.js} +62 -62
- package/dist/{InventoryBindingForm-C68ZfWme.js → InventoryBindingForm-BTtpF1P5.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByJPHKqO.js} +15 -15
- package/dist/{InventoryBindingSummary-DT9cg2b4.js → InventoryBindingSummary-Bb5gN9Bu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D4vUOy_R.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-fFfOjNOU.js} +3 -3
- package/dist/{PublishView-DMzULnCX.js → PublishView-BqE9qfwb.js} +25 -25
- package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-Cp6a-P8I.js} +1 -1
- package/dist/{ReceiveRequestView-DsX41zj-.js → ReceiveRequestView-DKPPCyAU.js} +52 -52
- package/dist/{RecipeView-DlKk9-tm.js → RecipeView-BEsrqzuU.js} +3 -3
- package/dist/{StockView-CNmvVK0V.js → StockView-DplJi2OM.js} +573 -569
- package/dist/{SupplierView-BcoOgM67.js → SupplierView-DL3D84U2.js} +7 -7
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js → TransferDetails.vue_vue_type_script_setup_true_lang-BzFkrRui.js} +120 -120
- package/dist/{TransferTemplateView-BI96LQfP.js → TransferTemplateView-DakAYozL.js} +153 -153
- package/dist/{UnitView-BF2eBWtF.js → UnitView-C_Wqv69Z.js} +3 -3
- package/dist/{WarehouseView-joOR4EsJ.js → WarehouseView-CeoVZ9cs.js} +19 -19
- package/dist/{app-DavuMSpS.js → app-CulzKCFs.js} +6375 -5538
- package/dist/app.d.ts +842 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-C_LJTg2_.js → decimal-DdjfkmJS.js} +1 -1
- package/dist/{feature-D3M-bziy.js → feature-jwErVPVw.js} +1 -1
- package/dist/{format-unit-display-BebmN2s-.js → format-unit-display-BMC3HZ0N.js} +30 -30
- package/dist/helper/number.d.ts +1 -1
- package/dist/{index-DzshvJTA.js → index-BDCZItPF.js} +1 -1
- package/dist/{index-BDEeA1dY.js → index-C7-QVxlo.js} +1 -1
- package/dist/{stock-CHVVTrSI.js → stock-Czw9__W8.js} +1 -1
- package/dist/{supplier-Ddl4sUpm.js → supplier-f0XPCLm-.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Z6bbIKfM.js → use-ingredient-select-dialog-DDeNnPW0.js} +1 -1
- package/dist/{use-inventory-binding-dialog-Dj45RBWc.js → use-inventory-binding-dialog-BTE0Ceov.js} +1 -1
- package/dist/{vue-i18n-Cak3W4nS.js → vue-i18n-B0gOxrrS.js} +153 -153
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as x, 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 B, createCommentVNode as
|
|
2
|
-
import { u as
|
|
1
|
+
import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as x, 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 B, createCommentVNode as k } from "vue";
|
|
2
|
+
import { u as M, a as D, b as H, R as e, g as s, c as W } from "./app-CulzKCFs.js";
|
|
3
3
|
import { useCoreStore as A, useI18n as G } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as L, useRoute as K } from "vue-router";
|
|
5
|
-
import { u as O } from "./feature-
|
|
5
|
+
import { u as O } from "./feature-jwErVPVw.js";
|
|
6
6
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
7
7
|
import { u as Q } from "./googlemap-Dm8ERVai.js";
|
|
8
8
|
import "./array-hChJVZLE.js";
|
|
@@ -41,19 +41,19 @@ const q = {
|
|
|
41
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({
|
|
42
42
|
__name: "InventoryView",
|
|
43
43
|
setup(l) {
|
|
44
|
-
const n =
|
|
44
|
+
const n = M(), i = D(), u = H(), a = A(), m = L(), o = z(), R = O(), { t: d } = G();
|
|
45
45
|
P(
|
|
46
|
-
[() =>
|
|
47
|
-
([t,
|
|
48
|
-
f(t,
|
|
46
|
+
[() => a.sessionUser.value, () => a.currentBusiness.value],
|
|
47
|
+
([t, r]) => {
|
|
48
|
+
f(t, r);
|
|
49
49
|
}
|
|
50
50
|
), x(async () => {
|
|
51
|
-
await R.init(), await
|
|
52
|
-
const t =
|
|
53
|
-
f(t,
|
|
51
|
+
await R.init(), await a.readBusinesses();
|
|
52
|
+
const t = a.sessionUser.value, r = a.currentBusiness.value;
|
|
53
|
+
f(t, r);
|
|
54
54
|
});
|
|
55
|
-
function f(t,
|
|
56
|
-
!t || !
|
|
55
|
+
function f(t, r) {
|
|
56
|
+
!t || !r || T();
|
|
57
57
|
}
|
|
58
58
|
async function T() {
|
|
59
59
|
return await n.init(), await u.readSetting().catch((t) => {
|
|
@@ -61,7 +61,7 @@ const q = {
|
|
|
61
61
|
}), await i.init();
|
|
62
62
|
}
|
|
63
63
|
const y = g(() => m.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
|
|
64
|
-
return (t,
|
|
64
|
+
return (t, r) => {
|
|
65
65
|
const c = b("FmSpacer"), N = b("FmCircularProgress"), C = b("FmButton"), V = b("RouterView");
|
|
66
66
|
return S(), I("div", null, [
|
|
67
67
|
v(o).isLoading ? (S(), I("div", q, [
|
|
@@ -69,9 +69,9 @@ const q = {
|
|
|
69
69
|
p("div", null, [
|
|
70
70
|
_(N, { size: "xl" })
|
|
71
71
|
]),
|
|
72
|
-
|
|
72
|
+
r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
73
73
|
_(c)
|
|
74
|
-
])) : y.value ? v(
|
|
74
|
+
])) : y.value ? v(a).sessionUser.value ? (S(), B(V, { key: 2 })) : k("", !0) : (S(), I("div", J, [
|
|
75
75
|
p("div", X, [
|
|
76
76
|
p("div", Y, w(v(d)("inventory.common.proPlan.title")), 1),
|
|
77
77
|
p("div", Z, w(v(d)("inventory.common.proPlan.subtitle")), 1)
|
|
@@ -94,25 +94,25 @@ const q = {
|
|
|
94
94
|
]);
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
97
|
+
}), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
|
|
98
98
|
__name: "NavigationTab",
|
|
99
99
|
setup(l) {
|
|
100
|
-
const n = K(), i = L(), u = A(),
|
|
101
|
-
P([() => u.currentBusiness.value, () => n.name], ([t,
|
|
102
|
-
(t == null ? void 0 : t.menuVersion) === "v3" && (
|
|
100
|
+
const n = K(), i = L(), u = A(), a = O(), m = $(), { t: o } = G();
|
|
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 });
|
|
103
103
|
});
|
|
104
104
|
const R = g(() => {
|
|
105
|
-
var
|
|
105
|
+
var r;
|
|
106
106
|
const t = [
|
|
107
107
|
{
|
|
108
108
|
label: s(e.STOCK, o),
|
|
109
109
|
// icon: 'inventory_2',
|
|
110
110
|
children: [
|
|
111
111
|
{
|
|
112
|
-
label: "
|
|
112
|
+
label: o("inventory.stock.stock_balance.title"),
|
|
113
113
|
value: e.STOCK
|
|
114
114
|
},
|
|
115
|
-
...
|
|
115
|
+
...a.enableWastageTemplate ? [
|
|
116
116
|
{
|
|
117
117
|
label: s(e.WASTAGE_TEMPLATE, o),
|
|
118
118
|
value: e.WASTAGE_TEMPLATE
|
|
@@ -120,7 +120,7 @@ const q = {
|
|
|
120
120
|
] : []
|
|
121
121
|
]
|
|
122
122
|
},
|
|
123
|
-
...
|
|
123
|
+
...a.enableClosingTemplate ? [
|
|
124
124
|
{
|
|
125
125
|
label: "Closing",
|
|
126
126
|
children: [
|
|
@@ -140,7 +140,7 @@ const q = {
|
|
|
140
140
|
// icon: 'grocery',
|
|
141
141
|
value: e.INGREDIENTS
|
|
142
142
|
},
|
|
143
|
-
...
|
|
143
|
+
...a.enableIngredientGroup ? [
|
|
144
144
|
{
|
|
145
145
|
label: s(e.INGREDIENT_GROUP, o),
|
|
146
146
|
// icon: 'grocery',
|
|
@@ -169,7 +169,7 @@ const q = {
|
|
|
169
169
|
label: s(e.APPROVAL, o),
|
|
170
170
|
value: e.APPROVAL
|
|
171
171
|
},
|
|
172
|
-
...
|
|
172
|
+
...a.enablePoTemplate ? [
|
|
173
173
|
{
|
|
174
174
|
label: s(e.TRANSFER_TEMPLATE, o),
|
|
175
175
|
value: e.TRANSFER_TEMPLATE
|
|
@@ -197,7 +197,7 @@ const q = {
|
|
|
197
197
|
value: e.INTEGRATION
|
|
198
198
|
}
|
|
199
199
|
];
|
|
200
|
-
return ((
|
|
200
|
+
return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
|
|
201
201
|
(c) => c.value !== e.INGREDIENTS && c.value !== e.RECIPE && c.value !== e.UNIT && c.value !== e.PUBLISH
|
|
202
202
|
) : t;
|
|
203
203
|
}), d = g({
|
|
@@ -225,12 +225,12 @@ const q = {
|
|
|
225
225
|
T.value = !1, setTimeout(() => {
|
|
226
226
|
y.value = !m.getItem(f.value);
|
|
227
227
|
}, 2e3);
|
|
228
|
-
}), (t,
|
|
228
|
+
}), (t, r) => {
|
|
229
229
|
const c = b("FmCollapsibleTabs");
|
|
230
|
-
return S(), I("div",
|
|
230
|
+
return S(), I("div", re, [
|
|
231
231
|
_(c, {
|
|
232
232
|
modelValue: d.value,
|
|
233
|
-
"onUpdate:modelValue":
|
|
233
|
+
"onUpdate:modelValue": r[0] || (r[0] = (N) => d.value = N),
|
|
234
234
|
items: R.value
|
|
235
235
|
}, null, 8, ["modelValue", "items"])
|
|
236
236
|
]);
|
|
@@ -239,8 +239,8 @@ const q = {
|
|
|
239
239
|
});
|
|
240
240
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
241
241
|
let l, n;
|
|
242
|
-
return { promise: new Promise((u,
|
|
243
|
-
l = u, n =
|
|
242
|
+
return { promise: new Promise((u, a) => {
|
|
243
|
+
l = u, n = a;
|
|
244
244
|
}), resolve: l, reject: n };
|
|
245
245
|
});
|
|
246
246
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
@@ -255,13 +255,13 @@ const fe = /* @__PURE__ */ h({
|
|
|
255
255
|
n.setEmbedded(!0);
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
|
-
n.registerSidebarComponent(
|
|
258
|
+
n.registerSidebarComponent(ae), i.initGoogleMap(u.appApi.googleMap).catch(() => {
|
|
259
259
|
console.error("Google map cannot be loaded");
|
|
260
260
|
});
|
|
261
261
|
}), P([() => n.currentCountry.value], () => {
|
|
262
|
-
|
|
262
|
+
a();
|
|
263
263
|
});
|
|
264
|
-
async function
|
|
264
|
+
async function a() {
|
|
265
265
|
var m;
|
|
266
266
|
try {
|
|
267
267
|
await n.readBusinesses(), n.currentBusiness.value = (m = n.businesses.value) == null ? void 0 : m.find((o) => o);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as
|
|
2
|
-
import { u as de,
|
|
3
|
-
import { a as ge, P as O, b as be, _ as
|
|
4
|
-
import { useBreakpoints as
|
|
1
|
+
import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as y, createBlock as K, unref as e, withCtx as x, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
|
|
2
|
+
import { u as de, aA as _, aL as fe, ac as Q, z as _e, _ as ve, B as he, C as De, E as v } from "./app-CulzKCFs.js";
|
|
3
|
+
import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BzFkrRui.js";
|
|
4
|
+
import { useBreakpoints as xe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Oe } from "@feedmepos/mf-common";
|
|
6
6
|
const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ce = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
9
|
}, Se = { class: "pt-8" }, $e = /* @__PURE__ */ oe({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
|
-
setup(
|
|
11
|
+
setup(Ae) {
|
|
12
12
|
const o = ge(O.APPROVAL), { columnDefs: W } = be(O.APPROVAL, o), X = de();
|
|
13
13
|
_.object({
|
|
14
14
|
name: _.string().optional().nullable(),
|
|
@@ -35,9 +35,9 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const h = g(""), { breakpoints: w } =
|
|
38
|
+
const h = g(""), { breakpoints: w } = xe(), D = b(() => w.value.xs || w.value.sm), Z = b(() => D.value ? 10 : 20), B = _e(), { t: P } = Oe(), I = b(() => [
|
|
39
39
|
{
|
|
40
|
-
label: P("common.refresh"),
|
|
40
|
+
label: P("inventory.common.refresh"),
|
|
41
41
|
value: "refresh"
|
|
42
42
|
}
|
|
43
43
|
]);
|
|
@@ -49,12 +49,12 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
49
49
|
}
|
|
50
50
|
return (c, l) => {
|
|
51
51
|
const te = ne("FmTable");
|
|
52
|
-
return
|
|
52
|
+
return y(), K(ve, {
|
|
53
53
|
title: e(P)("inventory.transfer.approval.title"),
|
|
54
54
|
actions: I.value,
|
|
55
55
|
"onClick:action": ee
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
57
|
+
default: x(() => [
|
|
58
58
|
s("div", {
|
|
59
59
|
class: se([
|
|
60
60
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -82,29 +82,29 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
82
82
|
)),
|
|
83
83
|
"page-size": Z.value
|
|
84
84
|
}, {
|
|
85
|
-
"list-row":
|
|
85
|
+
"list-row": x((r) => [
|
|
86
86
|
n(De, {
|
|
87
87
|
row: r,
|
|
88
88
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
89
89
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
var k, C, S, i,
|
|
90
|
+
default: x((t) => {
|
|
91
|
+
var k, C, S, i, A, T, L, V, u, z, M, p, $, m, E, F, Y, q, N, d, j, H, U, G, f, J;
|
|
92
92
|
return [
|
|
93
93
|
s("div", Re, [
|
|
94
94
|
s("div", we, [
|
|
95
95
|
n(e(v), {
|
|
96
96
|
render: (S = (C = (k = t.purchaseOrder__id) == null ? void 0 : k.column) == null ? void 0 : C.columnDef) == null ? void 0 : S.cell,
|
|
97
|
-
props: (
|
|
97
|
+
props: (A = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : A.call(i)
|
|
98
98
|
}, null, 8, ["render", "props"])
|
|
99
99
|
]),
|
|
100
100
|
s("div", Pe, [
|
|
101
101
|
n(e(v), {
|
|
102
|
-
render: (V = (
|
|
103
|
-
props: (
|
|
102
|
+
render: (V = (L = (T = t.to_name) == null ? void 0 : T.column) == null ? void 0 : L.columnDef) == null ? void 0 : V.cell,
|
|
103
|
+
props: (z = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : z.call(u)
|
|
104
104
|
}, null, 8, ["render", "props"])
|
|
105
105
|
]),
|
|
106
106
|
s("div", ke, ce((E = (m = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (ae) => `${ae.name}`)) == null ? void 0 : m.join) == null ? void 0 : E.call(m, ", ")), 1),
|
|
107
|
-
(F = r.original.purchaseOrder) != null && F.ref ? (
|
|
107
|
+
(F = r.original.purchaseOrder) != null && F.ref ? (y(), ie("div", Ce, [
|
|
108
108
|
n(e(v), {
|
|
109
109
|
render: (N = (q = (Y = t.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : q.columnDef) == null ? void 0 : N.cell,
|
|
110
110
|
props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
|
|
@@ -112,8 +112,8 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
112
112
|
])) : ue("", !0),
|
|
113
113
|
s("div", Se, [
|
|
114
114
|
n(e(v), {
|
|
115
|
-
render: (
|
|
116
|
-
props: (
|
|
115
|
+
render: (G = (U = (H = t.purchaseOrder_status) == null ? void 0 : H.column) == null ? void 0 : U.columnDef) == null ? void 0 : G.cell,
|
|
116
|
+
props: (J = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : J.call(f)
|
|
117
117
|
}, null, 8, ["render", "props"])
|
|
118
118
|
])
|
|
119
119
|
])
|
|
@@ -125,8 +125,8 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
|
|
|
125
125
|
_: 1
|
|
126
126
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
127
127
|
], 2),
|
|
128
|
-
(
|
|
129
|
-
n(
|
|
128
|
+
(y(), K(pe, { to: "body" }, [
|
|
129
|
+
n(ye, me({
|
|
130
130
|
scope: e(O).APPROVAL
|
|
131
131
|
}, e(o).transferDetailsProps.value, {
|
|
132
132
|
onSubmitted: e(o).fetchData
|
|
@@ -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
|
|
3
|
-
import { a as
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByJPHKqO.js";
|
|
3
|
+
import { a as L, aT as S } from "./app-CulzKCFs.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -10,7 +10,7 @@ const U = {
|
|
|
10
10
|
}, D = /* @__PURE__ */ C({
|
|
11
11
|
__name: "BindingsDialog",
|
|
12
12
|
setup(N) {
|
|
13
|
-
const p =
|
|
13
|
+
const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(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;
|
|
@@ -64,7 +64,7 @@ const U = {
|
|
|
64
64
|
class: "flex flex-col gap-16"
|
|
65
65
|
}, {
|
|
66
66
|
default: R(() => [
|
|
67
|
-
a(
|
|
67
|
+
a(V, {
|
|
68
68
|
"model-value": s.value,
|
|
69
69
|
"onUpdate:modelValue": n[0] || (n[0] = (w) => s.value = w),
|
|
70
70
|
"iframe-mode": "",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as M,
|
|
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, aT as x, H as z } from "./app-CulzKCFs.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
|
-
}, H = /* @__PURE__ */
|
|
9
|
+
}, H = /* @__PURE__ */ S({
|
|
10
10
|
__name: "BindingsPicker",
|
|
11
11
|
setup(L) {
|
|
12
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) => ({
|
|
@@ -71,10 +71,10 @@ 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();
|
|
@@ -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
|
]))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
|
|
2
|
-
import { F as v, a as E,
|
|
2
|
+
import { F as v, a as E, aT as F } from "./app-CulzKCFs.js";
|
|
3
3
|
import { components as L } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|