@feedmepos/mf-inventory-portal 0.0.25-dev.5 → 0.0.25-dev.51
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-Kq8apMtA.js → App-Bf7Ef5j4.js} +29 -28
- package/dist/ApprovalView-CTKJY1vM.js +143 -0
- package/dist/{BindingsDialog-DOXckftj.js → BindingsDialog-Cb7aRRNk.js} +6 -6
- package/dist/{BindingsPicker-Cm5vh_SU.js → BindingsPicker-DOI78hCt.js} +3 -3
- package/dist/{BindingsTable-CqIY16hU.js → BindingsTable-CZE4g-lw.js} +6 -6
- package/dist/ClosingDraftView-ChjnuJSG.js +1348 -0
- package/dist/ClosingTemplateView-gSQqeQ_q.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-BMFxe5xn.js +211 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-0Kw57u62.js → FmUnitInput.vue_vue_type_script_setup_true_lang-PmKyuRhO.js} +31 -31
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-CnRG4x74.js +51 -0
- package/dist/{IngredientGroupView-CLmsjrp8.js → IngredientGroupView-CaF4rmHy.js} +14 -14
- package/dist/{IngredientsView-T5S1322D.js → IngredientsView-CX_MSjT3.js} +577 -551
- package/dist/{IntegrationView-DLLrgrr9.js → IntegrationView-BRkcILmI.js} +681 -710
- package/dist/{InventoryBindingForm-BCPZcNwR.js → InventoryBindingForm-BK7OBXJt.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DY96hhyi.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D81eO5Mu.js} +98 -98
- package/dist/{InventoryBindingSummary-CpCsz_Xc.js → InventoryBindingSummary-B3m-PoE-.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CP5yNARW.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DsTKgxFv.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cow0sp-k.js → PremiumBadge.vue_vue_type_script_setup_true_lang-8Sa_WUWa.js} +17 -17
- package/dist/PublishView-DZR7-XFd.js +222 -0
- package/dist/{PurchaseOrderPrintPreview-DQ8GaxvA.js → PurchaseOrderPrintPreview-BT5Khjs6.js} +1 -1
- package/dist/ReceiveRequestView-3nhyFqXE.js +2579 -0
- package/dist/{RecipeView-CROffYxl.js → RecipeView-R-lqVFmh.js} +47 -46
- package/dist/{index-B2ISFLHY.js → StockView-Did7vk97.js} +3601 -1764
- package/dist/{SupplierView-DUFTtK7r.js → SupplierView-BGHR6LD2.js} +446 -457
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-vjDgXu5D.js +1605 -0
- package/dist/TransferTemplateView-Dh1iZbPZ.js +1526 -0
- package/dist/{UnitView-B4jcaZF4.js → UnitView-DE9WIvA-.js} +14 -14
- package/dist/{WarehouseView-BmZtdMZU.js → WarehouseView-CgurMkHh.js} +332 -314
- package/dist/api/closing-draft.d.ts +1 -0
- package/dist/api/inventory.d.ts +9 -6
- package/dist/api/netsuite.d.ts +22 -5
- package/dist/api/purchase-order.d.ts +7 -1
- package/dist/api/stock.d.ts +1 -0
- package/dist/app-BoT0hU4y.js +88112 -0
- 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/FmLockableField.vue.d.ts +3 -0
- package/dist/components/FmMultiselectDialog.d.ts +23 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +9 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
- 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-T4Ng3pLP.js → decimal-CpTYRDjJ.js} +1 -1
- package/dist/feature-CW1D96VL.js +1015 -0
- package/dist/{format-unit-display-D6tf1DHa.js → format-unit-display-D6lsq-iX.js} +337 -330
- package/dist/helper/country.d.ts +1 -0
- package/dist/helper/fuzzy.d.ts +10 -0
- package/dist/helper/number.d.ts +1 -1
- package/dist/index-TqOHI1Dk.js +12197 -0
- package/dist/index-tTGOQaym.js +77 -0
- package/dist/{stock-CmZXXh6b.js → stock-Cnh2comB.js} +29 -25
- package/dist/stores/feature.d.ts +7 -5
- package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
- package/dist/stores/integration/index.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +22 -5
- package/dist/stores/inventory.d.ts +141 -8
- package/dist/stores/location.d.ts +9 -0
- package/dist/stores/stock.d.ts +5 -0
- package/dist/stores/warehouse.d.ts +5 -7
- package/dist/style.css +1 -1
- package/dist/{supplier-BVsAD8Ou.js → supplier-BY8xacQQ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-ingredient-select-dialog-BwbzsMlI.js +51 -0
- package/dist/{use-inventory-binding-dialog-CqrrqmB7.js → use-inventory-binding-dialog-3srettA-.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-actions.d.ts +4 -1
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
- 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-select-dialog.d.ts +16 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +427 -31
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +8 -4
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +7 -4
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +18 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +867 -68
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +678 -70
- package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
- package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
- package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
- package/dist/views/receive-request/import/export.d.ts +12 -0
- package/dist/views/receive-request/import/props.d.ts +7 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
- 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 +10 -5
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +72 -24
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +72 -24
- package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +10 -14
- package/dist/{vue-i18n-Mb3AM8uP.js → vue-i18n-C9tRTjjd.js} +312 -312
- package/package.json +4 -4
- package/dist/ApprovalView-DXlXet32.js +0 -138
- package/dist/ClosingDraftView-CABY9YVF.js +0 -1225
- package/dist/ClosingTemplateView-Bsd6W6id.js +0 -1819
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-d-Qy7I_I.js +0 -142
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXjO-PL0.js +0 -286
- package/dist/PublishView-BQ9pqu-S.js +0 -192
- package/dist/ReceiveRequestView-Cj1g6ZzI.js +0 -1876
- package/dist/StockView-D_XXAmSl.js +0 -1817
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BLADqDM9.js +0 -1327
- package/dist/TransferTemplateView-Dy2nZRCc.js +0 -1284
- package/dist/app-DcBKHZIR.js +0 -85643
- package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
- package/dist/index-Cxi2NbBg.js +0 -29202
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as k, a as D, b as H, R as e,
|
|
3
|
-
import { useCoreStore as A, useI18n as
|
|
4
|
-
import { useRouter 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 M } from "vue";
|
|
2
|
+
import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-BoT0hU4y.js";
|
|
3
|
+
import { useCoreStore as A, useI18n as G } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as L, useRoute as K } from "vue-router";
|
|
5
|
+
import { u as O } from "./feature-CW1D96VL.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";
|
|
@@ -11,9 +12,9 @@ function j() {
|
|
|
11
12
|
isLoading: !1
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
|
-
const E =
|
|
15
|
+
const E = U(j());
|
|
15
16
|
function z() {
|
|
16
|
-
const l =
|
|
17
|
+
const l = L();
|
|
17
18
|
if (!E.value.loadingHookInstalled) {
|
|
18
19
|
E.value.loadingHookInstalled = !0;
|
|
19
20
|
const n = l.beforeEach(() => {
|
|
@@ -40,13 +41,13 @@ 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(), r = A(),
|
|
44
|
+
const n = k(), i = D(), u = H(), r = A(), m = L(), o = z(), R = O(), { t: d } = G();
|
|
44
45
|
P(
|
|
45
46
|
[() => r.sessionUser.value, () => r.currentBusiness.value],
|
|
46
47
|
([t, a]) => {
|
|
47
48
|
f(t, a);
|
|
48
49
|
}
|
|
49
|
-
),
|
|
50
|
+
), x(async () => {
|
|
50
51
|
await R.init(), await r.readBusinesses();
|
|
51
52
|
const t = r.sessionUser.value, a = r.currentBusiness.value;
|
|
52
53
|
f(t, a);
|
|
@@ -59,31 +60,31 @@ const q = {
|
|
|
59
60
|
console.error("error on reading netsuite store", t);
|
|
60
61
|
}), await i.init();
|
|
61
62
|
}
|
|
62
|
-
const y = g(() =>
|
|
63
|
+
const y = g(() => m.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
|
|
63
64
|
return (t, a) => {
|
|
64
|
-
const
|
|
65
|
+
const c = b("FmSpacer"), N = b("FmCircularProgress"), C = b("FmButton"), V = b("RouterView");
|
|
65
66
|
return S(), I("div", null, [
|
|
66
67
|
v(o).isLoading ? (S(), I("div", q, [
|
|
67
|
-
_(
|
|
68
|
+
_(c),
|
|
68
69
|
p("div", null, [
|
|
69
70
|
_(N, { size: "xl" })
|
|
70
71
|
]),
|
|
71
72
|
a[0] || (a[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
72
|
-
_(
|
|
73
|
-
])) : y.value ? v(r).sessionUser.value ? (S(),
|
|
73
|
+
_(c)
|
|
74
|
+
])) : y.value ? v(r).sessionUser.value ? (S(), B(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)
|
|
77
78
|
]),
|
|
78
79
|
p("div", ee, [
|
|
79
80
|
p("a", te, [
|
|
80
|
-
_(
|
|
81
|
+
_(C, {
|
|
81
82
|
label: v(d)("inventory.common.proPlan.comparePlans"),
|
|
82
83
|
variant: "secondary"
|
|
83
84
|
}, null, 8, ["label"])
|
|
84
85
|
]),
|
|
85
86
|
p("a", oe, [
|
|
86
|
-
_(
|
|
87
|
+
_(C, {
|
|
87
88
|
label: v(d)("inventory.common.proPlan.callUs"),
|
|
88
89
|
"prepend-icon": "call"
|
|
89
90
|
}, null, 8, ["label"])
|
|
@@ -96,7 +97,7 @@ const q = {
|
|
|
96
97
|
}), ae = { class: "h-full flex flex-col overflow-auto py-16" }, re = /* @__PURE__ */ h({
|
|
97
98
|
__name: "NavigationTab",
|
|
98
99
|
setup(l) {
|
|
99
|
-
const n = K(), i =
|
|
100
|
+
const n = K(), i = L(), u = A(), r = O(), m = $(), { t: o } = G();
|
|
100
101
|
P([() => u.currentBusiness.value, () => n.name], ([t, a]) => {
|
|
101
102
|
(t == null ? void 0 : t.menuVersion) === "v3" && (a === e.INGREDIENTS || a === e.RECIPE || a === e.UNIT) && i.push({ name: e.STOCK });
|
|
102
103
|
});
|
|
@@ -197,7 +198,7 @@ const q = {
|
|
|
197
198
|
}
|
|
198
199
|
];
|
|
199
200
|
return ((a = u.currentBusiness.value) == null ? void 0 : a.menuVersion) === "v3" ? t.filter(
|
|
200
|
-
(
|
|
201
|
+
(c) => c.value !== e.INGREDIENTS && c.value !== e.RECIPE && c.value !== e.UNIT && c.value !== e.PUBLISH
|
|
201
202
|
) : t;
|
|
202
203
|
}), d = g({
|
|
203
204
|
get() {
|
|
@@ -212,22 +213,22 @@ const q = {
|
|
|
212
213
|
var t;
|
|
213
214
|
return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
|
|
214
215
|
}
|
|
215
|
-
), T =
|
|
216
|
+
), T = U(!1), y = g({
|
|
216
217
|
get() {
|
|
217
218
|
return T.value;
|
|
218
219
|
},
|
|
219
220
|
set(t) {
|
|
220
|
-
T.value = t, t ||
|
|
221
|
+
T.value = t, t || m.setItem(f.value, "true");
|
|
221
222
|
}
|
|
222
223
|
});
|
|
223
224
|
return P([() => f.value], () => {
|
|
224
225
|
T.value = !1, setTimeout(() => {
|
|
225
|
-
y.value = !
|
|
226
|
+
y.value = !m.getItem(f.value);
|
|
226
227
|
}, 2e3);
|
|
227
228
|
}), (t, a) => {
|
|
228
|
-
const
|
|
229
|
+
const c = b("FmCollapsibleTabs");
|
|
229
230
|
return S(), I("div", ae, [
|
|
230
|
-
_(
|
|
231
|
+
_(c, {
|
|
231
232
|
modelValue: d.value,
|
|
232
233
|
"onUpdate:modelValue": a[0] || (a[0] = (N) => d.value = N),
|
|
233
234
|
items: R.value
|
|
@@ -245,11 +246,11 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
|
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();
|
|
252
|
-
|
|
253
|
+
x(() => {
|
|
253
254
|
if (window.location.href.includes("print-preview")) {
|
|
254
255
|
n.setEmbedded(!0);
|
|
255
256
|
return;
|
|
@@ -261,16 +262,16 @@ const de = /* @__PURE__ */ h({
|
|
|
261
262
|
r();
|
|
262
263
|
});
|
|
263
264
|
async function r() {
|
|
264
|
-
var
|
|
265
|
+
var m;
|
|
265
266
|
try {
|
|
266
|
-
await n.readBusinesses(), n.currentBusiness.value = (
|
|
267
|
+
await n.readBusinesses(), n.currentBusiness.value = (m = n.businesses.value) == null ? void 0 : m.find((o) => o);
|
|
267
268
|
} catch (o) {
|
|
268
269
|
console.error("error when trying to reset businesses:", o);
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
|
-
return (
|
|
272
|
+
return (m, o) => (S(), B(ne));
|
|
272
273
|
}
|
|
273
274
|
});
|
|
274
275
|
export {
|
|
275
|
-
|
|
276
|
+
fe as default
|
|
276
277
|
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as x, createBlock as K, unref as e, withCtx as y, 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-BoT0hU4y.js";
|
|
3
|
+
import { a as ge, P as O, b as be, _ as xe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-vjDgXu5D.js";
|
|
4
|
+
import { useBreakpoints as ye } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as Oe } from "@feedmepos/mf-common";
|
|
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
|
+
key: 0,
|
|
8
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
|
+
}, Se = { class: "pt-8" }, $e = /* @__PURE__ */ oe({
|
|
10
|
+
__name: "ApprovalView",
|
|
11
|
+
setup(Ae) {
|
|
12
|
+
const o = ge(O.APPROVAL), { columnDefs: W } = be(O.APPROVAL, o), X = de();
|
|
13
|
+
_.object({
|
|
14
|
+
name: _.string().optional().nullable(),
|
|
15
|
+
start: _.date().optional().nullable(),
|
|
16
|
+
end: _.date().optional().nullable()
|
|
17
|
+
});
|
|
18
|
+
const R = g({
|
|
19
|
+
name: "",
|
|
20
|
+
...fe()
|
|
21
|
+
}), a = g({
|
|
22
|
+
startDate: Q(R.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
|
+
endDate: Q(R.value.end ?? /* @__PURE__ */ new Date())
|
|
24
|
+
});
|
|
25
|
+
re([() => a.value.startDate], () => {
|
|
26
|
+
if (!a.value.startDate)
|
|
27
|
+
return;
|
|
28
|
+
if (!a.value.endDate) {
|
|
29
|
+
a.value.endDate = a.value.startDate;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const c = new Date(a.value.startDate);
|
|
33
|
+
if (new Date(a.value.endDate).getTime() < c.getTime()) {
|
|
34
|
+
a.value.endDate = a.value.startDate;
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const h = g(""), { breakpoints: w } = ye(), D = b(() => w.value.xs || w.value.sm), Z = b(() => D.value ? 10 : 20), B = _e(), { t: P } = Oe(), I = b(() => [
|
|
39
|
+
{
|
|
40
|
+
label: P("common.refresh"),
|
|
41
|
+
value: "refresh"
|
|
42
|
+
}
|
|
43
|
+
]);
|
|
44
|
+
function ee(c) {
|
|
45
|
+
switch (c) {
|
|
46
|
+
case "refresh":
|
|
47
|
+
return o.fetchData();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return (c, l) => {
|
|
51
|
+
const te = ne("FmTable");
|
|
52
|
+
return x(), K(ve, {
|
|
53
|
+
title: e(P)("inventory.transfer.approval.title"),
|
|
54
|
+
actions: I.value,
|
|
55
|
+
"onClick:action": ee
|
|
56
|
+
}, {
|
|
57
|
+
default: y(() => [
|
|
58
|
+
s("div", {
|
|
59
|
+
class: se([
|
|
60
|
+
"flex flex-col gap-8 max-h-full",
|
|
61
|
+
{
|
|
62
|
+
"p-0": D.value,
|
|
63
|
+
"px-24 ": !D.value
|
|
64
|
+
}
|
|
65
|
+
])
|
|
66
|
+
}, [
|
|
67
|
+
n(he, {
|
|
68
|
+
searchable: "",
|
|
69
|
+
"change-location": "",
|
|
70
|
+
search: h.value,
|
|
71
|
+
"onUpdate:search": l[0] || (l[0] = (r) => h.value = r)
|
|
72
|
+
}, null, 8, ["search"]),
|
|
73
|
+
n(te, {
|
|
74
|
+
style: le(e(B).tableHeight),
|
|
75
|
+
"column-defs": e(W),
|
|
76
|
+
"row-data": e(o).purchaseRequests.value,
|
|
77
|
+
"search-value": h.value,
|
|
78
|
+
loading: !e(X)._currentLocation || e(o).loading.value,
|
|
79
|
+
onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(
|
|
80
|
+
r.original.purchaseOrder,
|
|
81
|
+
r.original
|
|
82
|
+
)),
|
|
83
|
+
"page-size": Z.value
|
|
84
|
+
}, {
|
|
85
|
+
"list-row": y((r) => [
|
|
86
|
+
n(De, {
|
|
87
|
+
row: r,
|
|
88
|
+
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
89
|
+
}, {
|
|
90
|
+
default: y((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
|
+
return [
|
|
93
|
+
s("div", Re, [
|
|
94
|
+
s("div", we, [
|
|
95
|
+
n(e(v), {
|
|
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: (A = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : A.call(i)
|
|
98
|
+
}, null, 8, ["render", "props"])
|
|
99
|
+
]),
|
|
100
|
+
s("div", Pe, [
|
|
101
|
+
n(e(v), {
|
|
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
|
+
}, null, 8, ["render", "props"])
|
|
105
|
+
]),
|
|
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 ? (x(), ie("div", Ce, [
|
|
108
|
+
n(e(v), {
|
|
109
|
+
render: (N = (q = (Y = t.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : q.columnDef) == null ? void 0 : N.cell,
|
|
110
|
+
props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
|
|
111
|
+
}, null, 8, ["render", "props"])
|
|
112
|
+
])) : ue("", !0),
|
|
113
|
+
s("div", Se, [
|
|
114
|
+
n(e(v), {
|
|
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
|
+
}, null, 8, ["render", "props"])
|
|
118
|
+
])
|
|
119
|
+
])
|
|
120
|
+
];
|
|
121
|
+
}),
|
|
122
|
+
_: 2
|
|
123
|
+
}, 1032, ["row", "onRowClick"])
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
127
|
+
], 2),
|
|
128
|
+
(x(), K(pe, { to: "body" }, [
|
|
129
|
+
n(xe, me({
|
|
130
|
+
scope: e(O).APPROVAL
|
|
131
|
+
}, e(o).transferDetailsProps.value, {
|
|
132
|
+
onSubmitted: e(o).fetchData
|
|
133
|
+
}), null, 16, ["scope", "onSubmitted"])
|
|
134
|
+
]))
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, ["title", "actions"]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
export {
|
|
142
|
+
$e as default
|
|
143
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as
|
|
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-D81eO5Mu.js";
|
|
3
|
+
import { a as L, aT as S } from "./app-BoT0hU4y.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;
|
|
@@ -55,7 +55,7 @@ const U = {
|
|
|
55
55
|
}, [
|
|
56
56
|
d.value ? (i(), c("div", E, [
|
|
57
57
|
a(h, { size: "md" }),
|
|
58
|
-
n[2] || (n[2] =
|
|
58
|
+
n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
|
|
59
59
|
])) : (i(), I(B, {
|
|
60
60
|
key: 0,
|
|
61
61
|
onValidationSuccess: n[1] || (n[1] = () => r.value ? void 0 : b()),
|
|
@@ -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
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,
|
|
2
|
+
import { a as M, aT as x, H as z } from "./app-BoT0hU4y.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
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) => ({
|
|
@@ -119,5 +119,5 @@ const F = {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
H as default
|
|
123
123
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { components as
|
|
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, aT as F } from "./app-BoT0hU4y.js";
|
|
3
|
+
import { components as L } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ _({
|
|
6
6
|
__name: "binding-ui",
|
|
@@ -64,7 +64,7 @@ const P = /* @__PURE__ */ _({
|
|
|
64
64
|
size: 24,
|
|
65
65
|
cell(i) {
|
|
66
66
|
const e = a.value.find((n) => n.key === i.row.original.key);
|
|
67
|
-
return z(
|
|
67
|
+
return z(L.FmButton, {
|
|
68
68
|
icon: "edit",
|
|
69
69
|
bgColor: "white",
|
|
70
70
|
textColor: "neutral-grey-400",
|
|
@@ -93,7 +93,7 @@ const P = /* @__PURE__ */ _({
|
|
|
93
93
|
}, D = /* @__PURE__ */ _({
|
|
94
94
|
__name: "BindingsTable",
|
|
95
95
|
setup(k) {
|
|
96
|
-
const d =
|
|
96
|
+
const d = E(), u = c(!0), o = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
|
|
97
97
|
async function n() {
|
|
98
98
|
await d.readInventory(), e.value = i.onMessage(
|
|
99
99
|
"props:grouped-bindings",
|
|
@@ -126,7 +126,7 @@ const P = /* @__PURE__ */ _({
|
|
|
126
126
|
}, [
|
|
127
127
|
u.value ? (p(), y("div", R, [
|
|
128
128
|
N(w, { size: "md" }),
|
|
129
|
-
r[0] || (r[0] =
|
|
129
|
+
r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
|
|
130
130
|
])) : (p(), h(P, {
|
|
131
131
|
key: 0,
|
|
132
132
|
items: o.value,
|