@feedmepos/mf-inventory-portal 1.2.63-dev.1 → 1.2.63
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-BHssUobV.js → App-W35c1JM6.js} +78 -82
- package/dist/{ApprovalView-DRGCQeGY.js → ApprovalView-qZaYBUOw.js} +5 -5
- package/dist/{BindingsDialog-CWl3LpdO.js → BindingsDialog-Bgvqj142.js} +5 -5
- package/dist/{BindingsPicker-BcASw3JJ.js → BindingsPicker-BlUUKBUF.js} +3 -3
- package/dist/{BindingsTable-BiKiLiVY.js → BindingsTable-Bb2CUGOE.js} +5 -5
- package/dist/{ClosingDraftView-mh5Kw46x.js → ClosingDraftView-BgIB7VGF.js} +216 -217
- package/dist/{ClosingHistoryView-C-ZrFei9.js → ClosingHistoryView-BNrhBSY1.js} +36 -36
- package/dist/{ClosingTemplateView-DBNRH0Tt.js → ClosingTemplateView-BHexv7IS.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-Dv3JZ3yr.js → DeliveryOrderPrintPreview-b6HAqBJ3.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CfL1adhx.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMZ6uK2r.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Db0JeXbc.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DTN2FDK5.js} +2 -2
- package/dist/{FmMultiselectDialog-DuYKQng9.js → FmMultiselectDialog-BRhLiA42.js} +16 -16
- package/dist/{FmMultiselectDialog-D9g07F_c.js → FmMultiselectDialog-ClPRjx_J.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CeXRT7Lf.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D6jUtx5F.js} +22 -23
- package/dist/{ImportView-DoMyJ1NE.js → ImportView-D0oguV-P.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CqJQcOBK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-05HRp0Rw.js} +1 -1
- package/dist/{IngredientGroupView-D_Cl4kJy.js → IngredientGroupView-C8qcgsqS.js} +5 -5
- package/dist/{IngredientsView-CG6wUGzt.js → IngredientsView-DZLBIxnp.js} +24 -25
- package/dist/{IntegrationView-BIWPp1JH.js → IntegrationView-DoLRBfXS.js} +17 -18
- package/dist/{InventoryBindingForm-BrL6-2He.js → InventoryBindingForm-Ddc2xNun.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-M3uVquEq.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drnfo6QF.js} +16 -17
- package/dist/{InventoryBindingSummary-mnlQU1Mp.js → InventoryBindingSummary-C9G9UNHE.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByPOKZRm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-2ZqPDQ.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DHwXNoTs.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CCFfnd1y.js} +2 -2
- package/dist/{PublishView-B4iVMq25.js → PublishView-CA0ndWK1.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-ws-SKrEC.js → PurchaseOrderPrintPreview-C0fSwRzh.js} +11 -11
- package/dist/{ReceiveRequestView-deSiORNX.js → ReceiveRequestView-7LQVLMw_.js} +142 -143
- package/dist/RecipeView-C970Tbje.js +646 -0
- package/dist/{StockView-6j_t2Kf1.js → StockView-DMFw_TH_.js} +105 -106
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CgAMsW8n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnBRHve2.js} +1 -1
- package/dist/{SupplierView-D5tSOECx.js → SupplierView-BgwlWXfk.js} +19 -20
- package/dist/{SurchargeView-CP81Q4dW.js → SurchargeView-Cg6fbAF-.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bmuw4PTO.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-B65wyG1T.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D1FuB-kv.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-jjtyBmso.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Canrz2ri.js → TransferDetails.vue_vue_type_script_setup_true_lang-Gi-bL9hh.js} +124 -124
- package/dist/{TransferTemplateView-CRI_Lexa.js → TransferTemplateView-B54hUzme.js} +21 -22
- package/dist/{UnitView-BZmfd-aw.js → UnitView-DOfJbxkC.js} +10 -11
- package/dist/{WarehouseView-BcmSyjA0.js → WarehouseView-x7UBmz1U.js} +5 -5
- package/dist/{WastageTemplateView-CNsdu0ga.js → WastageTemplateView-DyAlJgfd.js} +14 -14
- package/dist/api/inventory.d.ts +36 -126
- package/dist/api/netsuite.d.ts +1 -8
- package/dist/{app-ayv5Jw7D.js → app-CA2Cny0i.js} +7036 -8041
- package/dist/app.d.ts +0 -228
- package/dist/app.js +1 -1
- package/dist/{closing-template-D9UR8sMo.js → closing-template-DTv1fwBu.js} +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -37
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +0 -14
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -16
- package/dist/{date2-GNP-79dA.js → date2-Cp4YfWcb.js} +1 -1
- package/dist/{dayjs.min-Bg_wgP2J.js → dayjs.min-CgirzsHV.js} +16 -16
- package/dist/{defineDeepModel-Co03tZfS.js → defineDeepModel-D9OlXcS_.js} +1 -1
- package/dist/{duplicate-template-BiPU4Z2Y.js → duplicate-template-DyCBVMov.js} +1 -1
- package/dist/{feature-BGeFfaiX.js → feature-BxsRwVch.js} +89 -94
- package/dist/{format-time-from-id-ByV0VX1x.js → format-time-from-id-BusUCMUA.js} +1 -1
- package/dist/{format-unit-display-r1Hb4DfH.js → format-unit-display-BvtbVzxs.js} +15 -16
- package/dist/{import-export.helper-PB9pPO3m.js → import-export.helper-B3Le8F5L.js} +15 -16
- package/dist/{index-DWWlEK_r.js → index-CLSRasCh.js} +1412 -1471
- package/dist/{index-ClbYCYSU.js → index-DzJrZhr1.js} +3 -3
- package/dist/{index-DMqOVOHw.js → index-f9YwK5uk.js} +1 -1
- package/dist/{lodash-BbWPSHMM.js → lodash--YJHqtef.js} +1 -1
- package/dist/{netsuite-VGghPz8h.js → netsuite-CBG_dy7k.js} +92 -92
- package/dist/{purchase-order-template-BMNxJR59.js → purchase-order-template-sK4yLnG5.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/rules-DPShesHe.js +327 -0
- package/dist/{stock-b7nNc6ko.js → stock-iBLjW3Y5.js} +1 -1
- package/dist/stock-q7nfubr2.js +75 -0
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/integration/netsuite.d.ts +1 -8
- package/dist/stores/inventory.d.ts +30 -119
- package/dist/{supplier-Dm-bxVXL.js → supplier-pjh8CQtC.js} +2 -2
- package/dist/{surcharge-ZM-_XIvY.js → surcharge-CN4HYoU0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BYxTRqif.js → use-ingredient-select-dialog-Do34jWZ9.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Dg9Mp0Vk.js → use-inventory-binding-dialog-CH_yEZAR.js} +2 -2
- package/dist/{use-template-enabled-locations-2-BmgcViqJ.js → use-template-enabled-locations-2-DDUlfrLq.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -64
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +24 -192
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -8
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -96
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -96
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +0 -14
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -32
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -28
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -8
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +2 -16
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -33
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -16
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +4 -32
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -41
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -246
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -287
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +0 -16
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +0 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -8
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +3 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +12 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -96
- package/dist/{vue-i18n-BwxQzDKn.js → vue-i18n-CVbjsMxl.js} +538 -538
- package/dist/{xlsx-dJMIfias.js → xlsx-CSeMIpYz.js} +1 -1
- package/dist/{xlsx.util-dclbjq8C.js → xlsx.util-CsYD8XWC.js} +1 -1
- package/package.json +3 -3
- package/dist/RecipeView-EEK7PiKl.js +0 -1558
- package/dist/UnitCostHistoryView-CT-4QDK8.js +0 -651
- package/dist/api/unit-cost-history.d.ts +0 -28
- package/dist/number-DPuTdA-J.js +0 -232
- package/dist/rules-CyF-4tvp.js +0 -98
- package/dist/stock-D1SElOsp.js +0 -75
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -169
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +0 -43
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +0 -25
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +0 -125
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +0 -129
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +0 -30
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -4
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +0 -2
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +0 -19
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +0 -11
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +0 -65
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { ref as B, onUnmounted as D, defineComponent as U, watch as C, onMounted as
|
|
2
|
-
import { u as K, a as
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { u as k } from "./feature-
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
1
|
+
import { ref as B, onUnmounted as D, defineComponent as U, watch as C, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as I, createElementVNode as v, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
|
|
2
|
+
import { u as K, a as $, R as e, m as E, g as r, b as H } from "./app-CA2Cny0i.js";
|
|
3
|
+
import { useCoreStore as w, useI18n as V } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as O, useRoute as j } from "vue-router";
|
|
5
|
+
import { u as k } from "./feature-BxsRwVch.js";
|
|
6
|
+
import { u as z } from "./netsuite-CBG_dy7k.js";
|
|
7
|
+
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
8
|
+
import { u as Y } from "./googlemap-Dm8ERVai.js";
|
|
9
9
|
function q() {
|
|
10
10
|
return {
|
|
11
11
|
loadingHookInstalled: !1,
|
|
12
12
|
isLoading: !1
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const g = B(q());
|
|
16
16
|
function J() {
|
|
17
|
-
const c =
|
|
18
|
-
if (!
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
17
|
+
const c = O();
|
|
18
|
+
if (!g.value.loadingHookInstalled) {
|
|
19
|
+
g.value.loadingHookInstalled = !0;
|
|
20
|
+
const a = c.beforeEach(() => {
|
|
21
|
+
g.value.isLoading = !0;
|
|
22
22
|
}), d = c.afterEach(() => {
|
|
23
|
-
|
|
23
|
+
g.value.isLoading = !1;
|
|
24
24
|
});
|
|
25
25
|
D(() => {
|
|
26
|
-
|
|
26
|
+
g.value.loadingHookInstalled = !1, a(), d();
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
get isLoading() {
|
|
31
|
-
return
|
|
31
|
+
return g.value.isLoading;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -38,16 +38,16 @@ const X = {
|
|
|
38
38
|
}, Z = {
|
|
39
39
|
key: 1,
|
|
40
40
|
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
41
|
-
}, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" },
|
|
41
|
+
}, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" }, re = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ae = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ U({
|
|
42
42
|
__name: "InventoryView",
|
|
43
43
|
setup(c) {
|
|
44
|
-
const
|
|
44
|
+
const a = K(), d = $(), p = z(), l = w(), s = O(), m = J(), t = k(), { t: _ } = V();
|
|
45
45
|
C(
|
|
46
46
|
[() => l.sessionUser.value, () => l.currentBusiness.value],
|
|
47
47
|
([u, i]) => {
|
|
48
48
|
h(u, i);
|
|
49
49
|
}
|
|
50
|
-
),
|
|
50
|
+
), M(async () => {
|
|
51
51
|
await t.init(), await l.readBusinesses();
|
|
52
52
|
const u = l.sessionUser.value, i = l.currentBusiness.value;
|
|
53
53
|
h(u, i);
|
|
@@ -56,36 +56,36 @@ const X = {
|
|
|
56
56
|
!u || !i || N();
|
|
57
57
|
}
|
|
58
58
|
async function N() {
|
|
59
|
-
return await
|
|
59
|
+
return await a.init(), await p.readSetting().catch((u) => {
|
|
60
60
|
console.error("[all] error on reading netsuite store", u);
|
|
61
61
|
}), await d.init();
|
|
62
62
|
}
|
|
63
63
|
const L = P(() => s.currentRoute.value.name === e.TRANSFER_TEMPLATE ? t.enablePoTemplate : s.currentRoute.value.name === e.INGREDIENT_GROUP ? t.enableIngredientGroup : !0);
|
|
64
64
|
return (u, i) => {
|
|
65
65
|
const S = y("FmSpacer"), G = y("FmCircularProgress"), o = y("FmButton"), n = y("RouterView");
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
return R(), A("div", null, [
|
|
67
|
+
T(m).isLoading ? (R(), A("div", X, [
|
|
68
|
+
I(S),
|
|
69
69
|
v("div", null, [
|
|
70
|
-
|
|
70
|
+
I(G, { size: "xl" })
|
|
71
71
|
]),
|
|
72
72
|
i[0] || (i[0] = v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
73
|
-
|
|
74
|
-
])) : L.value ?
|
|
73
|
+
I(S)
|
|
74
|
+
])) : L.value ? T(l).sessionUser.value ? (R(), F(n, { key: 2 })) : W("", !0) : (R(), A("div", Z, [
|
|
75
75
|
v("div", ee, [
|
|
76
|
-
v("div", te, x(
|
|
77
|
-
v("div", oe, x(
|
|
76
|
+
v("div", te, x(T(_)("inventory.common.proPlan.title")), 1),
|
|
77
|
+
v("div", oe, x(T(_)("inventory.common.proPlan.subtitle")), 1)
|
|
78
78
|
]),
|
|
79
79
|
v("div", ne, [
|
|
80
|
-
v("a",
|
|
81
|
-
|
|
82
|
-
label:
|
|
80
|
+
v("a", re, [
|
|
81
|
+
I(o, {
|
|
82
|
+
label: T(_)("inventory.common.proPlan.comparePlans"),
|
|
83
83
|
variant: "secondary"
|
|
84
84
|
}, null, 8, ["label"])
|
|
85
85
|
]),
|
|
86
|
-
v("a",
|
|
87
|
-
|
|
88
|
-
label:
|
|
86
|
+
v("a", ae, [
|
|
87
|
+
I(o, {
|
|
88
|
+
label: T(_)("inventory.common.proPlan.callUs"),
|
|
89
89
|
"prepend-icon": "call"
|
|
90
90
|
}, null, 8, ["label"])
|
|
91
91
|
])
|
|
@@ -97,13 +97,13 @@ const X = {
|
|
|
97
97
|
}), se = { class: "h-full flex flex-col overflow-auto py-16" }, ie = /* @__PURE__ */ U({
|
|
98
98
|
__name: "NavigationTab",
|
|
99
99
|
setup(c) {
|
|
100
|
-
const
|
|
101
|
-
label:
|
|
102
|
-
value:
|
|
103
|
-
icon:
|
|
104
|
-
hide:
|
|
105
|
-
children:
|
|
106
|
-
}), d =
|
|
100
|
+
const a = E.object({
|
|
101
|
+
label: E.string(),
|
|
102
|
+
value: E.string().optional(),
|
|
103
|
+
icon: E.string().optional(),
|
|
104
|
+
hide: E.boolean().optional(),
|
|
105
|
+
children: E.array(E.lazy(() => a)).optional()
|
|
106
|
+
}), d = j(), p = O(), l = w(), s = k(), m = Q(), { t } = V(), { isDev: _ } = H();
|
|
107
107
|
C([() => l.currentBusiness.value, () => d.name], ([o, n]) => {
|
|
108
108
|
(o == null ? void 0 : o.menuVersion) === "v3" && (n === e.INGREDIENTS || n === e.RECIPE || n === e.UNIT) && p.push({ name: e.STOCK });
|
|
109
109
|
});
|
|
@@ -118,10 +118,10 @@ const X = {
|
|
|
118
118
|
label: "Non-Production Environment",
|
|
119
119
|
icon: "logo_dev",
|
|
120
120
|
disabled: !0,
|
|
121
|
-
hide: !
|
|
121
|
+
hide: !_
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
label:
|
|
124
|
+
label: r(e.STOCK, t),
|
|
125
125
|
// icon: 'inventory_2',
|
|
126
126
|
children: [
|
|
127
127
|
{
|
|
@@ -129,11 +129,7 @@ const X = {
|
|
|
129
129
|
value: e.STOCK
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
label:
|
|
133
|
-
value: e.UNIT_COST_HISTORY
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
label: a(e.WASTAGE_TEMPLATE, t),
|
|
132
|
+
label: r(e.WASTAGE_TEMPLATE, t),
|
|
137
133
|
value: e.WASTAGE_TEMPLATE,
|
|
138
134
|
hide: !s.enableWastageTemplate
|
|
139
135
|
}
|
|
@@ -143,39 +139,39 @@ const X = {
|
|
|
143
139
|
label: t("inventory.closing.title"),
|
|
144
140
|
children: [
|
|
145
141
|
{
|
|
146
|
-
label:
|
|
142
|
+
label: r(e.CLOSING_HISTORY, t),
|
|
147
143
|
value: e.CLOSING_HISTORY
|
|
148
144
|
},
|
|
149
145
|
{
|
|
150
|
-
label:
|
|
146
|
+
label: r(e.CLOSING_TEMPLATE, t),
|
|
151
147
|
value: e.CLOSING_TEMPLATE,
|
|
152
148
|
hide: !s.enableClosingTemplate
|
|
153
149
|
},
|
|
154
150
|
{
|
|
155
|
-
label:
|
|
151
|
+
label: r(e.CLOSING_DRAFT, t),
|
|
156
152
|
value: e.CLOSING_DRAFT,
|
|
157
153
|
hide: !s.enableClosingTemplate
|
|
158
154
|
}
|
|
159
155
|
]
|
|
160
156
|
},
|
|
161
157
|
{
|
|
162
|
-
label:
|
|
158
|
+
label: r(e.INGREDIENTS, t),
|
|
163
159
|
// icon: 'grocery',
|
|
164
160
|
value: e.INGREDIENTS
|
|
165
161
|
},
|
|
166
162
|
{
|
|
167
|
-
label:
|
|
163
|
+
label: r(e.INGREDIENT_GROUP, t),
|
|
168
164
|
// icon: 'grocery',
|
|
169
165
|
value: e.INGREDIENT_GROUP,
|
|
170
166
|
hide: !s.enableIngredientGroup
|
|
171
167
|
},
|
|
172
168
|
{
|
|
173
|
-
label:
|
|
169
|
+
label: r(e.RECIPE, t),
|
|
174
170
|
// icon: 'weight',
|
|
175
171
|
value: e.RECIPE
|
|
176
172
|
},
|
|
177
173
|
{
|
|
178
|
-
label:
|
|
174
|
+
label: r(e.UNIT, t),
|
|
179
175
|
// icon: 'fastfood',
|
|
180
176
|
value: e.UNIT
|
|
181
177
|
},
|
|
@@ -184,52 +180,52 @@ const X = {
|
|
|
184
180
|
// icon: 'swap_horiz',
|
|
185
181
|
children: [
|
|
186
182
|
{
|
|
187
|
-
label:
|
|
183
|
+
label: r(e.RECEIVE_REQUEST, t),
|
|
188
184
|
value: e.RECEIVE_REQUEST
|
|
189
185
|
},
|
|
190
186
|
{
|
|
191
|
-
label:
|
|
187
|
+
label: r(e.APPROVAL, t),
|
|
192
188
|
value: e.APPROVAL
|
|
193
189
|
},
|
|
194
190
|
{
|
|
195
|
-
label:
|
|
191
|
+
label: r(e.SURCHARGE, t),
|
|
196
192
|
value: e.SURCHARGE,
|
|
197
193
|
hide: !s.enableSurcharge
|
|
198
194
|
},
|
|
199
195
|
{
|
|
200
|
-
label:
|
|
196
|
+
label: r(e.TRANSFER_TEMPLATE, t),
|
|
201
197
|
value: e.TRANSFER_TEMPLATE,
|
|
202
198
|
hide: !s.enablePoTemplate
|
|
203
199
|
}
|
|
204
200
|
]
|
|
205
201
|
},
|
|
206
202
|
{
|
|
207
|
-
label:
|
|
203
|
+
label: r(e.SUPPLIER, t),
|
|
208
204
|
// icon: 'group',
|
|
209
205
|
value: e.SUPPLIER
|
|
210
206
|
},
|
|
211
207
|
{
|
|
212
|
-
label:
|
|
208
|
+
label: r(e.WAREHOUSE, t),
|
|
213
209
|
// icon: 'warehouse',
|
|
214
210
|
value: e.WAREHOUSE
|
|
215
211
|
},
|
|
216
212
|
{
|
|
217
|
-
label:
|
|
213
|
+
label: r(e.PUBLISH, t),
|
|
218
214
|
value: e.PUBLISH
|
|
219
215
|
},
|
|
220
216
|
{
|
|
221
|
-
label:
|
|
217
|
+
label: r(e.IMPORT, t),
|
|
222
218
|
value: e.IMPORT,
|
|
223
219
|
hide: !s.enableBulkImport
|
|
224
220
|
},
|
|
225
221
|
{
|
|
226
|
-
label:
|
|
222
|
+
label: r(e.INTEGRATION, t),
|
|
227
223
|
// icon: 'integration_instructions',
|
|
228
224
|
value: e.INTEGRATION
|
|
229
225
|
}
|
|
230
226
|
], n = N(h(o));
|
|
231
227
|
return ((f = l.currentBusiness.value) == null ? void 0 : f.menuVersion) === "v3" ? n.filter(
|
|
232
|
-
(
|
|
228
|
+
(b) => b.value !== e.INGREDIENTS && b.value !== e.RECIPE && b.value !== e.UNIT && b.value !== e.PUBLISH
|
|
233
229
|
) : n;
|
|
234
230
|
}), u = P({
|
|
235
231
|
get() {
|
|
@@ -258,10 +254,10 @@ const X = {
|
|
|
258
254
|
}, 2e3);
|
|
259
255
|
}), (o, n) => {
|
|
260
256
|
const f = y("FmCollapsibleTabs");
|
|
261
|
-
return
|
|
262
|
-
|
|
257
|
+
return R(), A("div", se, [
|
|
258
|
+
I(f, {
|
|
263
259
|
modelValue: u.value,
|
|
264
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
260
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => u.value = b),
|
|
265
261
|
items: L.value
|
|
266
262
|
}, null, 8, ["modelValue", "items"])
|
|
267
263
|
]);
|
|
@@ -269,40 +265,40 @@ const X = {
|
|
|
269
265
|
}
|
|
270
266
|
});
|
|
271
267
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
272
|
-
let c,
|
|
268
|
+
let c, a;
|
|
273
269
|
return { promise: new Promise((p, l) => {
|
|
274
|
-
c = p,
|
|
275
|
-
}), resolve: c, reject:
|
|
270
|
+
c = p, a = l;
|
|
271
|
+
}), resolve: c, reject: a };
|
|
276
272
|
});
|
|
277
273
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
|
|
278
|
-
return await new Promise((
|
|
274
|
+
return await new Promise((a) => setTimeout(a, c)), Promise.resolve(this);
|
|
279
275
|
});
|
|
280
|
-
const
|
|
276
|
+
const _e = /* @__PURE__ */ U({
|
|
281
277
|
__name: "App",
|
|
282
278
|
setup(c) {
|
|
283
|
-
const
|
|
284
|
-
|
|
279
|
+
const a = w(), d = Y(), p = H();
|
|
280
|
+
M(() => {
|
|
285
281
|
if (window.location.href.includes("print-preview")) {
|
|
286
|
-
|
|
282
|
+
a.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
287
283
|
return;
|
|
288
284
|
}
|
|
289
|
-
|
|
285
|
+
a.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
|
|
290
286
|
console.error("Google map cannot be loaded");
|
|
291
287
|
});
|
|
292
|
-
}), C([() =>
|
|
288
|
+
}), C([() => a.currentCountry.value], () => {
|
|
293
289
|
l();
|
|
294
290
|
});
|
|
295
291
|
async function l() {
|
|
296
292
|
var s;
|
|
297
293
|
try {
|
|
298
|
-
await
|
|
294
|
+
await a.readBusinesses(), a.currentBusiness.value = (s = a.businesses.value) == null ? void 0 : s.find((m) => m);
|
|
299
295
|
} catch (m) {
|
|
300
296
|
console.error("error when trying to reset businesses:", m);
|
|
301
297
|
}
|
|
302
298
|
}
|
|
303
|
-
return (s, m) => (
|
|
299
|
+
return (s, m) => (R(), F(le));
|
|
304
300
|
}
|
|
305
301
|
});
|
|
306
302
|
export {
|
|
307
|
-
|
|
303
|
+
_e as default
|
|
308
304
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as P, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
|
|
2
|
-
import { u as De, m as b } from "./app-
|
|
3
|
-
import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as be, P as k, b as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { d as Z } from "./date2-
|
|
2
|
+
import { u as De, m as b } from "./app-CA2Cny0i.js";
|
|
3
|
+
import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DTN2FDK5.js";
|
|
4
|
+
import { a as be, P as k, b as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Gi-bL9hh.js";
|
|
5
|
+
import { d as Z } from "./date2-Cp4YfWcb.js";
|
|
6
6
|
import { u as Se, _ as xe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
7
7
|
import { _ as Pe, F as O } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
8
8
|
import { useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
9
9
|
import { useI18n as qe } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as we, J as Te } from "./app-DiX-EfV6.js";
|
|
11
|
-
import { u as Ae } from "./netsuite-
|
|
11
|
+
import { u as Ae } from "./netsuite-CBG_dy7k.js";
|
|
12
12
|
const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Fe = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L,
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drnfo6QF.js";
|
|
3
|
+
import { a as L, ai as S } from "./app-CA2Cny0i.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
10
|
}, D = /* @__PURE__ */ C({
|
|
11
11
|
__name: "BindingsDialog",
|
|
12
|
-
setup(
|
|
12
|
+
setup(N) {
|
|
13
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) => {
|
|
@@ -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", E, [
|
|
57
57
|
a(h, { size: "md" }),
|
|
58
58
|
n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
|
|
59
59
|
])) : (i(), I(B, {
|
|
@@ -1,6 +1,6 @@
|
|
|
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 } from "./FmMultiselectDialog-
|
|
3
|
-
import { a as x,
|
|
2
|
+
import { a as M } from "./FmMultiselectDialog-BRhLiA42.js";
|
|
3
|
+
import { a as x, ai as z } from "./app-CA2Cny0i.js";
|
|
4
4
|
const F = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex flex-col gap-16"
|
|
@@ -9,7 +9,7 @@ const F = {
|
|
|
9
9
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
10
|
}, A = /* @__PURE__ */ S({
|
|
11
11
|
__name: "BindingsPicker",
|
|
12
|
-
setup(
|
|
12
|
+
setup(L) {
|
|
13
13
|
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) => ({
|
|
14
14
|
label: s.name,
|
|
15
15
|
sublabel: s.code,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P,
|
|
3
|
-
import "./dayjs.min-
|
|
2
|
+
import { F as b, a as P, ai as R } from "./app-CA2Cny0i.js";
|
|
3
|
+
import "./dayjs.min-CgirzsHV.js";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "@feedmepos/mf-common";
|
|
7
7
|
import "./app-DiX-EfV6.js";
|
|
8
|
-
import "./lodash
|
|
8
|
+
import "./lodash--YJHqtef.js";
|
|
9
9
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
10
10
|
__name: "binding-ui",
|
|
11
11
|
props: {
|
|
@@ -66,7 +66,7 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
|
|
|
66
66
|
]);
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), A = {
|
|
70
70
|
key: 1,
|
|
71
71
|
class: "p-24 flex items-center justify-center gap-16"
|
|
72
72
|
}, W = /* @__PURE__ */ x({
|
|
@@ -103,7 +103,7 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
|
|
|
103
103
|
ref_key: "resizeableRef",
|
|
104
104
|
ref: y
|
|
105
105
|
}, [
|
|
106
|
-
d.value ? (l(), u("div",
|
|
106
|
+
d.value ? (l(), u("div", A, [
|
|
107
107
|
w(B, { size: "md" }),
|
|
108
108
|
o[0] || (o[0] = p("div", null, "Loading bindings table...", -1))
|
|
109
109
|
])) : (l(), M(T, {
|