@feedmepos/mf-inventory-portal 0.0.22-dev.5 → 0.0.22-dev.50
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/ApprovalView-CyIOcyG5.js +140 -0
- package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
- package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
- package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
- package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
- package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
- package/dist/IngredientGroupView-C0hPeD41.js +608 -0
- package/dist/IngredientsView-CpwVIGXd.js +1608 -0
- package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wsBLYBpB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yA-qJUUz.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
- package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
- package/dist/RecipeView-D0WsMfKm.js +594 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-sxI0L6MP.js +7770 -0
- package/dist/SupplierView-clAkARuW.js +1468 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
- package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
- package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
- package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +282 -91
- package/dist/api/netsuite.d.ts +71 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
- package/dist/app.d.ts +88 -3
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
- package/dist/defineDeepModel-BXP1vLGf.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/format-time-from-id-DgW7OJL_.js +15 -0
- package/dist/format-unit-display-BP4O0Pym.js +1195 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +294 -9
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/style.css +1 -1
- package/dist/supplier-D-8XhuF_.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- 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 +877 -1038
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1277 -1478
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -247
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
- package/dist/xlsx.util-CxGmvsp9.js +78 -0
- package/package.json +10 -7
- package/dist/ApprovalView-BdaNwUBc.js +0 -129
- package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
- package/dist/IngredientsView-GqrkpCm5.js +0 -1758
- package/dist/IntegrationView-7c3MpUzS.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
- package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
- package/dist/RecipeView-C6tZPQ-K.js +0 -581
- package/dist/StockView-4uXHYz4E.js +0 -1892
- package/dist/SupplierView-CuWvKCWY.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
- package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
- package/dist/defineDeepModel-BKAs9qN6.js +0 -13
- package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
- package/dist/id-to-date-D1lOqIir.js +0 -30
- package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
- package/dist/supplier-BIDBk5S6.js +0 -69
- package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
- package/dist/xlsx.util-BKFiH-ig.js +0 -109
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { m as d } from "./app-B4pi48sM.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { u as d, w as f } from "./xlsx-Dsy-fxZw.js";
|
|
2
|
+
import { o as _, i as h } from "./app-B4pi48sM.js";
|
|
3
|
+
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
4
|
+
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
|
|
5
|
+
function w(e, t) {
|
|
6
|
+
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
7
|
+
}
|
|
8
|
+
function I(e, t) {
|
|
9
|
+
const r = t.map((o) => o.name), n = e.map((o) => w(o, t));
|
|
10
|
+
return d.aoa_to_sheet([r, ...n]);
|
|
11
|
+
}
|
|
12
|
+
async function C(e, t) {
|
|
13
|
+
const r = d.book_new();
|
|
14
|
+
for (const n of e) {
|
|
15
|
+
const o = I(
|
|
16
|
+
n.data,
|
|
17
|
+
n.columns.map((s) => typeof s == "string" ? {
|
|
18
|
+
name: s,
|
|
19
|
+
selector: s
|
|
20
|
+
} : s)
|
|
21
|
+
);
|
|
22
|
+
d.book_append_sheet(r, o, n.name);
|
|
23
|
+
}
|
|
24
|
+
await f(r, t);
|
|
25
|
+
}
|
|
26
|
+
const m = _((e, t) => {
|
|
27
|
+
const r = h(), n = F();
|
|
28
|
+
return {
|
|
29
|
+
async getInventoryForecast() {
|
|
30
|
+
var a;
|
|
31
|
+
const o = ((a = n.currentBusiness.value) == null ? void 0 : a._id) ?? "", s = r.currentLocationId ?? "", i = `${e.dataBackendUrl}/${o}/${s}/inventory-forecast`;
|
|
32
|
+
try {
|
|
33
|
+
return await t.get(i);
|
|
34
|
+
} catch {
|
|
35
|
+
return { skus: [] };
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
async getPurchaseOrderForecast(o) {
|
|
39
|
+
var u;
|
|
40
|
+
const s = ((u = n.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = r.currentLocationId ?? "", a = `${e.dataBackendUrl}/${s}/${i}/purchase-order-forecast?days=${o}`;
|
|
41
|
+
try {
|
|
42
|
+
return await t.get(a);
|
|
43
|
+
} catch {
|
|
44
|
+
return { skus: [] };
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
function O() {
|
|
50
|
+
return {
|
|
51
|
+
inventoryForecast: { skus: [] },
|
|
52
|
+
purchaseOrderForecast: { skus: [] }
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const c = y(O());
|
|
56
|
+
function D() {
|
|
57
|
+
return {
|
|
58
|
+
// state
|
|
59
|
+
get inventoryForecast() {
|
|
60
|
+
return c.value.inventoryForecast;
|
|
61
|
+
},
|
|
62
|
+
set inventoryForecast(e) {
|
|
63
|
+
c.value.inventoryForecast = e;
|
|
64
|
+
},
|
|
65
|
+
get purchaseOrderForecast() {
|
|
66
|
+
return c.value.purchaseOrderForecast;
|
|
67
|
+
},
|
|
68
|
+
set purchaseOrderForecast(e) {
|
|
69
|
+
c.value.purchaseOrderForecast = e;
|
|
70
|
+
},
|
|
71
|
+
// actions
|
|
72
|
+
async readStockEstimateBalance() {
|
|
73
|
+
const e = m();
|
|
74
|
+
this.inventoryForecast = await e.getInventoryForecast();
|
|
75
|
+
},
|
|
76
|
+
async readPurchaseOrder(e) {
|
|
77
|
+
const t = m();
|
|
78
|
+
this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function N(e) {
|
|
83
|
+
let t = e.substring(e.indexOf("_") + 1);
|
|
84
|
+
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
85
|
+
}
|
|
86
|
+
const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", L = /* @__PURE__ */ v({
|
|
87
|
+
__name: "PremiumBadge",
|
|
88
|
+
props: {
|
|
89
|
+
zIndex: {}
|
|
90
|
+
},
|
|
91
|
+
setup(e) {
|
|
92
|
+
return (t, r) => {
|
|
93
|
+
const n = p("FmPill"), o = p("FmTooltip");
|
|
94
|
+
return k(), g("div", b, [
|
|
95
|
+
S(t.$slots, "default"),
|
|
96
|
+
l(o, {
|
|
97
|
+
variant: "plain",
|
|
98
|
+
placement: "top",
|
|
99
|
+
content: B,
|
|
100
|
+
"z-index": t.zIndex
|
|
101
|
+
}, {
|
|
102
|
+
default: x(() => [
|
|
103
|
+
l(n, { variant: "premium" })
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["z-index"])
|
|
107
|
+
]);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
L as _,
|
|
113
|
+
C as e,
|
|
114
|
+
N as i,
|
|
115
|
+
D as u
|
|
116
|
+
};
|
package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { ab as y, X as C } from "./app-B4pi48sM.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
7
7
|
}, J = { class: "text-left" }, Q = {
|
|
8
8
|
class: "text-right",
|
|
9
9
|
style: { width: "15%" }
|
|
10
|
-
},
|
|
10
|
+
}, X = {
|
|
11
11
|
class: "text-right",
|
|
12
12
|
style: { width: "15%" }
|
|
13
|
-
},
|
|
13
|
+
}, j = /* @__PURE__ */ h({
|
|
14
14
|
__name: "PurchaseOrderPrintPreview",
|
|
15
|
-
setup(
|
|
15
|
+
setup(G) {
|
|
16
16
|
const c = x(() => {
|
|
17
17
|
switch (s.value.status) {
|
|
18
18
|
case y.enum.CANCEL:
|
|
@@ -25,7 +25,7 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
25
25
|
}), b = k(), s = m(JSON.parse(b.query.data));
|
|
26
26
|
return f(() => {
|
|
27
27
|
setTimeout(() => window.print(), 500);
|
|
28
|
-
}), (
|
|
28
|
+
}), (K, e) => (n(), u("div", P, [
|
|
29
29
|
t("table", null, [
|
|
30
30
|
t("tr", R, [
|
|
31
31
|
t("td", null, [
|
|
@@ -139,7 +139,7 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
139
139
|
t("td", M, l(o.code), 1),
|
|
140
140
|
t("td", J, l(o.description), 1),
|
|
141
141
|
t("td", Q, l(o.quantity), 1),
|
|
142
|
-
t("td",
|
|
142
|
+
t("td", X, l(o.unit), 1)
|
|
143
143
|
]))), 128))
|
|
144
144
|
])
|
|
145
145
|
])
|
|
@@ -148,7 +148,7 @@ const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "tex
|
|
|
148
148
|
])
|
|
149
149
|
]));
|
|
150
150
|
}
|
|
151
|
-
}), $ = /* @__PURE__ */ C(
|
|
151
|
+
}), $ = /* @__PURE__ */ C(j, [["__scopeId", "data-v-92a03d5c"]]);
|
|
152
152
|
export {
|
|
153
153
|
$ as default
|
|
154
154
|
};
|