@feedmepos/mf-inventory-portal 1.2.59 → 1.2.60-dev.2
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-Nwc0Ha2r.js → App-B_yr-6yL.js} +82 -78
- package/dist/{ApprovalView-Y5f915s3.js → ApprovalView-DoYBBuSD.js} +5 -5
- package/dist/{BindingsDialog-5N7R_u4c.js → BindingsDialog-DG7HOy6J.js} +5 -5
- package/dist/{BindingsPicker-BJwvLu2s.js → BindingsPicker-DVCYpyrR.js} +3 -3
- package/dist/{BindingsTable-B8sq-qXH.js → BindingsTable-CCel2b_W.js} +5 -5
- package/dist/{ClosingDraftView-BsyYOZsz.js → ClosingDraftView-CfM7gNBX.js} +891 -893
- package/dist/{ClosingHistoryView-BNpsMNy1.js → ClosingHistoryView-DWH4bFgg.js} +36 -36
- package/dist/{ClosingTemplateView-BBqbq07d.js → ClosingTemplateView-JYnnvm7L.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-CmOO7wuE.js → DeliveryOrderPrintPreview-BihBTJGj.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXlY-Gu1.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CWjtQajS.js} +17 -17
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CAMkZRFI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js} +2 -2
- package/dist/{FmMultiselectDialog-CwJUv9tG.js → FmMultiselectDialog-CxDviJZM.js} +16 -16
- package/dist/{FmMultiselectDialog-LagHyTQP.js → FmMultiselectDialog-D51nW6yj.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BmHFIkt1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js} +16 -15
- package/dist/{ImportView-wQ_bNesb.js → ImportView-C52rZFib.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DtMrJIVs.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CjZmd-Sa.js} +1 -1
- package/dist/{IngredientGroupView-DsGMhdwu.js → IngredientGroupView-DTHpZP2L.js} +5 -5
- package/dist/{IngredientsView-JdjcLdOx.js → IngredientsView-CrCW6heJ.js} +25 -24
- package/dist/{IntegrationView-CMmSIRUk.js → IntegrationView--DZANrHj.js} +18 -17
- package/dist/{InventoryBindingForm-UL-UKtYW.js → InventoryBindingForm-DLTpv-zQ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-r875PDKP.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-hkIg4Rbp.js} +17 -16
- package/dist/{InventoryBindingSummary-BDAuT62b.js → InventoryBindingSummary-D9ptV8Cw.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C5zOYiqR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdPxhkg0.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B2zppgqk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ci3esisT.js} +2 -2
- package/dist/{PublishView-CSoZCSHT.js → PublishView-DxzL_D61.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-D5Qw44xo.js → PurchaseOrderPrintPreview-D0tg-2TC.js} +11 -11
- package/dist/{ReceiveRequestView-Chntp08E.js → ReceiveRequestView-2U534J1_.js} +251 -250
- package/dist/RecipeView-VZRyX3Mm.js +1558 -0
- package/dist/{StockView-CuCK7tD2.js → StockView-CvWbnYGz.js} +653 -651
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxjceLuZ.js +183 -0
- package/dist/{SupplierView-CA17Tz02.js → SupplierView-DMIunLvv.js} +20 -19
- package/dist/{SurchargeView-EIftjMCa.js → SurchargeView-jteWYvQz.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CqA6RmPy.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CyoUVoDH.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYXsAP0i.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DAkKiy0Z.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BbbAEIcW.js → TransferDetails.vue_vue_type_script_setup_true_lang-CEXA3vvS.js} +77 -78
- package/dist/{TransferTemplateView-CYfbm9aS.js → TransferTemplateView-DMQ1WIij.js} +22 -21
- package/dist/UnitCostHistoryView-DQ3sXVAQ.js +651 -0
- package/dist/{UnitView-6s5CsGEQ.js → UnitView-p6eZ8G2C.js} +9 -9
- package/dist/{WarehouseView-BXDQOyFZ.js → WarehouseView-BIShkEPs.js} +5 -5
- package/dist/{WastageTemplateView-Cq92TiRs.js → WastageTemplateView-DCbczB_0.js} +14 -14
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/api/stock-estimate.d.ts +2 -0
- package/dist/api/unit-cost-history.d.ts +28 -0
- package/dist/{app-DJuq_faF.js → app-BAVBNKKH.js} +7461 -6448
- package/dist/app.d.ts +236 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-D_zbp5V1.js → closing-template-DqxA750a.js} +1 -1
- package/dist/components/StockForecastProps.d.ts +6 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
- package/dist/{date2-4vrHarNG.js → date2-CgwRU403.js} +1 -1
- package/dist/{dayjs.min-Dwp8614O.js → dayjs.min-CjWVK_Fe.js} +16 -16
- package/dist/{defineDeepModel-DVt2Wz9r.js → defineDeepModel-B1j_kSRA.js} +1 -1
- package/dist/{duplicate-template-CkYWeFtL.js → duplicate-template-iHtqE_uw.js} +1 -1
- package/dist/{feature-Beh-qc03.js → feature-DEryk-Cv.js} +94 -89
- package/dist/{format-time-from-id-84iLSxVu.js → format-time-from-id-C-mbWMLS.js} +1 -1
- package/dist/{format-unit-display-DfeNpWk4.js → format-unit-display-C8Hzskg0.js} +16 -15
- package/dist/helper/number.d.ts +2 -0
- package/dist/helper/type.d.ts +5 -0
- package/dist/{import-export.helper-fAVzQM2q.js → import-export.helper-DGg16RXI.js} +17 -16
- package/dist/{index-CoEqhZLm.js → index-BAkoTUB0.js} +1 -1
- package/dist/{index-B2_16R5E.js → index-BLowSL6G.js} +1471 -1412
- package/dist/{index-Chogzhcq.js → index-CLr4DPan.js} +3 -3
- package/dist/{lodash-Cx8BU1GH.js → lodash-D1_0uR01.js} +1 -1
- package/dist/{netsuite-C1bml-v1.js → netsuite-Bbxz8tiD.js} +60 -60
- package/dist/number-Cof88Fjz.js +232 -0
- package/dist/{purchase-order-template-BqFnJ-6B.js → purchase-order-template-B-sXEbRE.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-CzPUVxD_.js +98 -0
- package/dist/{stock-KxT4JbNf.js → stock-BYPFH5a_.js} +1 -1
- package/dist/stock-D9E1uFb1.js +75 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +8 -1
- package/dist/stores/inventory.d.ts +119 -30
- package/dist/{supplier-C7wUB1zT.js → supplier-wQYh275s.js} +2 -2
- package/dist/{surcharge-CjB_Qtbv.js → surcharge-Bi21qFa0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-D5KSqA4Z.js → use-ingredient-select-dialog-DH-mXl8H.js} +2 -2
- package/dist/{use-inventory-binding-dialog-eGOvztV3.js → use-inventory-binding-dialog-i8E2CNuV.js} +2 -2
- package/dist/{use-template-enabled-locations-2-3kcVWPQm.js → use-template-enabled-locations-2-DRk9TskI.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +64 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +192 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
- package/dist/views/stock/type.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
- package/dist/{vue-i18n-C6XNfngV.js → vue-i18n-Cf9iDkfk.js} +398 -398
- package/dist/{xlsx-BwNUbN_O.js → xlsx-lp5RXzSw.js} +398 -398
- package/dist/{xlsx.util-B_DE3inS.js → xlsx.util-BxpZNkEZ.js} +1 -1
- package/package.json +2 -2
- package/dist/RecipeView-Ck3Pa4fg.js +0 -646
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-fMji2qKG.js +0 -172
- package/dist/decimal-Bf6AG_d3.js +0 -99
- package/dist/rules-y2OYGOro.js +0 -201
- package/dist/stock-BWUzlDTa.js +0 -75
|
@@ -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 H, computed as P, resolveComponent as y, openBlock as g, createElementBlock as A, unref as b, createVNode as R, createElementVNode as v, toDisplayString as x, createBlock as M, createCommentVNode as W } from "vue";
|
|
2
|
+
import { u as K, a as Y, R as e, m as _, g as a, b as F } from "./app-BAVBNKKH.js";
|
|
3
|
+
import { useCoreStore as O, useI18n as V } from "@feedmepos/mf-common";
|
|
4
|
+
import { useRouter as w, useRoute as $ } from "vue-router";
|
|
5
|
+
import { u as k } from "./feature-DEryk-Cv.js";
|
|
6
|
+
import { u as j } from "./netsuite-Bbxz8tiD.js";
|
|
7
|
+
import { u as z } from "./useTabStorage-BkIVScW_.js";
|
|
8
|
+
import { u as Q } 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 I = B(q());
|
|
16
16
|
function J() {
|
|
17
|
-
const c =
|
|
18
|
-
if (!
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
17
|
+
const c = w();
|
|
18
|
+
if (!I.value.loadingHookInstalled) {
|
|
19
|
+
I.value.loadingHookInstalled = !0;
|
|
20
|
+
const r = c.beforeEach(() => {
|
|
21
|
+
I.value.isLoading = !0;
|
|
22
22
|
}), d = c.afterEach(() => {
|
|
23
|
-
|
|
23
|
+
I.value.isLoading = !1;
|
|
24
24
|
});
|
|
25
25
|
D(() => {
|
|
26
|
-
|
|
26
|
+
I.value.loadingHookInstalled = !1, r(), d();
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
get isLoading() {
|
|
31
|
-
return
|
|
31
|
+
return I.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" }, ae = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, re = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ U({
|
|
42
42
|
__name: "InventoryView",
|
|
43
43
|
setup(c) {
|
|
44
|
-
const
|
|
44
|
+
const r = K(), d = Y(), p = j(), l = O(), s = w(), m = J(), t = k(), { t: E } = 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
|
+
), H(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 r.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 g(), A("div", null, [
|
|
67
|
+
b(m).isLoading ? (g(), A("div", X, [
|
|
68
|
+
R(S),
|
|
69
69
|
v("div", null, [
|
|
70
|
-
|
|
70
|
+
R(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
|
+
R(S)
|
|
74
|
+
])) : L.value ? b(l).sessionUser.value ? (g(), M(n, { key: 2 })) : W("", !0) : (g(), A("div", Z, [
|
|
75
75
|
v("div", ee, [
|
|
76
|
-
v("div", te, x(
|
|
77
|
-
v("div", oe, x(
|
|
76
|
+
v("div", te, x(b(E)("inventory.common.proPlan.title")), 1),
|
|
77
|
+
v("div", oe, x(b(E)("inventory.common.proPlan.subtitle")), 1)
|
|
78
78
|
]),
|
|
79
79
|
v("div", ne, [
|
|
80
|
-
v("a",
|
|
81
|
-
|
|
82
|
-
label:
|
|
80
|
+
v("a", ae, [
|
|
81
|
+
R(o, {
|
|
82
|
+
label: b(E)("inventory.common.proPlan.comparePlans"),
|
|
83
83
|
variant: "secondary"
|
|
84
84
|
}, null, 8, ["label"])
|
|
85
85
|
]),
|
|
86
|
-
v("a",
|
|
87
|
-
|
|
88
|
-
label:
|
|
86
|
+
v("a", re, [
|
|
87
|
+
R(o, {
|
|
88
|
+
label: b(E)("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 r = _.object({
|
|
101
|
+
label: _.string(),
|
|
102
|
+
value: _.string().optional(),
|
|
103
|
+
icon: _.string().optional(),
|
|
104
|
+
hide: _.boolean().optional(),
|
|
105
|
+
children: _.array(_.lazy(() => r)).optional()
|
|
106
|
+
}), d = $(), p = w(), l = O(), s = k(), m = z(), { t } = V(), { isDev: E } = F();
|
|
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: !E
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
label:
|
|
124
|
+
label: a(e.STOCK, t),
|
|
125
125
|
// icon: 'inventory_2',
|
|
126
126
|
children: [
|
|
127
127
|
{
|
|
@@ -129,7 +129,11 @@ const X = {
|
|
|
129
129
|
value: e.STOCK
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
label:
|
|
132
|
+
label: a(e.UNIT_COST_HISTORY, t),
|
|
133
|
+
value: e.UNIT_COST_HISTORY
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
label: a(e.WASTAGE_TEMPLATE, t),
|
|
133
137
|
value: e.WASTAGE_TEMPLATE,
|
|
134
138
|
hide: !s.enableWastageTemplate
|
|
135
139
|
}
|
|
@@ -139,39 +143,39 @@ const X = {
|
|
|
139
143
|
label: t("inventory.closing.title"),
|
|
140
144
|
children: [
|
|
141
145
|
{
|
|
142
|
-
label:
|
|
146
|
+
label: a(e.CLOSING_HISTORY, t),
|
|
143
147
|
value: e.CLOSING_HISTORY
|
|
144
148
|
},
|
|
145
149
|
{
|
|
146
|
-
label:
|
|
150
|
+
label: a(e.CLOSING_TEMPLATE, t),
|
|
147
151
|
value: e.CLOSING_TEMPLATE,
|
|
148
152
|
hide: !s.enableClosingTemplate
|
|
149
153
|
},
|
|
150
154
|
{
|
|
151
|
-
label:
|
|
155
|
+
label: a(e.CLOSING_DRAFT, t),
|
|
152
156
|
value: e.CLOSING_DRAFT,
|
|
153
157
|
hide: !s.enableClosingTemplate
|
|
154
158
|
}
|
|
155
159
|
]
|
|
156
160
|
},
|
|
157
161
|
{
|
|
158
|
-
label:
|
|
162
|
+
label: a(e.INGREDIENTS, t),
|
|
159
163
|
// icon: 'grocery',
|
|
160
164
|
value: e.INGREDIENTS
|
|
161
165
|
},
|
|
162
166
|
{
|
|
163
|
-
label:
|
|
167
|
+
label: a(e.INGREDIENT_GROUP, t),
|
|
164
168
|
// icon: 'grocery',
|
|
165
169
|
value: e.INGREDIENT_GROUP,
|
|
166
170
|
hide: !s.enableIngredientGroup
|
|
167
171
|
},
|
|
168
172
|
{
|
|
169
|
-
label:
|
|
173
|
+
label: a(e.RECIPE, t),
|
|
170
174
|
// icon: 'weight',
|
|
171
175
|
value: e.RECIPE
|
|
172
176
|
},
|
|
173
177
|
{
|
|
174
|
-
label:
|
|
178
|
+
label: a(e.UNIT, t),
|
|
175
179
|
// icon: 'fastfood',
|
|
176
180
|
value: e.UNIT
|
|
177
181
|
},
|
|
@@ -180,52 +184,52 @@ const X = {
|
|
|
180
184
|
// icon: 'swap_horiz',
|
|
181
185
|
children: [
|
|
182
186
|
{
|
|
183
|
-
label:
|
|
187
|
+
label: a(e.RECEIVE_REQUEST, t),
|
|
184
188
|
value: e.RECEIVE_REQUEST
|
|
185
189
|
},
|
|
186
190
|
{
|
|
187
|
-
label:
|
|
191
|
+
label: a(e.APPROVAL, t),
|
|
188
192
|
value: e.APPROVAL
|
|
189
193
|
},
|
|
190
194
|
{
|
|
191
|
-
label:
|
|
195
|
+
label: a(e.SURCHARGE, t),
|
|
192
196
|
value: e.SURCHARGE,
|
|
193
197
|
hide: !s.enableSurcharge
|
|
194
198
|
},
|
|
195
199
|
{
|
|
196
|
-
label:
|
|
200
|
+
label: a(e.TRANSFER_TEMPLATE, t),
|
|
197
201
|
value: e.TRANSFER_TEMPLATE,
|
|
198
202
|
hide: !s.enablePoTemplate
|
|
199
203
|
}
|
|
200
204
|
]
|
|
201
205
|
},
|
|
202
206
|
{
|
|
203
|
-
label:
|
|
207
|
+
label: a(e.SUPPLIER, t),
|
|
204
208
|
// icon: 'group',
|
|
205
209
|
value: e.SUPPLIER
|
|
206
210
|
},
|
|
207
211
|
{
|
|
208
|
-
label:
|
|
212
|
+
label: a(e.WAREHOUSE, t),
|
|
209
213
|
// icon: 'warehouse',
|
|
210
214
|
value: e.WAREHOUSE
|
|
211
215
|
},
|
|
212
216
|
{
|
|
213
|
-
label:
|
|
217
|
+
label: a(e.PUBLISH, t),
|
|
214
218
|
value: e.PUBLISH
|
|
215
219
|
},
|
|
216
220
|
{
|
|
217
|
-
label:
|
|
221
|
+
label: a(e.IMPORT, t),
|
|
218
222
|
value: e.IMPORT,
|
|
219
223
|
hide: !s.enableBulkImport
|
|
220
224
|
},
|
|
221
225
|
{
|
|
222
|
-
label:
|
|
226
|
+
label: a(e.INTEGRATION, t),
|
|
223
227
|
// icon: 'integration_instructions',
|
|
224
228
|
value: e.INTEGRATION
|
|
225
229
|
}
|
|
226
230
|
], n = N(h(o));
|
|
227
231
|
return ((f = l.currentBusiness.value) == null ? void 0 : f.menuVersion) === "v3" ? n.filter(
|
|
228
|
-
(
|
|
232
|
+
(T) => T.value !== e.INGREDIENTS && T.value !== e.RECIPE && T.value !== e.UNIT && T.value !== e.PUBLISH
|
|
229
233
|
) : n;
|
|
230
234
|
}), u = P({
|
|
231
235
|
get() {
|
|
@@ -254,10 +258,10 @@ const X = {
|
|
|
254
258
|
}, 2e3);
|
|
255
259
|
}), (o, n) => {
|
|
256
260
|
const f = y("FmCollapsibleTabs");
|
|
257
|
-
return
|
|
258
|
-
|
|
261
|
+
return g(), A("div", se, [
|
|
262
|
+
R(f, {
|
|
259
263
|
modelValue: u.value,
|
|
260
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
264
|
+
"onUpdate:modelValue": n[0] || (n[0] = (T) => u.value = T),
|
|
261
265
|
items: L.value
|
|
262
266
|
}, null, 8, ["modelValue", "items"])
|
|
263
267
|
]);
|
|
@@ -265,40 +269,40 @@ const X = {
|
|
|
265
269
|
}
|
|
266
270
|
});
|
|
267
271
|
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
268
|
-
let c,
|
|
272
|
+
let c, r;
|
|
269
273
|
return { promise: new Promise((p, l) => {
|
|
270
|
-
c = p,
|
|
271
|
-
}), resolve: c, reject:
|
|
274
|
+
c = p, r = l;
|
|
275
|
+
}), resolve: c, reject: r };
|
|
272
276
|
});
|
|
273
277
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
|
|
274
|
-
return await new Promise((
|
|
278
|
+
return await new Promise((r) => setTimeout(r, c)), Promise.resolve(this);
|
|
275
279
|
});
|
|
276
|
-
const
|
|
280
|
+
const Ee = /* @__PURE__ */ U({
|
|
277
281
|
__name: "App",
|
|
278
282
|
setup(c) {
|
|
279
|
-
const
|
|
280
|
-
|
|
283
|
+
const r = O(), d = Q(), p = F();
|
|
284
|
+
H(() => {
|
|
281
285
|
if (window.location.href.includes("print-preview")) {
|
|
282
|
-
|
|
286
|
+
r.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
283
287
|
return;
|
|
284
288
|
}
|
|
285
|
-
|
|
289
|
+
r.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
|
|
286
290
|
console.error("Google map cannot be loaded");
|
|
287
291
|
});
|
|
288
|
-
}), C([() =>
|
|
292
|
+
}), C([() => r.currentCountry.value], () => {
|
|
289
293
|
l();
|
|
290
294
|
});
|
|
291
295
|
async function l() {
|
|
292
296
|
var s;
|
|
293
297
|
try {
|
|
294
|
-
await
|
|
298
|
+
await r.readBusinesses(), r.currentBusiness.value = (s = r.businesses.value) == null ? void 0 : s.find((m) => m);
|
|
295
299
|
} catch (m) {
|
|
296
300
|
console.error("error when trying to reset businesses:", m);
|
|
297
301
|
}
|
|
298
302
|
}
|
|
299
|
-
return (s, m) => (
|
|
303
|
+
return (s, m) => (g(), M(le));
|
|
300
304
|
}
|
|
301
305
|
});
|
|
302
306
|
export {
|
|
303
|
-
|
|
307
|
+
Ee as default
|
|
304
308
|
};
|
|
@@ -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 { u as be, P as k, a 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-BAVBNKKH.js";
|
|
3
|
+
import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js";
|
|
4
|
+
import { u as be, P as k, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CEXA3vvS.js";
|
|
5
|
+
import { d as Z } from "./date2-CgwRU403.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-Bbxz8tiD.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-hkIg4Rbp.js";
|
|
3
|
+
import { a as L, aj as S } from "./app-BAVBNKKH.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
7
|
-
},
|
|
7
|
+
}, j = {
|
|
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(E) {
|
|
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", j, [
|
|
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-CxDviJZM.js";
|
|
3
|
+
import { a as x, aj as z } from "./app-BAVBNKKH.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(j) {
|
|
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, aj as R } from "./app-BAVBNKKH.js";
|
|
3
|
+
import "./dayjs.min-CjWVK_Fe.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-D1_0uR01.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
|
+
}), j = {
|
|
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", j, [
|
|
107
107
|
w(B, { size: "md" }),
|
|
108
108
|
o[0] || (o[0] = p("div", null, "Loading bindings table...", -1))
|
|
109
109
|
])) : (l(), M(T, {
|