@feedmepos/mf-inventory-portal 0.0.19-dev.4 → 0.0.19-dev.5
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-CT8w22Ga.js → ApprovalView-DY_a4R25.js} +16 -15
- package/dist/{BindingsDialog-CrB5aA3X.js → BindingsDialog-GITQp9DQ.js} +1 -1
- package/dist/{BindingsPicker-jBTfZ4vJ.js → BindingsPicker-CmS01WWD.js} +5 -5
- package/dist/{BindingsTable-DaZ3Vxpn.js → BindingsTable-CsMAutCO.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BWFoHqPU.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BstbCK2r.js} +1 -1
- package/dist/{IngredientsView-DOoXPJop.js → IngredientsView-BM218iE0.js} +26 -25
- package/dist/{IntegrationView-BX1nvP-k.js → IntegrationView-DrPzZ7YF.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFConGe4.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtY633D-.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DBPQovO2.js +88 -0
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js +29 -0
- package/dist/{PurchaseOrderPrintPreview-DSXXSlof.js → PurchaseOrderPrintPreview-s_pZiI6a.js} +11 -11
- package/dist/ReceiveRequestView-De2UMTFi.js +208 -0
- package/dist/{RecipeView-DtoX2e_9.js → RecipeView-CXH_9Jbb.js} +117 -116
- package/dist/{StockView-DTnY8LfO.js → StockView-Cld0Ss_r.js} +17 -16
- package/dist/{SupplierView-CzWM2tH4.js → SupplierView-DtaCFERj.js} +6 -6
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kgcXwT9t.js +745 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-C1YU60Mq.js +1269 -0
- package/dist/TransferTemplateView-BSmhw7Vl.js +1130 -0
- package/dist/{UnitView-Bk-OLoW2.js → UnitView-BS9sJznU.js} +33 -33
- package/dist/{WarehouseView-C3F_YWO-.js → WarehouseView-D0xCjihu.js} +4 -4
- package/dist/api/purchase-order-template.d.ts +7 -0
- package/dist/{app-YOcJA0qj.js → app-Bq5a4Oca.js} +6097 -5889
- package/dist/app.d.ts +38 -0
- package/dist/app.js +5 -4
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +2 -0
- package/dist/composable/defineDeepModel.d.ts +2 -0
- package/dist/{decimal-Cr-8e35u.js → decimal-Bk4WDsfO.js} +1 -1
- package/dist/helper/country.d.ts +2 -0
- package/dist/id-to-date-DOITPfk-.js +30 -0
- package/dist/layout-Dkdyeqv8.js +147 -0
- package/dist/purchase-order-transaction-type-std52lFO.js +295 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/row-action.enum-7jVyol1k.js +36 -0
- package/dist/stores/supplier.d.ts +90 -7
- package/dist/style.css +1 -1
- package/dist/supplier-B1qyquXV.js +54 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +26 -0
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +2 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +6 -0
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +22 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialogProps.d.ts +10 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateFormProps.d.ts +7 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +18 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +116 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +112 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +470 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +289 -0
- package/dist/{xlsx-CUjMCYbh.js → xlsx-Bx1vSwYW.js} +1 -1
- package/dist/{xlsx.util-ByRzckFP.js → xlsx.util-DsOslDqG.js} +2 -2
- package/package.json +4 -4
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +0 -35
- package/dist/ReceiveRequestView-5nXXoRL_.js +0 -1394
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DIc2G2jF.js +0 -1031
- package/dist/id-to-date-9OvJMyEX.js +0 -121
- package/dist/layout-DCDPTIlR.js +0 -151
- package/dist/row-action.enum-BwQbURNh.js +0 -28
- package/dist/supplier-Bos9ifGc.js +0 -65
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { u as l, a as f } from "./xlsx-CUjMCYbh.js";
|
|
2
|
-
import { defineComponent as _, resolveComponent as d, openBlock as y, createElementBlock as h, renderSlot as F, createVNode as p, withCtx as v, createElementVNode as g, ref as k } from "vue";
|
|
3
|
-
import { n as x, j as I } from "./app-YOcJA0qj.js";
|
|
4
|
-
import { useCoreStore as w } from "@feedmepos/mf-common";
|
|
5
|
-
function S(e, t) {
|
|
6
|
-
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
7
|
-
}
|
|
8
|
-
function b(e, t) {
|
|
9
|
-
const r = t.map((s) => s.name), o = e.map((s) => S(s, t));
|
|
10
|
-
return l.aoa_to_sheet([r, ...o]);
|
|
11
|
-
}
|
|
12
|
-
async function P(e, t) {
|
|
13
|
-
const r = l.book_new();
|
|
14
|
-
for (const o of e) {
|
|
15
|
-
const s = b(
|
|
16
|
-
o.data,
|
|
17
|
-
o.columns.map((n) => typeof n == "string" ? {
|
|
18
|
-
name: n,
|
|
19
|
-
selector: n
|
|
20
|
-
} : n)
|
|
21
|
-
);
|
|
22
|
-
l.book_append_sheet(r, s, o.name);
|
|
23
|
-
}
|
|
24
|
-
await f(r, t);
|
|
25
|
-
}
|
|
26
|
-
const O = { class: "flex items-center gap-8" }, E = { class: "p-4 bg-fm-color-system-warning-100 fm-corner-radius-md flex items-center" }, B = "Experience stock lifespan estimates powered by REMY AI. Currently available as a preview, this will become a premium feature.", L = /* @__PURE__ */ _({
|
|
27
|
-
__name: "PremiumBadge",
|
|
28
|
-
props: {
|
|
29
|
-
zIndex: {}
|
|
30
|
-
},
|
|
31
|
-
setup(e) {
|
|
32
|
-
return (t, r) => {
|
|
33
|
-
const o = d("FmIcon"), s = d("FmTooltip");
|
|
34
|
-
return y(), h("div", O, [
|
|
35
|
-
F(t.$slots, "default"),
|
|
36
|
-
p(s, {
|
|
37
|
-
variant: "plain",
|
|
38
|
-
placement: "top",
|
|
39
|
-
content: B,
|
|
40
|
-
"z-index": t.zIndex
|
|
41
|
-
}, {
|
|
42
|
-
default: v(() => [
|
|
43
|
-
g("div", E, [
|
|
44
|
-
p(o, {
|
|
45
|
-
name: "hotel_class",
|
|
46
|
-
class: "text-fm-color-primary",
|
|
47
|
-
size: "sm"
|
|
48
|
-
})
|
|
49
|
-
])
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["z-index"])
|
|
53
|
-
]);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}), m = x((e, t) => {
|
|
57
|
-
const r = I(), o = w();
|
|
58
|
-
return {
|
|
59
|
-
async getInventoryForecast() {
|
|
60
|
-
var a;
|
|
61
|
-
const s = ((a = o.currentBusiness.value) == null ? void 0 : a._id) ?? "", n = r.currentLocationId ?? "", i = `${e.dataBackendUrl}/${s}/${n}/inventory-forecast`;
|
|
62
|
-
try {
|
|
63
|
-
return await t.get(i);
|
|
64
|
-
} catch {
|
|
65
|
-
return { skus: [] };
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
async getPurchaseOrderForecast(s) {
|
|
69
|
-
var u;
|
|
70
|
-
const n = ((u = o.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = r.currentLocationId ?? "", a = `${e.dataBackendUrl}/${n}/${i}/purchase-order-forecast?days=${s}`;
|
|
71
|
-
try {
|
|
72
|
-
return await t.get(a);
|
|
73
|
-
} catch {
|
|
74
|
-
return { skus: [] };
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
function $() {
|
|
80
|
-
return {
|
|
81
|
-
inventoryForecast: { skus: [] },
|
|
82
|
-
purchaseOrderForecast: { skus: [] }
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
const c = k($());
|
|
86
|
-
function T() {
|
|
87
|
-
return {
|
|
88
|
-
// state
|
|
89
|
-
get inventoryForecast() {
|
|
90
|
-
return c.value.inventoryForecast;
|
|
91
|
-
},
|
|
92
|
-
set inventoryForecast(e) {
|
|
93
|
-
c.value.inventoryForecast = e;
|
|
94
|
-
},
|
|
95
|
-
get purchaseOrderForecast() {
|
|
96
|
-
return c.value.purchaseOrderForecast;
|
|
97
|
-
},
|
|
98
|
-
set purchaseOrderForecast(e) {
|
|
99
|
-
c.value.purchaseOrderForecast = e;
|
|
100
|
-
},
|
|
101
|
-
// actions
|
|
102
|
-
async readStockEstimateBalance() {
|
|
103
|
-
const e = m();
|
|
104
|
-
this.inventoryForecast = await e.getInventoryForecast();
|
|
105
|
-
},
|
|
106
|
-
async readPurchaseOrder(e) {
|
|
107
|
-
const t = m();
|
|
108
|
-
this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function M(e) {
|
|
113
|
-
let t = e.substring(e.indexOf("_") + 1);
|
|
114
|
-
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
L as _,
|
|
118
|
-
P as e,
|
|
119
|
-
M as i,
|
|
120
|
-
T as u
|
|
121
|
-
};
|
package/dist/layout-DCDPTIlR.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { components as B, useBreakpoints as M } from "@feedmepos/ui-library";
|
|
2
|
-
import { h as i, defineComponent as I, computed as R, resolveComponent as _, openBlock as a, createBlock as x, normalizeClass as V, withCtx as L, createElementVNode as d, renderSlot as z, normalizeProps as N, guardReactiveProps as P, createElementBlock as c, Fragment as h, renderList as D, createVNode as k, unref as b, createCommentVNode as w } from "vue";
|
|
3
|
-
import { aa as E } from "./app-YOcJA0qj.js";
|
|
4
|
-
const { FmMenu: S, FmButton: $, FmMenuItem: j } = B;
|
|
5
|
-
function Q(o, n) {
|
|
6
|
-
return i(
|
|
7
|
-
S,
|
|
8
|
-
{
|
|
9
|
-
trigger: "click",
|
|
10
|
-
stopClickPropagation: !0
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"menu-button": () => i($, {
|
|
14
|
-
type: "button",
|
|
15
|
-
variant: "tertiary",
|
|
16
|
-
icon: "more_vert",
|
|
17
|
-
iconColor: "#000000",
|
|
18
|
-
size: "md"
|
|
19
|
-
}),
|
|
20
|
-
default: () => i(
|
|
21
|
-
"div",
|
|
22
|
-
{
|
|
23
|
-
style: {
|
|
24
|
-
backgroundColor: "white",
|
|
25
|
-
padding: "4px",
|
|
26
|
-
width: "160px"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
o.map(({ label: t, color: e, value: r }) => i(
|
|
30
|
-
j,
|
|
31
|
-
{
|
|
32
|
-
onClick() {
|
|
33
|
-
n(r ?? t);
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: () => i(
|
|
38
|
-
"span",
|
|
39
|
-
{
|
|
40
|
-
class: e
|
|
41
|
-
},
|
|
42
|
-
t
|
|
43
|
-
)
|
|
44
|
-
}
|
|
45
|
-
))
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* vue-table
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) TanStack
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
-
*
|
|
58
|
-
* @license MIT
|
|
59
|
-
*/
|
|
60
|
-
const y = I({
|
|
61
|
-
props: ["render", "props"],
|
|
62
|
-
setup: (o) => () => typeof o.render == "function" || typeof o.render == "object" ? i(o.render, o.props) : o.render
|
|
63
|
-
}), A = { class: "flex gap-4 w-full" }, H = { class: "flex-1" }, T = { class: "flex flex-col" }, q = { key: 0 }, G = { key: 0 }, U = /* @__PURE__ */ I({
|
|
64
|
-
__name: "TableActionableRow",
|
|
65
|
-
props: {
|
|
66
|
-
row: {},
|
|
67
|
-
onRowClick: {},
|
|
68
|
-
actionColumnId: { default: "action" }
|
|
69
|
-
},
|
|
70
|
-
setup(o) {
|
|
71
|
-
const n = o, t = R(
|
|
72
|
-
() => n.row.getVisibleCells().reduce(
|
|
73
|
-
(e, r) => (e[r.column.id] = r, e),
|
|
74
|
-
{}
|
|
75
|
-
)
|
|
76
|
-
);
|
|
77
|
-
return (e, r) => {
|
|
78
|
-
const F = _("FmListItem");
|
|
79
|
-
return a(), x(F, {
|
|
80
|
-
class: V([
|
|
81
|
-
"px-12 py-16 w-full border-b border-fm-color-neutral-gray-100",
|
|
82
|
-
{
|
|
83
|
-
"bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
|
|
84
|
-
"cursor-pointer": typeof e.onRowClick == "function"
|
|
85
|
-
}
|
|
86
|
-
]),
|
|
87
|
-
tag: "label",
|
|
88
|
-
onClick: r[0] || (r[0] = (m) => {
|
|
89
|
-
var s;
|
|
90
|
-
return (s = e.onRowClick) == null ? void 0 : s.call(e, e.row.original);
|
|
91
|
-
})
|
|
92
|
-
}, {
|
|
93
|
-
default: L(() => {
|
|
94
|
-
var m, s, p, u, f;
|
|
95
|
-
return [
|
|
96
|
-
d("div", A, [
|
|
97
|
-
d("div", H, [
|
|
98
|
-
z(e.$slots, "default", N(P(t.value)), () => [
|
|
99
|
-
d("div", T, [
|
|
100
|
-
(a(!0), c(h, null, D(n.row.getVisibleCells(), (l) => {
|
|
101
|
-
var C, g, v;
|
|
102
|
-
return a(), c(h, {
|
|
103
|
-
key: l.id
|
|
104
|
-
}, [
|
|
105
|
-
l.column.id !== e.actionColumnId ? (a(), c("div", q, [
|
|
106
|
-
k(b(y), {
|
|
107
|
-
render: (g = (C = l.column) == null ? void 0 : C.columnDef) == null ? void 0 : g.cell,
|
|
108
|
-
props: (v = l.getContext) == null ? void 0 : v.call(l)
|
|
109
|
-
}, null, 8, ["render", "props"])
|
|
110
|
-
])) : w("", !0)
|
|
111
|
-
], 64);
|
|
112
|
-
}), 128))
|
|
113
|
-
])
|
|
114
|
-
])
|
|
115
|
-
]),
|
|
116
|
-
t.value[e.actionColumnId ?? ""] ? (a(), c("div", G, [
|
|
117
|
-
d("div", null, [
|
|
118
|
-
k(b(y), {
|
|
119
|
-
render: (p = (s = (m = t.value[e.actionColumnId ?? ""]) == null ? void 0 : m.column) == null ? void 0 : s.columnDef) == null ? void 0 : p.cell,
|
|
120
|
-
props: (f = (u = t.value[e.actionColumnId ?? ""]) == null ? void 0 : u.getContext) == null ? void 0 : f.call(u)
|
|
121
|
-
}, null, 8, ["render", "props"])
|
|
122
|
-
])
|
|
123
|
-
])) : w("", !0)
|
|
124
|
-
])
|
|
125
|
-
];
|
|
126
|
-
}),
|
|
127
|
-
_: 3
|
|
128
|
-
}, 8, ["class"]);
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
function W() {
|
|
133
|
-
return {
|
|
134
|
-
get tableHeight() {
|
|
135
|
-
const o = E(), { breakpoints: n } = M();
|
|
136
|
-
return o.isIframeMode ? n.value.xs || n.value.sm ? {
|
|
137
|
-
height: "calc(100dvh - 180px)"
|
|
138
|
-
} : {
|
|
139
|
-
height: "calc(100dvh - 124px)"
|
|
140
|
-
} : {
|
|
141
|
-
height: "calc(100dvh - 180px)"
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
export {
|
|
147
|
-
y as F,
|
|
148
|
-
U as _,
|
|
149
|
-
Q as c,
|
|
150
|
-
W as u
|
|
151
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ ((t) => (t.READ = "READ", t.UPDATE = "UPDATE", t.CREATE = "CREATE", t))(e || {}), r = /* @__PURE__ */ ((t) => (t.Print = "Print", t.Update = "Update", t.Details = "Details", t.Edit = "Edit", t.Delete = "Delete", t))(r || {});
|
|
2
|
-
const l = {
|
|
3
|
-
Update: {
|
|
4
|
-
label: "Update",
|
|
5
|
-
color: "text-fm-color-typo-primary"
|
|
6
|
-
},
|
|
7
|
-
Details: {
|
|
8
|
-
label: "Details",
|
|
9
|
-
color: "text-fm-color-typo-primary"
|
|
10
|
-
},
|
|
11
|
-
Print: {
|
|
12
|
-
label: "Print",
|
|
13
|
-
color: "text-fm-color-typo-primary"
|
|
14
|
-
},
|
|
15
|
-
Edit: {
|
|
16
|
-
label: "Edit",
|
|
17
|
-
color: "text-fm-color-typo-primary"
|
|
18
|
-
},
|
|
19
|
-
Delete: {
|
|
20
|
-
label: "Delete",
|
|
21
|
-
color: "text-fm-color-typo-error"
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
l as D,
|
|
26
|
-
e as F,
|
|
27
|
-
r as R
|
|
28
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { n as u, j as o, Q as c, T as l } from "./app-YOcJA0qj.js";
|
|
2
|
-
import { ref as d } from "vue";
|
|
3
|
-
const n = u((e, r) => {
|
|
4
|
-
const a = o();
|
|
5
|
-
return {
|
|
6
|
-
async readSuppliers() {
|
|
7
|
-
const t = a.currentLocation.dbName, p = `${e.inventoryBackendUrl}/${t}/supplier`;
|
|
8
|
-
return await r.get(p);
|
|
9
|
-
},
|
|
10
|
-
async createSupplier(t) {
|
|
11
|
-
const p = a.currentLocation.dbName, i = `${e.inventoryBackendUrl}/${p}/supplier`;
|
|
12
|
-
return await r.post(i, t);
|
|
13
|
-
},
|
|
14
|
-
async updateSupplier(t) {
|
|
15
|
-
const p = a.currentLocation.dbName, i = `${e.inventoryBackendUrl}/${p}/supplier`;
|
|
16
|
-
return await r.put(i, t);
|
|
17
|
-
},
|
|
18
|
-
async deleteSupplier(t) {
|
|
19
|
-
const p = a.currentLocation.dbName, i = `${e.inventoryBackendUrl}/${p}/supplier`;
|
|
20
|
-
return await r.delete(i, t);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
function S() {
|
|
25
|
-
return {
|
|
26
|
-
suppliers: []
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const s = d(S());
|
|
30
|
-
function A() {
|
|
31
|
-
return {
|
|
32
|
-
// state
|
|
33
|
-
get suppliers() {
|
|
34
|
-
return s.value.suppliers;
|
|
35
|
-
},
|
|
36
|
-
set suppliers(e) {
|
|
37
|
-
s.value.suppliers = e;
|
|
38
|
-
},
|
|
39
|
-
// action
|
|
40
|
-
async readSuppliers() {
|
|
41
|
-
const e = n();
|
|
42
|
-
this.suppliers = await e.readSuppliers();
|
|
43
|
-
},
|
|
44
|
-
async createSupplier(e) {
|
|
45
|
-
await n().createSupplier(e);
|
|
46
|
-
},
|
|
47
|
-
async updateSupplier(e) {
|
|
48
|
-
await n().updateSupplier(e);
|
|
49
|
-
},
|
|
50
|
-
async deleteSupplier(e) {
|
|
51
|
-
await n().deleteSupplier(e);
|
|
52
|
-
},
|
|
53
|
-
async init() {
|
|
54
|
-
const e = c();
|
|
55
|
-
try {
|
|
56
|
-
await this.readSuppliers();
|
|
57
|
-
} catch (r) {
|
|
58
|
-
throw r instanceof l || e.error("Error at reading suppliers"), r;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
A as u
|
|
65
|
-
};
|