@feedmepos/mf-inventory-portal 1.0.36-dev.7 → 1.0.37-dev.1
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-Cw7dAyRr.js → App-DomXC0uh.js} +46 -47
- package/dist/{ApprovalView-uzxVamAD.js → ApprovalView-DnINEwhh.js} +20 -20
- package/dist/{BindingsDialog-CjAyz7qd.js → BindingsDialog-MstJl2hJ.js} +10 -10
- package/dist/{BindingsPicker-VWQEClDc.js → BindingsPicker-BCgoeZK5.js} +1 -1
- package/dist/{BindingsTable-D_AidNg-.js → BindingsTable-knJs1DaE.js} +4 -4
- package/dist/{ClosingDraftView-DnPQE4xl.js → ClosingDraftView-Cg4siKrJ.js} +27 -27
- package/dist/{ClosingTemplateView-BzeUoP0S.js → ClosingTemplateView-D7nxxW1T.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CQBfbvjK.js → DeliveryOrderPrintPreview-DUqWxzpS.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C5iYx065.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMeIIyKI.js} +11 -11
- package/dist/{FmMultiselectDialog-DLZju68a.js → FmMultiselectDialog-H6rOzolY.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-elcx6AO6.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAk4KHnz.js} +31 -31
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMmGsyfI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-SxPkPzU1.js} +1 -1
- package/dist/{IngredientGroupView-bFYU22r_.js → IngredientGroupView-CAA69KE_.js} +21 -21
- package/dist/{IngredientsView-BrfeKO6V.js → IngredientsView-BYhDmhQb.js} +42 -43
- package/dist/IntegrationView-CGBFyLWN.js +3303 -0
- package/dist/{InventoryBindingForm-DrNO6vLb.js → InventoryBindingForm-X-CFcWEY.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU_Nt6VM.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CwV5nKPo.js} +18 -18
- package/dist/{InventoryBindingSummary-BztWC0Gi.js → InventoryBindingSummary-Cch1pODC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-OvRfk02N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Uc6h5Apn.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BsbrYUky.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcWa_Dww.js} +10 -10
- package/dist/{PublishView-BwmvDibM.js → PublishView-DCAdzucX.js} +19 -19
- package/dist/{PurchaseOrderPrintPreview-DRo0ctOc.js → PurchaseOrderPrintPreview-IDiFQ15P.js} +12 -12
- package/dist/{ReceiveRequestView-yb4E_Dg6.js → ReceiveRequestView-7eslFHYc.js} +106 -107
- package/dist/{RecipeView-Dyf9kDoR.js → RecipeView-DOLJ5Gsx.js} +38 -39
- package/dist/{StockView-Cg-KD9qT.js → StockView-vCgmnyKT.js} +68 -69
- package/dist/{SupplierView-BtVTg_Ht.js → SupplierView-B6xdSB6T.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-lNmQ3zTi.js → TransferDetails.vue_vue_type_script_setup_true_lang-DrfHulTL.js} +105 -106
- package/dist/{TransferTemplateView-AUp2tI1x.js → TransferTemplateView-g1V3JX-5.js} +143 -144
- package/dist/{UnitView-BgbQjCfN.js → UnitView-BD28XnQL.js} +19 -19
- package/dist/{WarehouseView-BedfDS6s.js → WarehouseView-Cjgl43Xz.js} +14 -14
- package/dist/api/netsuite.d.ts +2 -0
- package/dist/app-dN4odAZ8.js +124833 -0
- package/dist/app.js +6 -6
- package/dist/{decimal-uKQOh7Qw.js → decimal-Blq-Ws2M.js} +1 -1
- package/dist/{format-unit-display-EMi6Weg0.js → format-unit-display-CzANmeBd.js} +13 -13
- package/dist/{index-B4jwhkHY.js → index-61_R9xfw.js} +3 -4
- package/dist/{index-BN_lVBL8.js → index-B8dsKHa4.js} +1 -1
- package/dist/{stock-SaEl13YM.js → stock-D7E6dj7b.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +1 -0
- package/dist/{supplier-hdrIxTLp.js → supplier-UeD3tjJh.js} +25 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B7XYGX1J.js → use-ingredient-select-dialog-CydPG1Ol.js} +1 -1
- package/dist/{use-inventory-binding-dialog-t7XQb2UV.js → use-inventory-binding-dialog-DzRlrnI6.js} +1 -1
- package/dist/views/integration/components/netsuite/InventoryTransferOutTable.vue.d.ts +2 -0
- package/dist/{vue-i18n-DBsdCMy_.js → vue-i18n-D64xeCoR.js} +285 -285
- package/package.json +1 -1
- package/dist/IntegrationView-KlnDvvRE.js +0 -6531
- package/dist/app-nDgEuY-Q.js +0 -102338
- package/dist/feature-_ggdK-7_.js +0 -19100
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { defineComponent as K, ref as E, onMounted as re, resolveComponent as $, openBlock as F, createElementBlock as B, Fragment as ie, createElementVNode as h, toDisplayString as ue, createVNode as g, createCommentVNode as O, computed as k, watch as ce, createBlock as N, withCtx as P, unref as b, isRef as ee, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
|
|
2
|
-
import { a as A,
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { i as
|
|
5
|
-
import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { defineStore as
|
|
2
|
+
import { a as A, e as V, f as Q, S as ye, h as ge, D as te, i as Y, j as U, F as H, m as be, U as _e, A as we, c as Re, q as ne, r as he, v as xe, s as Se, u as Ve, B as Ce, _ as Ee, C as Fe, E as $e, G as oe } from "./app-dN4odAZ8.js";
|
|
3
|
+
import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as Ie } from "@feedmepos/ui-library";
|
|
4
|
+
import { i as De, _ as Ae } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
+
import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-SxPkPzU1.js";
|
|
6
|
+
import { defineStore as Be, storeToRefs as Pe } from "pinia";
|
|
7
7
|
import { useI18n as q } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { u as Ue } from "./feature-_ggdK-7_.js";
|
|
8
|
+
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CwV5nKPo.js";
|
|
9
|
+
import { _ as Ue } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
11
10
|
const Me = {
|
|
12
11
|
key: 0,
|
|
13
12
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
14
|
-
}, Ne = { key: 1 },
|
|
13
|
+
}, Ne = { key: 1 }, Le = { key: 0 }, ze = /* @__PURE__ */ K({
|
|
15
14
|
__name: "DeleteDialog",
|
|
16
15
|
props: {
|
|
17
16
|
type: {},
|
|
@@ -41,7 +40,7 @@ const Me = {
|
|
|
41
40
|
g(v)
|
|
42
41
|
])) : (F(), B("div", Ne, [
|
|
43
42
|
i[2] || (i[2] = h("br", null, null, -1)),
|
|
44
|
-
f.value.length > 0 ? (F(), B("div",
|
|
43
|
+
f.value.length > 0 ? (F(), B("div", Le, [
|
|
45
44
|
i[1] || (i[1] = h("p", { class: "fm-typo-en-body-lg-600" }, "Affected menu items:", -1)),
|
|
46
45
|
g(le, {
|
|
47
46
|
name: "Menu",
|
|
@@ -52,8 +51,8 @@ const Me = {
|
|
|
52
51
|
], 64);
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
|
-
}), J =
|
|
56
|
-
const p =
|
|
54
|
+
}), J = Be("recipeForm", function() {
|
|
55
|
+
const p = ke(), f = se(), l = A(), r = E(!1), c = E();
|
|
57
56
|
function i() {
|
|
58
57
|
const t = {
|
|
59
58
|
recipe: {},
|
|
@@ -85,9 +84,9 @@ const Me = {
|
|
|
85
84
|
type: "success"
|
|
86
85
|
});
|
|
87
86
|
} catch (n) {
|
|
88
|
-
n instanceof ye &&
|
|
87
|
+
n instanceof ye && De(n) ? p.open({
|
|
89
88
|
title: "Cannot delete recipe",
|
|
90
|
-
contentComponent:
|
|
89
|
+
contentComponent: Ae,
|
|
91
90
|
contentComponentProps: {
|
|
92
91
|
subject: (t == null ? void 0 : t.name) ?? "",
|
|
93
92
|
items: n.errorResponse.message
|
|
@@ -118,7 +117,7 @@ const Me = {
|
|
|
118
117
|
text: "Cancel",
|
|
119
118
|
close: !0
|
|
120
119
|
},
|
|
121
|
-
contentComponent:
|
|
120
|
+
contentComponent: ze,
|
|
122
121
|
contentComponentProps: {
|
|
123
122
|
type: "menu",
|
|
124
123
|
data: t,
|
|
@@ -138,11 +137,11 @@ function Ge() {
|
|
|
138
137
|
const { updateRecipe: w, deleteRecipe: p } = J(), f = A(), { t: l } = q();
|
|
139
138
|
async function r(d, u) {
|
|
140
139
|
const t = Q(u);
|
|
141
|
-
if (d ===
|
|
140
|
+
if (d === Y.Edit) {
|
|
142
141
|
await w(t);
|
|
143
142
|
return;
|
|
144
143
|
}
|
|
145
|
-
if (d ===
|
|
144
|
+
if (d === Y.Delete) {
|
|
146
145
|
await p(t);
|
|
147
146
|
return;
|
|
148
147
|
}
|
|
@@ -175,7 +174,7 @@ function Ge() {
|
|
|
175
174
|
header: "",
|
|
176
175
|
cell(d) {
|
|
177
176
|
return ge(
|
|
178
|
-
[te[
|
|
177
|
+
[te[Y.Edit], te[Y.Delete]],
|
|
179
178
|
(u) => {
|
|
180
179
|
r(u, d.row.original.original);
|
|
181
180
|
}
|
|
@@ -207,7 +206,7 @@ function Ge() {
|
|
|
207
206
|
}
|
|
208
207
|
return { columnDefs: i, formatRowData: v };
|
|
209
208
|
}
|
|
210
|
-
const
|
|
209
|
+
const je = { class: "flex flex-col gap-40" }, Ye = {
|
|
211
210
|
key: 0,
|
|
212
211
|
class: "col-span-2 mt-16 border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
|
|
213
212
|
}, Ke = {
|
|
@@ -223,7 +222,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
223
222
|
emits: ["update:modelValue", "click:submit"],
|
|
224
223
|
setup(w, { expose: p, emit: f }) {
|
|
225
224
|
var R;
|
|
226
|
-
const l = w, r = f, c =
|
|
225
|
+
const l = w, r = f, c = Re(), { t: i } = q(), v = k({
|
|
227
226
|
get() {
|
|
228
227
|
var e;
|
|
229
228
|
return ((e = l.modelValue) == null ? void 0 : e.name) ?? "";
|
|
@@ -283,14 +282,14 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
283
282
|
() => m.recipes.map((e) => ({ label: e.name, value: e.name }))
|
|
284
283
|
), x = E((R = l.modelValue) == null ? void 0 : R.name);
|
|
285
284
|
return (e, s) => {
|
|
286
|
-
const I = $("FmTextField"), D = $("FmCard"),
|
|
285
|
+
const I = $("FmTextField"), D = $("FmCard"), L = $("FmSwitch"), M = $("FmSpacer"), z = $("FmCircularProgress"), T = $("FmForm");
|
|
287
286
|
return F(), N(T, {
|
|
288
287
|
ref_key: "formRef",
|
|
289
288
|
ref: n,
|
|
290
289
|
onValidationSuccess: t
|
|
291
290
|
}, {
|
|
292
291
|
default: P(() => [
|
|
293
|
-
h("div",
|
|
292
|
+
h("div", je, [
|
|
294
293
|
g(I, {
|
|
295
294
|
disabled: e.disabled,
|
|
296
295
|
label: b(i)("inventory.recipe.name"),
|
|
@@ -309,7 +308,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
309
308
|
default: P(() => {
|
|
310
309
|
var S;
|
|
311
310
|
return [
|
|
312
|
-
g(
|
|
311
|
+
g(Te, {
|
|
313
312
|
id: (S = e.modelValue) == null ? void 0 : S._id,
|
|
314
313
|
disabled: e.disabled,
|
|
315
314
|
"model-value": d.value,
|
|
@@ -322,8 +321,8 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
322
321
|
_: 1
|
|
323
322
|
})
|
|
324
323
|
]),
|
|
325
|
-
e.mode !== b(V).CREATE ? (F(), B("div",
|
|
326
|
-
g(
|
|
324
|
+
e.mode !== b(V).CREATE ? (F(), B("div", Ye, [
|
|
325
|
+
g(L, {
|
|
327
326
|
label: "Show binded items",
|
|
328
327
|
modelValue: _.value,
|
|
329
328
|
"onUpdate:modelValue": s[2] || (s[2] = (S) => _.value = S),
|
|
@@ -333,7 +332,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
333
332
|
a.value ? (F(), B("div", Ke, [
|
|
334
333
|
g(M),
|
|
335
334
|
h("div", null, [
|
|
336
|
-
g(
|
|
335
|
+
g(z, { size: "xl" })
|
|
337
336
|
]),
|
|
338
337
|
s[4] || (s[4] = h("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
|
|
339
338
|
g(M)
|
|
@@ -345,7 +344,7 @@ const Ye = { class: "flex flex-col gap-40" }, je = {
|
|
|
345
344
|
])) : O("", !0)
|
|
346
345
|
])) : O("", !0),
|
|
347
346
|
h("div", He, [
|
|
348
|
-
g(
|
|
347
|
+
g(Ue, {
|
|
349
348
|
entity: "inventoryRecipe",
|
|
350
349
|
modelValue: u.value,
|
|
351
350
|
"onUpdate:modelValue": s[3] || (s[3] = (S) => u.value = S)
|
|
@@ -524,23 +523,23 @@ function Xe() {
|
|
|
524
523
|
...d === 0 ? [] : [["", "", "", "", "", "", ""]],
|
|
525
524
|
[v.name, "No bindings", "", "", "", "", u]
|
|
526
525
|
];
|
|
527
|
-
}), i =
|
|
528
|
-
|
|
526
|
+
}), i = he(r, ["Name", "Type", "Code", "Item", "Amount", "Unit", "Custom Attributes"]);
|
|
527
|
+
xe(i, `RECIPE_${Se(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
|
|
529
528
|
}
|
|
530
|
-
const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
529
|
+
const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dt = /* @__PURE__ */ K({
|
|
531
530
|
__name: "RecipeView",
|
|
532
531
|
setup(w) {
|
|
533
|
-
const p = A(), f = k(() => p.recipes), l =
|
|
532
|
+
const p = A(), f = k(() => p.recipes), l = Ve(), { createRecipe: r, updateRecipe: c } = J(), { recipeDialogProps: i, recipeViewLoading: v } = Pe(J()), { columnDefs: d, formatRowData: u } = Ge(), t = k(() => u(f.value));
|
|
534
533
|
function n(R) {
|
|
535
534
|
if (R === "add")
|
|
536
535
|
return r();
|
|
537
536
|
if (R === "export")
|
|
538
537
|
return Xe();
|
|
539
538
|
}
|
|
540
|
-
const m = E(""), o = k(() => v.value), { breakpoints: _ } =
|
|
539
|
+
const m = E(""), o = k(() => v.value), { breakpoints: _ } = Ie(), a = k(() => _.value.xs || _.value.sm), y = k(() => a.value ? 10 : 20), C = Ce(), { t: x } = q();
|
|
541
540
|
return (R, e) => {
|
|
542
541
|
const s = $("FmTable");
|
|
543
|
-
return F(), N(
|
|
542
|
+
return F(), N(Ee, {
|
|
544
543
|
title: b(x)("inventory.recipe.title"),
|
|
545
544
|
actions: [
|
|
546
545
|
{
|
|
@@ -563,7 +562,7 @@ const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-60
|
|
|
563
562
|
}
|
|
564
563
|
])
|
|
565
564
|
}, [
|
|
566
|
-
g(
|
|
565
|
+
g(Fe, {
|
|
567
566
|
searchable: "",
|
|
568
567
|
search: m.value,
|
|
569
568
|
"onUpdate:search": e[0] || (e[0] = (I) => m.value = I)
|
|
@@ -579,24 +578,24 @@ const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-60
|
|
|
579
578
|
"page-size": y.value
|
|
580
579
|
}, {
|
|
581
580
|
"list-row": P((I) => [
|
|
582
|
-
g(
|
|
581
|
+
g($e, {
|
|
583
582
|
row: I,
|
|
584
583
|
onRowClick: (D) => b(c)(D.original)
|
|
585
584
|
}, {
|
|
586
585
|
default: P((D) => {
|
|
587
|
-
var
|
|
586
|
+
var L, M, z, T, S, G, W, X, j, Z;
|
|
588
587
|
return [
|
|
589
588
|
h("div", Ze, [
|
|
590
589
|
h("div", et, [
|
|
591
590
|
g(b(oe), {
|
|
592
|
-
render: (
|
|
591
|
+
render: (z = (M = (L = D.recipe) == null ? void 0 : L.column) == null ? void 0 : M.columnDef) == null ? void 0 : z.cell,
|
|
593
592
|
props: (S = (T = D.recipe) == null ? void 0 : T.getContext) == null ? void 0 : S.call(T)
|
|
594
593
|
}, null, 8, ["render", "props"])
|
|
595
594
|
]),
|
|
596
595
|
h("div", tt, [
|
|
597
596
|
g(b(oe), {
|
|
598
597
|
render: (X = (W = (G = D.ingredients) == null ? void 0 : G.column) == null ? void 0 : W.columnDef) == null ? void 0 : X.cell,
|
|
599
|
-
props: (Z = (
|
|
598
|
+
props: (Z = (j = D.ingredients) == null ? void 0 : j.getContext) == null ? void 0 : Z.call(j)
|
|
600
599
|
}, null, 8, ["render", "props"])
|
|
601
600
|
])
|
|
602
601
|
])
|
|
@@ -618,5 +617,5 @@ const Ze = { class: "flex flex-col py-8" }, et = { class: "fm-typo-en-body-lg-60
|
|
|
618
617
|
}
|
|
619
618
|
});
|
|
620
619
|
export {
|
|
621
|
-
|
|
620
|
+
dt as default
|
|
622
621
|
};
|