@feedmepos/mf-inventory-portal 0.0.22-dev.2 → 0.0.22-dev.21
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.vue.d.ts +2 -0
- package/dist/{ApprovalView-D7WEr35k.js → ApprovalView-CCYykhrK.js} +14 -14
- package/dist/{BindingsDialog-C-3uO6pD.js → BindingsDialog-33VV_AST.js} +1 -1
- package/dist/{BindingsPicker-B3tGisCE.js → BindingsPicker-BKu4vN8J.js} +8 -8
- package/dist/{BindingsTable-CPtiH3vj.js → BindingsTable-Dd0h5gDf.js} +1 -1
- package/dist/ClosingTemplateView-BhevjTLl.js +1067 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ohHZLOuR.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3gp56NNJ.js} +14 -16
- package/dist/{IngredientsView-D-EKGLq9.js → IngredientsView-DckIH9eR.js} +5 -6
- package/dist/{IntegrationView-BVAO_vch.js → IntegrationView-BqQ4jRIp.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJYmB7Ct.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Vi0q_bDz.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BxkM-SOw.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BIL8LWRz.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-CP-mK62z.js → PurchaseOrderPrintPreview-Ct7daTTa.js} +1 -1
- package/dist/{ReceiveRequestView-x8WTvuDk.js → ReceiveRequestView-B4wHTogG.js} +25 -26
- package/dist/RecipeView-DuE4cXLz.js +590 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/{StockView-SyWxT4Ee.js → StockView-Bn9v2Ix8.js} +602 -585
- package/dist/{SupplierView-a0HAZJau.js → SupplierView-C8rqHSOV.js} +37 -37
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CStnY5Zh.js +851 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DRKiv_t8.js +1511 -0
- package/dist/TransferTemplateView-RM6Y-WL4.js +1209 -0
- package/dist/{UnitView-B3c7W5lw.js → UnitView-BXISVrop.js} +4 -4
- package/dist/{WarehouseView-DDV-yslF.js → WarehouseView-B055eB90.js} +18 -18
- package/dist/api/closing-template.d.ts +14 -0
- package/dist/api/inventory.d.ts +5 -7
- package/dist/api/netsuite.d.ts +46 -0
- package/dist/api/purchase-order-template.d.ts +0 -4
- package/dist/{app-DURkcZal.js → app-9algzyce.js} +16045 -15403
- package/dist/app.d.ts +6 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/{decimal-BGJlFDm8.js → decimal-CMuMGm4y.js} +1 -1
- package/dist/{defineDeepModel-pATZSiCT.js → defineDeepModel-CjPowyho.js} +1 -1
- package/dist/extensions/promises.d.ts +14 -0
- package/dist/{format-time-from-id-BCAuJEq2.js → format-time-from-id-DNKcbBFm.js} +1 -1
- package/dist/helper/date2.d.ts +1 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/{id-to-date-CVHmTOJk.js → id-to-date-C6W4aVdr.js} +1 -1
- package/dist/purchase-order-transaction-type-CscRvNAR.js +680 -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/inventory.d.ts +7 -0
- package/dist/stores/location.d.ts +24 -42
- package/dist/stores/netsuite.d.ts +56 -0
- package/dist/stores/route.d.ts +0 -5
- package/dist/stores/warehouse.d.ts +4 -7
- package/dist/style.css +1 -1
- package/dist/{supplier-DmBbGAwf.js → supplier-BiCX3dpL.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-Dtg2qOTm.js +85 -0
- package/dist/views/closing-template/components/closing-template-publish/ClosingTemplatePublish.vue.d.ts +6 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +276 -84
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +341 -85
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +916 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +788 -152
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +800 -164
- 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 +4 -7
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +2 -2
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1285 -109
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +399 -993
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +345 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
- package/dist/{xlsx-1DLm6bBD.js → xlsx-fKJqx2Qc.js} +1 -1
- package/dist/{xlsx.util-DLtch7r5.js → xlsx.util-LOnzE3KS.js} +2 -2
- package/package.json +5 -5
- package/dist/ClosingTemplateView-Df0lgpjS.js +0 -928
- package/dist/RecipeView-BysIWI1W.js +0 -581
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ckp8gcT_.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BSvpuWY9.js +0 -1409
- package/dist/TransferTemplateView-BGi6zd6d.js +0 -1350
- package/dist/array-ClJzD_Lt.js +0 -30
- package/dist/layout/InventoryLayout.vue.d.ts +0 -2
- package/dist/layout/layout-routes.d.ts +0 -6
- package/dist/purchase-order-transaction-type-DvSpCSXr.js +0 -712
- package/dist/use-template-enabled-locations-BiuOdu1M.js +0 -57
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
|
|
2
|
-
import { u as G, S as me, c as oe, R as j, A as ce, a as J,
|
|
2
|
+
import { u as G, S as me, c as oe, R as j, A as ce, a as J, m as pe, n as fe, e as ee, j as ve } from "./app-9algzyce.js";
|
|
3
3
|
import { useDialog as ye, useSnackbar as le, useProxiedModel as te, useBreakpoints as be } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as ge, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as U, D as ne, R as N } from "./row-action.enum-PMKMRrZR.js";
|
|
6
6
|
import { defineStore as _e, storeToRefs as he } from "pinia";
|
|
7
7
|
import { c as Ve, _ as Ue, F as we } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
8
8
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { F as Se } from "./decimal-
|
|
11
|
-
import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3gp56NNJ.js";
|
|
10
|
+
import { F as Se } from "./decimal-CMuMGm4y.js";
|
|
11
|
+
import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Vi0q_bDz.js";
|
|
12
12
|
const Ee = { class: "flex flex-col gap-8" }, Ie = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "flex flex-col"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as W, defineComponent as j, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as z, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as I, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { o as Pe, V as Te, W as Ue, c as G, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-9algzyce.js";
|
|
3
3
|
import { useCoreStore as Be, useI18n as q } from "@feedmepos/mf-common";
|
|
4
|
-
import { D as Ve, R as
|
|
4
|
+
import { D as Ve, R as Y, F as T } from "./row-action.enum-PMKMRrZR.js";
|
|
5
5
|
import { c as qe, _ as ze, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
-
import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3gp56NNJ.js";
|
|
7
7
|
import { useDialogChild as Ge, useDialog as Me, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
|
|
8
|
-
const
|
|
8
|
+
const Q = Pe((m, h) => {
|
|
9
9
|
const y = Be();
|
|
10
10
|
return {
|
|
11
11
|
async readWarehouses() {
|
|
@@ -47,17 +47,17 @@ function Ce() {
|
|
|
47
47
|
},
|
|
48
48
|
// actions
|
|
49
49
|
async readWarehouses() {
|
|
50
|
-
const m =
|
|
50
|
+
const m = Q();
|
|
51
51
|
this.warehouses = await m.readWarehouses();
|
|
52
52
|
},
|
|
53
53
|
async createWarehouse(m) {
|
|
54
|
-
await
|
|
54
|
+
await Q().createWarehouse(m);
|
|
55
55
|
},
|
|
56
56
|
async updateWarehouse(m) {
|
|
57
|
-
await
|
|
57
|
+
await Q().updateWarehouse(m._id, m.profile);
|
|
58
58
|
},
|
|
59
59
|
async deleteWarehouse(m) {
|
|
60
|
-
await
|
|
60
|
+
await Q().deleteWarehouse(m._id);
|
|
61
61
|
},
|
|
62
62
|
async init() {
|
|
63
63
|
const m = Te();
|
|
@@ -69,13 +69,13 @@ function Ce() {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ze(m, h) {
|
|
73
73
|
function y(p, r) {
|
|
74
|
-
if (p ===
|
|
74
|
+
if (p === Y.Edit) {
|
|
75
75
|
m(G(r));
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
if (p ===
|
|
78
|
+
if (p === Y.Delete) {
|
|
79
79
|
h(G(r));
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
@@ -106,7 +106,7 @@ function Qe(m, h) {
|
|
|
106
106
|
header: "",
|
|
107
107
|
cell(p) {
|
|
108
108
|
return qe(
|
|
109
|
-
[Ve[
|
|
109
|
+
[Ve[Y.Edit], Ve[Y.Delete]],
|
|
110
110
|
(r) => {
|
|
111
111
|
y(r, p.row.original.original);
|
|
112
112
|
}
|
|
@@ -267,7 +267,7 @@ const Xe = /* @__PURE__ */ j({
|
|
|
267
267
|
class: "map app-map"
|
|
268
268
|
}, null, 512));
|
|
269
269
|
}
|
|
270
|
-
}),
|
|
270
|
+
}), Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex flex-col gap-8" }, Qe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ j({
|
|
271
271
|
__name: "CoordinateDialog",
|
|
272
272
|
props: {
|
|
273
273
|
address: {
|
|
@@ -295,10 +295,10 @@ const Xe = /* @__PURE__ */ j({
|
|
|
295
295
|
l.lat = v.lat, l.lng = v.lng, y.emitData(G(l)), r();
|
|
296
296
|
}
|
|
297
297
|
const _ = W();
|
|
298
|
-
return (v, M) => (S(), z("div",
|
|
298
|
+
return (v, M) => (S(), z("div", Ye, [
|
|
299
299
|
g("div", Je, [
|
|
300
300
|
g("div", null, [
|
|
301
|
-
g("span",
|
|
301
|
+
g("span", Qe, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
|
|
302
302
|
g("span", eo, U(p.value), 1)
|
|
303
303
|
]),
|
|
304
304
|
g("div", null, [
|
|
@@ -895,7 +895,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
895
895
|
n.close();
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
|
-
const { columnDefs: C, formatRowData: R } =
|
|
898
|
+
const { columnDefs: C, formatRowData: R } = Ze(
|
|
899
899
|
v,
|
|
900
900
|
M
|
|
901
901
|
);
|
|
@@ -963,7 +963,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
963
963
|
onRowClick: (s) => v(s.original)
|
|
964
964
|
}, {
|
|
965
965
|
default: N((s) => {
|
|
966
|
-
var f, b, x, D, K, re, ne, ue, H, ie, de, ce, pe, me,
|
|
966
|
+
var f, b, x, D, K, re, ne, ue, H, ie, de, ce, pe, me, Z, fe, he, ye, ve, X, ge;
|
|
967
967
|
return [
|
|
968
968
|
g("div", Co, [
|
|
969
969
|
g("div", Fo, [
|
|
@@ -981,7 +981,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
981
981
|
(de = P.original) != null && de.email ? (S(), z("div", $o, [
|
|
982
982
|
V(c(J), {
|
|
983
983
|
render: (me = (pe = (ce = s.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
|
|
984
|
-
props: (fe = (
|
|
984
|
+
props: (fe = (Z = s.email) == null ? void 0 : Z.getContext) == null ? void 0 : fe.call(Z)
|
|
985
985
|
}, null, 8, ["render", "props"])
|
|
986
986
|
])) : Ae("", !0),
|
|
987
987
|
g("div", Wo, [
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
export interface RecentPublish {
|
|
2
|
+
recentJob?: PublishingJob | null;
|
|
3
|
+
publishedRevs?: FdoClosingTemplatePublish['publishedRev'] | null;
|
|
4
|
+
}
|
|
5
|
+
export interface PublishingJob {
|
|
6
|
+
id: string;
|
|
7
|
+
businessId: string;
|
|
8
|
+
outlets: string[];
|
|
9
|
+
completed: string[];
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
}
|
|
1
13
|
export declare const useClosingTemplateApi: () => {
|
|
14
|
+
getRecentPublishingJob(): Promise<RecentPublish>;
|
|
15
|
+
startNewPublish(): Promise<PublishingJob>;
|
|
2
16
|
getTemplate(id: string): Promise<FdoClosingTemplate>;
|
|
3
17
|
readTemplates(): Promise<FdoClosingTemplate[]>;
|
|
4
18
|
createTemplate(template: Omit<FdoClosingTemplate, '_id'>): Promise<FdoClosingTemplate>;
|
package/dist/api/inventory.d.ts
CHANGED
|
@@ -17,13 +17,10 @@ export declare const useInventoryApi: () => {
|
|
|
17
17
|
url?: string | null | undefined;
|
|
18
18
|
expiredAt?: string | null | undefined;
|
|
19
19
|
agentId?: string | null | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
name: string;
|
|
25
|
-
id: string;
|
|
26
|
-
}[];
|
|
20
|
+
attributeSettings?: {
|
|
21
|
+
type: "string" | "number" | "boolean" | "date";
|
|
22
|
+
key: string;
|
|
23
|
+
entity: "restaurant" | "item";
|
|
27
24
|
}[] | null | undefined;
|
|
28
25
|
pf_agent?: {
|
|
29
26
|
clickupId?: string | null | undefined;
|
|
@@ -412,6 +409,7 @@ export declare const useInventoryApi: () => {
|
|
|
412
409
|
}>>;
|
|
413
410
|
urls: {
|
|
414
411
|
portalBackendUrl: string;
|
|
412
|
+
netSuiteBackendUrl: string;
|
|
415
413
|
businessesBackendUrl: string;
|
|
416
414
|
inventoryBackendUrl: string;
|
|
417
415
|
foodMarketHubUrl: string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const useNetSuiteApi: () => {
|
|
2
|
+
readSetting(): Promise<{
|
|
3
|
+
accessToken?: string | null | undefined;
|
|
4
|
+
syncedAt?: string | null | undefined;
|
|
5
|
+
_id: string;
|
|
6
|
+
items: {
|
|
7
|
+
id: string;
|
|
8
|
+
netSuiteId: string;
|
|
9
|
+
unitTypeId: string;
|
|
10
|
+
unitOfMeasureId: string;
|
|
11
|
+
subsidiaryIds: string[];
|
|
12
|
+
}[];
|
|
13
|
+
enable: boolean;
|
|
14
|
+
locations: {
|
|
15
|
+
type: "restaurant" | "warehouse";
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
netSuiteId: string;
|
|
19
|
+
}[];
|
|
20
|
+
units: {
|
|
21
|
+
id: string;
|
|
22
|
+
measurements: {
|
|
23
|
+
id: string;
|
|
24
|
+
netSuiteId: string;
|
|
25
|
+
}[];
|
|
26
|
+
netSuiteId: string;
|
|
27
|
+
}[];
|
|
28
|
+
subsidiaries: {
|
|
29
|
+
parentId?: string | undefined;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
country: string;
|
|
33
|
+
currency: string;
|
|
34
|
+
}[];
|
|
35
|
+
realm: string;
|
|
36
|
+
}>;
|
|
37
|
+
urls: {
|
|
38
|
+
portalBackendUrl: string;
|
|
39
|
+
netSuiteBackendUrl: string;
|
|
40
|
+
businessesBackendUrl: string;
|
|
41
|
+
inventoryBackendUrl: string;
|
|
42
|
+
foodMarketHubUrl: string;
|
|
43
|
+
menuV4BackendUrl: string;
|
|
44
|
+
dataBackendUrl: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export declare const usePurchaseOrderTemplateApi: () => {
|
|
2
2
|
getTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
|
|
3
|
-
getLocationTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
|
|
4
|
-
getBusinessTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
|
|
5
3
|
readTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
|
|
6
|
-
readLocationTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
|
|
7
|
-
readBusinessTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
|
|
8
4
|
createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
|
|
9
5
|
updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
|
|
10
6
|
deleteTemplate(template: FdoPurchaseOrderTemplate): Promise<any>;
|