@feedmepos/mf-inventory-portal 1.2.7-dev.2 → 1.2.7-dev.4
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-CBwWCCOM.js → App-C36fMhxq.js} +1 -1
- package/dist/{ApprovalView-BrRGheio.js → ApprovalView-BK-UXBwv.js} +26 -26
- package/dist/{BindingsDialog-BSPkkRis.js → BindingsDialog-C5ry8Cg7.js} +2 -2
- package/dist/{BindingsPicker-L3XnC3__.js → BindingsPicker-D1lrIB-Y.js} +1 -1
- package/dist/{BindingsTable-CgUm0Ity.js → BindingsTable-CoWyge2-.js} +1 -1
- package/dist/{ClosingDraftView-D_gq2fCk.js → ClosingDraftView-FFi85ylu.js} +203 -203
- package/dist/{ClosingTemplateView-Q16zr6EV.js → ClosingTemplateView-BvSH7TM0.js} +53 -53
- package/dist/{DeliveryOrderPrintPreview-mVDQO6Xq.js → DeliveryOrderPrintPreview-BVVWnadB.js} +9 -9
- package/dist/{FmAdminBadge-Cjy6QPoR.js → FmAdminBadge-DtBVrN_M.js} +6 -6
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnH2Qxnr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CSigrMC2.js} +21 -21
- package/dist/{FmMultiselectDialog-BbYhJk_O.js → FmMultiselectDialog-Df50mxnw.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D0qlxGgo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CdSQVfaU.js} +27 -27
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CCuLSITo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-A7Pgq3Sl.js} +1 -1
- package/dist/{IngredientGroupView-CJ9Rsfg-.js → IngredientGroupView-BVM3Um9Z.js} +12 -12
- package/dist/IngredientsView-75ahXQeJ.js +2271 -0
- package/dist/{IntegrationView-B4giJ-Zl.js → IntegrationView-DEUOEn_W.js} +84 -84
- package/dist/{InventoryBindingForm-bNRoyTsA.js → InventoryBindingForm-C2HvBwlT.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAaoOXUY.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CXJSFCLP.js} +41 -41
- package/dist/{InventoryBindingSummary-NfFve-nM.js → InventoryBindingSummary-B-V9QkyH.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DP11tzty.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BELqcyvD.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-yjjkBSqL.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BBE5_txM.js} +5 -5
- package/dist/{PublishView-w9GYA6kf.js → PublishView-DKkCs9F8.js} +17 -17
- package/dist/{PurchaseOrderPrintPreview-DmdDJmEq.js → PurchaseOrderPrintPreview-BvFR-uQk.js} +9 -9
- package/dist/{ReceiveRequestView-z4o7lZvK.js → ReceiveRequestView-BIrBMqdY.js} +80 -80
- package/dist/{RecipeView-DiiQtfXn.js → RecipeView-CI_Tec4J.js} +49 -49
- package/dist/{StockView-DKR2nFdm.js → StockView-Bx3lqHZg.js} +327 -327
- package/dist/{SupplierView-BJcU4iQk.js → SupplierView-BT2aZGQE.js} +1103 -1016
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-UNVxzRmJ.js → TransferDetails.vue_vue_type_script_setup_true_lang-DWdnLRCB.js} +245 -245
- package/dist/{TransferTemplateView-rCbAWlh_.js → TransferTemplateView-DQtlCFze.js} +88 -87
- package/dist/{UnitView-BW9hbVHL.js → UnitView-h61yFjgP.js} +59 -59
- package/dist/{WarehouseView-BO0hf42-.js → WarehouseView-I8GqyD2C.js} +25 -25
- package/dist/api/netsuite.d.ts +3 -0
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/{app-ChezCkd5.js → app-CxSrmhCK.js} +6888 -6786
- package/dist/app.d.ts +57 -0
- package/dist/app.js +3 -3
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
- package/dist/components/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/{decimal-1sc-GcXN.js → decimal-DpfcXNky.js} +1 -1
- package/dist/{format-unit-display-BK2TkQOA.js → format-unit-display-xov4MvuI.js} +368 -400
- package/dist/{index-CWivxw9k.js → index-B4hWNXtZ.js} +1 -1
- package/dist/{index-cLW2Uxz3.js → index-CwzV_5fz.js} +1 -1
- package/dist/purchase-order-template-DkBl6qMP.js +41 -0
- package/dist/{stock-FEj_v-SS.js → stock-Nt176YY7.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +10 -0
- package/dist/{supplier-2r8VFThu.js → supplier-B7gAUwhb.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CvgFQA-k.js → use-ingredient-select-dialog-9HkEvXXS.js} +5 -5
- package/dist/{use-inventory-binding-dialog-BNp88Pjt.js → use-inventory-binding-dialog-pSVgqxMM.js} +8 -8
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +16 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +4 -0
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/package.json +1 -1
- package/dist/IngredientsView-BbKzQnQP.js +0 -1886
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
1
|
+
import { defineComponent as K, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Z, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
|
|
2
|
+
import { a as O, e as U, S as pe, h as ve, D as ne, i as z, f as se, Y as fe, o as j, A as ye, k as J, Z as be, $ as ge, v as oe, u as xe, b as _e, K as he, _ as Ve, L as Ue, O as we, P as Ce } from "./app-CxSrmhCK.js";
|
|
3
3
|
import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
4
|
-
import { i as Fe, _ as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { F as De } from "./decimal-
|
|
8
|
-
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { i as Fe, _ as $e } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
+
import { defineStore as Ee, storeToRefs as Ie } from "pinia";
|
|
6
|
+
import { useI18n as Y } from "@feedmepos/mf-common";
|
|
7
|
+
import { F as De } from "./decimal-DpfcXNky.js";
|
|
8
|
+
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BELqcyvD.js";
|
|
9
9
|
const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|
|
@@ -15,22 +15,22 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
15
15
|
}, Be = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "flex flex-col"
|
|
18
|
-
},
|
|
18
|
+
}, Le = { class: "flex-1 py-8 px-16" }, Ne = {
|
|
19
19
|
class: "flex-0 py-8 px-16",
|
|
20
20
|
style: { "flex-basis": "240px" }
|
|
21
|
-
},
|
|
21
|
+
}, ze = {
|
|
22
22
|
key: 2,
|
|
23
23
|
class: "flex flex-col"
|
|
24
24
|
}, je = { class: "flex-1 py-8 px-16" }, qe = {
|
|
25
25
|
class: "flex-0 py-8 px-16",
|
|
26
26
|
style: { "flex-basis": "240px" }
|
|
27
|
-
}, He = /* @__PURE__ */
|
|
27
|
+
}, He = /* @__PURE__ */ K({
|
|
28
28
|
__name: "UnitUsedBy",
|
|
29
29
|
props: {
|
|
30
30
|
unit: {}
|
|
31
31
|
},
|
|
32
32
|
setup(F) {
|
|
33
|
-
const c = F, y =
|
|
33
|
+
const c = F, y = O(), m = b(() => y.validateUnitUsage(c.unit)), a = b(() => m.value.filter((n) => n.from === "INGREDIENT")), r = b(() => m.value.filter((n) => n.from === "RECIPE")), d = b(() => m.value.filter((n) => n.from === "MENU"));
|
|
34
34
|
return (n, p) => (v(), w("div", Re, [
|
|
35
35
|
p[3] || (p[3] = s("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
|
|
36
36
|
a.value.length ? (v(), w("div", Me, [
|
|
@@ -51,7 +51,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
51
51
|
s("div", Te, V((t = i.bindedIngredient) != null && t.length ? "Convert binding" : "Item unit"), 1)
|
|
52
52
|
]);
|
|
53
53
|
}), 128))
|
|
54
|
-
])) :
|
|
54
|
+
])) : Z("", !0),
|
|
55
55
|
r.value.length ? (v(), w("div", Be, [
|
|
56
56
|
p[1] || (p[1] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
57
57
|
s("div", { class: "flex-1 py-8 px-16" }, "Recipe"),
|
|
@@ -66,12 +66,12 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
66
66
|
key: i.code,
|
|
67
67
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
68
68
|
}, [
|
|
69
|
-
s("div",
|
|
70
|
-
s("div",
|
|
69
|
+
s("div", Le, V(i.code) + " " + V(i.name), 1),
|
|
70
|
+
s("div", Ne, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
|
|
71
71
|
]);
|
|
72
72
|
}), 128))
|
|
73
|
-
])) :
|
|
74
|
-
d.value.length ? (v(), w("div",
|
|
73
|
+
])) : Z("", !0),
|
|
74
|
+
d.value.length ? (v(), w("div", ze, [
|
|
75
75
|
p[2] || (p[2] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
76
76
|
s("div", { class: "flex-1 py-8 px-16" }, "Menu"),
|
|
77
77
|
s("div", {
|
|
@@ -89,11 +89,11 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
89
89
|
s("div", qe, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
|
|
90
90
|
]);
|
|
91
91
|
}), 128))
|
|
92
|
-
])) :
|
|
92
|
+
])) : Z("", !0)
|
|
93
93
|
]));
|
|
94
94
|
}
|
|
95
|
-
}), Q =
|
|
96
|
-
const c = Se(), y = ae(), m =
|
|
95
|
+
}), Q = Ee("unitForm", function() {
|
|
96
|
+
const c = Se(), y = ae(), m = O(), a = R(!1), r = R();
|
|
97
97
|
function d() {
|
|
98
98
|
const t = {
|
|
99
99
|
unit: {},
|
|
@@ -127,7 +127,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
127
127
|
} catch (u) {
|
|
128
128
|
u instanceof pe && Fe(u) ? c.open({
|
|
129
129
|
title: "Cannot delete unit",
|
|
130
|
-
contentComponent:
|
|
130
|
+
contentComponent: $e,
|
|
131
131
|
contentComponentProps: {
|
|
132
132
|
subject: (t == null ? void 0 : t.name) ?? "",
|
|
133
133
|
items: u.errorResponse.message
|
|
@@ -186,15 +186,15 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
|
186
186
|
unitViewLoading: a
|
|
187
187
|
};
|
|
188
188
|
});
|
|
189
|
-
function
|
|
190
|
-
const { updateUnit: F, deleteUnit: c } = Q(), { t: y } =
|
|
189
|
+
function Ke() {
|
|
190
|
+
const { updateUnit: F, deleteUnit: c } = Q(), { t: y } = Y();
|
|
191
191
|
async function m(r, d) {
|
|
192
192
|
const n = se(d);
|
|
193
|
-
if (r ===
|
|
193
|
+
if (r === z.Edit) {
|
|
194
194
|
await F(n);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
if (r ===
|
|
197
|
+
if (r === z.Delete) {
|
|
198
198
|
await c(n);
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
@@ -217,7 +217,7 @@ function Ge() {
|
|
|
217
217
|
header: "",
|
|
218
218
|
cell(r) {
|
|
219
219
|
return ve(
|
|
220
|
-
[ne[
|
|
220
|
+
[ne[z.Edit], ne[z.Delete]],
|
|
221
221
|
(d) => {
|
|
222
222
|
m(d, r.row.original);
|
|
223
223
|
}
|
|
@@ -232,7 +232,7 @@ function Ge() {
|
|
|
232
232
|
}
|
|
233
233
|
] };
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ge = { class: "flex-1" }, Ze = { class: "flex-1" }, Je = { class: "flex" }, Qe = { class: "flex items-center" }, We = { class: "fm-typo-en-body-lg-600 flex-grow" }, Xe = { class: "flex flex-col gap-24" }, et = { class: "flex gap-24" }, tt = { class: "flex-1" }, nt = { class: "flex-1" }, ot = /* @__PURE__ */ K({
|
|
236
236
|
__name: "UnitForm",
|
|
237
237
|
props: {
|
|
238
238
|
mode: {},
|
|
@@ -241,7 +241,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
241
241
|
},
|
|
242
242
|
emits: ["update:modelValue", "click:submit"],
|
|
243
243
|
setup(F, { expose: c, emit: y }) {
|
|
244
|
-
const m = F, a = y, { t: r } =
|
|
244
|
+
const m = F, a = y, { t: r } = Y();
|
|
245
245
|
function d() {
|
|
246
246
|
a("click:submit");
|
|
247
247
|
}
|
|
@@ -335,8 +335,8 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
335
335
|
(o = (e = S.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
|
|
336
336
|
}
|
|
337
337
|
}), (e, o) => {
|
|
338
|
-
const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"),
|
|
339
|
-
return v(), T(
|
|
338
|
+
const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"), G = I("FmCard"), E = I("FmForm");
|
|
339
|
+
return v(), T(E, {
|
|
340
340
|
ref_key: "formRef",
|
|
341
341
|
ref: S,
|
|
342
342
|
class: "flex flex-col gap-40",
|
|
@@ -345,9 +345,9 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
345
345
|
default: A(() => {
|
|
346
346
|
var P;
|
|
347
347
|
return [
|
|
348
|
-
s("div",
|
|
349
|
-
s("div",
|
|
350
|
-
s("div",
|
|
348
|
+
s("div", Oe, [
|
|
349
|
+
s("div", Ye, [
|
|
350
|
+
s("div", Ge, [
|
|
351
351
|
f(x, {
|
|
352
352
|
disabled: e.disabled,
|
|
353
353
|
label: l(r)("inventory.unit.name"),
|
|
@@ -357,7 +357,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
357
357
|
"label-mark": "required"
|
|
358
358
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
359
359
|
]),
|
|
360
|
-
s("div",
|
|
360
|
+
s("div", Ze, [
|
|
361
361
|
f(x, {
|
|
362
362
|
disabled: e.disabled,
|
|
363
363
|
label: l(r)("inventory.unit.symbol"),
|
|
@@ -379,7 +379,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
379
379
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
380
380
|
])
|
|
381
381
|
]),
|
|
382
|
-
s("div",
|
|
382
|
+
s("div", Je, [
|
|
383
383
|
f(_, {
|
|
384
384
|
disabled: e.disabled,
|
|
385
385
|
type: "button",
|
|
@@ -389,22 +389,22 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
389
389
|
onClick: g
|
|
390
390
|
}, null, 8, ["disabled", "label"])
|
|
391
391
|
]),
|
|
392
|
-
(v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(
|
|
392
|
+
(v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(G, {
|
|
393
393
|
class: "flex flex-col gap-16 p-16",
|
|
394
394
|
variant: "outlined",
|
|
395
395
|
key: k.id
|
|
396
396
|
}, {
|
|
397
397
|
default: A(() => [
|
|
398
398
|
s("div", Qe, [
|
|
399
|
-
s("div",
|
|
399
|
+
s("div", We, V(l(r)("inventory.unit.measurement.measurementDefault", [h + 1])), 1),
|
|
400
400
|
f(_, {
|
|
401
401
|
disabled: e.disabled,
|
|
402
402
|
variant: "tertiary",
|
|
403
403
|
"prepend-icon": "delete",
|
|
404
|
-
onClick: (
|
|
404
|
+
onClick: ($) => C(h)
|
|
405
405
|
}, null, 8, ["disabled", "onClick"])
|
|
406
406
|
]),
|
|
407
|
-
s("div",
|
|
407
|
+
s("div", Xe, [
|
|
408
408
|
s("div", et, [
|
|
409
409
|
s("div", tt, [
|
|
410
410
|
f(x, {
|
|
@@ -412,7 +412,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
412
412
|
class: "col-span-2",
|
|
413
413
|
label: l(r)("inventory.unit.measurement.name"),
|
|
414
414
|
modelValue: e.modelValue.measurements[h].name,
|
|
415
|
-
"onUpdate:modelValue": (
|
|
415
|
+
"onUpdate:modelValue": ($) => e.modelValue.measurements[h].name = $,
|
|
416
416
|
rules: [l(j)()],
|
|
417
417
|
"label-mark": "required"
|
|
418
418
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
@@ -422,7 +422,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
422
422
|
disabled: e.disabled,
|
|
423
423
|
label: l(r)("inventory.unit.measurement.symbol"),
|
|
424
424
|
modelValue: e.modelValue.measurements[h].abbrev,
|
|
425
|
-
"onUpdate:modelValue": (
|
|
425
|
+
"onUpdate:modelValue": ($) => e.modelValue.measurements[h].abbrev = $,
|
|
426
426
|
rules: [l(j)()],
|
|
427
427
|
"label-mark": "required"
|
|
428
428
|
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
@@ -432,21 +432,21 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
432
432
|
disabled: e.disabled,
|
|
433
433
|
class: "col-span-3",
|
|
434
434
|
label: l(r)("inventory.unit.measurement.conversion"),
|
|
435
|
-
"model-value": +l(
|
|
436
|
-
"onUpdate:modelValue": (
|
|
435
|
+
"model-value": +l(J)(e.modelValue.measurements[h].conversion),
|
|
436
|
+
"onUpdate:modelValue": ($) => u.value = u.value.map(
|
|
437
437
|
(D, B) => B === h ? {
|
|
438
438
|
...D,
|
|
439
439
|
conversion: l(De).toPrecision(
|
|
440
|
-
l(be)(
|
|
440
|
+
l(be)($),
|
|
441
441
|
t.value
|
|
442
442
|
)
|
|
443
443
|
} : D
|
|
444
444
|
),
|
|
445
445
|
rules: [l(ge)(0)],
|
|
446
|
-
step: +l(
|
|
446
|
+
step: +l(J)({ amount: 1, precision: t.value }),
|
|
447
447
|
"helper-text": l(r)("inventory.unit.measurement.conversionHelper", {
|
|
448
448
|
measurementSymbol: e.modelValue.measurements[h].name || " measurement unit",
|
|
449
|
-
conversion: +l(
|
|
449
|
+
conversion: +l(J)(e.modelValue.measurements[h].conversion),
|
|
450
450
|
unitSymbol: i.value || "base unit"
|
|
451
451
|
})
|
|
452
452
|
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue", "rules", "step", "helper-text"])
|
|
@@ -460,7 +460,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
460
460
|
}, 512);
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
|
-
}), lt = { class: "flex gap-4" }, st = /* @__PURE__ */
|
|
463
|
+
}), lt = { class: "flex gap-4" }, st = /* @__PURE__ */ K({
|
|
464
464
|
__name: "UnitDialog",
|
|
465
465
|
props: {
|
|
466
466
|
show: { type: Boolean },
|
|
@@ -469,7 +469,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
469
469
|
},
|
|
470
470
|
emits: ["update:show"],
|
|
471
471
|
setup(F) {
|
|
472
|
-
const c = F, y =
|
|
472
|
+
const c = F, y = O(), m = ae(), { t: a } = Y(), r = le(c, "show"), d = le(c, "unit"), n = b(() => {
|
|
473
473
|
switch (c.mode) {
|
|
474
474
|
case U.READ:
|
|
475
475
|
return "";
|
|
@@ -582,16 +582,16 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
582
582
|
}, 8, ["model-value", "header"]);
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
-
}), at = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bt = /* @__PURE__ */
|
|
585
|
+
}), at = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bt = /* @__PURE__ */ K({
|
|
586
586
|
__name: "UnitView",
|
|
587
587
|
setup(F) {
|
|
588
|
-
const c =
|
|
588
|
+
const c = O(), y = xe(), m = _e(), a = b(() => c.units), { createUnit: r, updateUnit: d } = Q(), { unitDialogProps: n, unitViewLoading: p } = Ie(Q()), { columnDefs: i } = Ke();
|
|
589
589
|
function t(M) {
|
|
590
590
|
M === "add" && r();
|
|
591
591
|
}
|
|
592
|
-
const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } =
|
|
592
|
+
const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } = Y();
|
|
593
593
|
return (M, _) => {
|
|
594
|
-
const
|
|
594
|
+
const G = I("FmTable");
|
|
595
595
|
return v(), T(Ve, {
|
|
596
596
|
title: l(x)("inventory.unit.title"),
|
|
597
597
|
actions: l(m).isEnabled ? [] : [
|
|
@@ -617,33 +617,33 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
|
|
|
617
617
|
f(Ue, {
|
|
618
618
|
searchable: "",
|
|
619
619
|
search: u.value,
|
|
620
|
-
"onUpdate:search": _[0] || (_[0] = (
|
|
620
|
+
"onUpdate:search": _[0] || (_[0] = (E) => u.value = E)
|
|
621
621
|
}, null, 8, ["search"]),
|
|
622
|
-
f(
|
|
622
|
+
f(G, {
|
|
623
623
|
style: ue(l(o).tableHeight),
|
|
624
624
|
"column-defs": l(i),
|
|
625
625
|
"row-data": a.value,
|
|
626
626
|
"search-value": u.value,
|
|
627
627
|
loading: !l(y)._currentLocation || g.value,
|
|
628
|
-
onRowClick: _[1] || (_[1] = (
|
|
628
|
+
onRowClick: _[1] || (_[1] = (E) => l(d)(E.original)),
|
|
629
629
|
"page-size": e.value
|
|
630
630
|
}, {
|
|
631
|
-
"list-row": A((
|
|
631
|
+
"list-row": A((E) => [
|
|
632
632
|
f(we, {
|
|
633
|
-
row:
|
|
633
|
+
row: E,
|
|
634
634
|
onRowClick: l(d)
|
|
635
635
|
}, {
|
|
636
636
|
default: A((P) => {
|
|
637
|
-
var k, h,
|
|
637
|
+
var k, h, $, D, B, L, W, N, X;
|
|
638
638
|
return [
|
|
639
639
|
s("div", at, [
|
|
640
640
|
s("div", rt, [
|
|
641
641
|
f(l(Ce), {
|
|
642
|
-
render: (
|
|
642
|
+
render: ($ = (h = (k = P.name) == null ? void 0 : k.column) == null ? void 0 : h.columnDef) == null ? void 0 : $.cell,
|
|
643
643
|
props: (B = (D = P.name) == null ? void 0 : D.getContext) == null ? void 0 : B.call(D)
|
|
644
644
|
}, null, 8, ["render", "props"])
|
|
645
645
|
]),
|
|
646
|
-
s("div", it, V((
|
|
646
|
+
s("div", it, V((X = (N = (W = (L = E.original.measurements) == null ? void 0 : L.map) == null ? void 0 : W.call(L, (re) => re.name)) == null ? void 0 : N.join) == null ? void 0 : X.call(N, ", ")), 1)
|
|
647
647
|
])
|
|
648
648
|
];
|
|
649
649
|
}),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as D, defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as Ce, useI18n as
|
|
4
|
-
import { useDialogChild as
|
|
1
|
+
import { ref as D, defineComponent as O, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Pe } from "vue";
|
|
2
|
+
import { a6 as Re, ay as Ue, az as Ee, h as Ne, D as _e, i as J, f as G, aA as Le, ar as Ie, aB as Be, o as L, c as qe, e as U, S as ze, u as Oe, K as je, _ as Ge, L as Ke, O as He, P as Q } from "./app-CxSrmhCK.js";
|
|
3
|
+
import { useCoreStore as Ce, useI18n as j } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialogChild as Ye, useDialog as xe, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ze } from "@feedmepos/ui-library";
|
|
5
5
|
import { c as se, u as re } from "./googlemap-Dm8ERVai.js";
|
|
6
|
-
import { _ as
|
|
6
|
+
import { _ as Je } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
7
7
|
const X = Re((v, h) => {
|
|
8
8
|
const b = Ce();
|
|
9
9
|
return {
|
|
@@ -73,16 +73,16 @@ function Fe() {
|
|
|
73
73
|
}
|
|
74
74
|
function Xe(v, h) {
|
|
75
75
|
function b(r, l) {
|
|
76
|
-
if (r ===
|
|
76
|
+
if (r === J.Edit) {
|
|
77
77
|
v(G(l));
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
if (r ===
|
|
80
|
+
if (r === J.Delete) {
|
|
81
81
|
h(G(l));
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
const { t: a } =
|
|
85
|
+
const { t: a } = j(), n = [
|
|
86
86
|
{
|
|
87
87
|
accessorKey: "warehouse",
|
|
88
88
|
header: () => a("inventory.warehouse.table.warehouse"),
|
|
@@ -108,7 +108,7 @@ function Xe(v, h) {
|
|
|
108
108
|
header: "",
|
|
109
109
|
cell(r) {
|
|
110
110
|
return Ne(
|
|
111
|
-
[_e[
|
|
111
|
+
[_e[J.Edit], _e[J.Delete]],
|
|
112
112
|
(l) => {
|
|
113
113
|
b(l, r.row.original.original);
|
|
114
114
|
}
|
|
@@ -143,7 +143,7 @@ function Xe(v, h) {
|
|
|
143
143
|
}
|
|
144
144
|
return { columnDefs: n, formatRowData: i };
|
|
145
145
|
}
|
|
146
|
-
const eo = /* @__PURE__ */
|
|
146
|
+
const eo = /* @__PURE__ */ O({
|
|
147
147
|
__name: "GoogleMap",
|
|
148
148
|
props: {
|
|
149
149
|
markers: {
|
|
@@ -269,7 +269,7 @@ const eo = /* @__PURE__ */ j({
|
|
|
269
269
|
class: "map app-map"
|
|
270
270
|
}, null, 512));
|
|
271
271
|
}
|
|
272
|
-
}), oo = { class: "flex flex-col gap-24" }, to = { class: "flex flex-col gap-8" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600" }, io = /* @__PURE__ */
|
|
272
|
+
}), oo = { class: "flex flex-col gap-24" }, to = { class: "flex flex-col gap-8" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600" }, io = /* @__PURE__ */ O({
|
|
273
273
|
__name: "CoordinateDialog",
|
|
274
274
|
props: {
|
|
275
275
|
address: {
|
|
@@ -282,7 +282,7 @@ const eo = /* @__PURE__ */ j({
|
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
284
|
setup(v) {
|
|
285
|
-
const h = v, b =
|
|
285
|
+
const h = v, b = Ye(), a = re(), { t: n } = j(), i = Se(
|
|
286
286
|
G(h.coordinate ? h.coordinate : se.jb)
|
|
287
287
|
), r = D(""), l = Le(async function() {
|
|
288
288
|
r.value = await a.getFirstMatchingAddress(
|
|
@@ -334,7 +334,7 @@ function Ae([v, h]) {
|
|
|
334
334
|
function po({ lng: v, lat: h }) {
|
|
335
335
|
return [v, h];
|
|
336
336
|
}
|
|
337
|
-
const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1 }, vo = /* @__PURE__ */
|
|
337
|
+
const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1 }, vo = /* @__PURE__ */ O({
|
|
338
338
|
__name: "FmCoordinateInput",
|
|
339
339
|
props: {
|
|
340
340
|
address: {},
|
|
@@ -351,7 +351,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
351
351
|
},
|
|
352
352
|
emits: ["update:modelValue"],
|
|
353
353
|
setup(v, { emit: h }) {
|
|
354
|
-
const b = v, a = h, n = re(), i = xe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } =
|
|
354
|
+
const b = v, a = h, n = re(), i = xe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = j();
|
|
355
355
|
function w(c) {
|
|
356
356
|
if (c != null && c[0] && (c != null && c[1]))
|
|
357
357
|
return M("inventory.formField.coordinate.longLat", [c[0].toFixed(3), c[1].toFixed(3)]);
|
|
@@ -452,7 +452,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
452
452
|
}), ho = { class: "flex flex-col gap-40" }, bo = { class: "flex flex-col gap-16" }, go = { class: "flex flex-col gap-8" }, wo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "grid grid-cols-2 gap-24" }, _o = { class: "flex flex-col gap-8" }, ko = { class: "fm-typo-en-title-sm-600" }, Ao = {
|
|
453
453
|
key: 0,
|
|
454
454
|
class: "flex flex-col gap-8"
|
|
455
|
-
}, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" }, xo = { class: "fm-typo-en-title-sm-600" }, Fo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */
|
|
455
|
+
}, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" }, xo = { class: "fm-typo-en-title-sm-600" }, Fo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ O({
|
|
456
456
|
__name: "WarehouseForm",
|
|
457
457
|
props: {
|
|
458
458
|
modelValue: {},
|
|
@@ -460,7 +460,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
460
460
|
},
|
|
461
461
|
emits: ["update:modelValue", "validation-success"],
|
|
462
462
|
setup(v, { expose: h, emit: b }) {
|
|
463
|
-
const a = v, n = b, i = qe(), { t: r } =
|
|
463
|
+
const a = v, n = b, i = qe(), { t: r } = j(), l = $({
|
|
464
464
|
get() {
|
|
465
465
|
var o, e;
|
|
466
466
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
|
|
@@ -729,7 +729,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
729
729
|
])
|
|
730
730
|
]),
|
|
731
731
|
g("div", null, [
|
|
732
|
-
k(
|
|
732
|
+
k(Je, {
|
|
733
733
|
entity: "warehouse",
|
|
734
734
|
modelValue: B.value,
|
|
735
735
|
"onUpdate:modelValue": e[12] || (e[12] = (p) => B.value = p)
|
|
@@ -741,7 +741,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
741
741
|
}, 512);
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
}), So = { class: "flex gap-4" }, To = /* @__PURE__ */
|
|
744
|
+
}), So = { class: "flex gap-4" }, To = /* @__PURE__ */ O({
|
|
745
745
|
__name: "WarehouseDialog",
|
|
746
746
|
props: {
|
|
747
747
|
mode: {},
|
|
@@ -750,7 +750,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
750
750
|
},
|
|
751
751
|
emits: ["update:show", "submitted"],
|
|
752
752
|
setup(v, { expose: h, emit: b }) {
|
|
753
|
-
const a = v, n = b, i = D(!1), r = le(), { t: l } =
|
|
753
|
+
const a = v, n = b, i = D(!1), r = le(), { t: l } = j(), d = Fe(), M = $(() => {
|
|
754
754
|
switch (a.mode) {
|
|
755
755
|
case U.READ:
|
|
756
756
|
return "";
|
|
@@ -893,10 +893,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
893
893
|
}), Do = { class: "flex flex-col py-8" }, Wo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = {
|
|
894
894
|
key: 0,
|
|
895
895
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
896
|
-
}, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, zo = /* @__PURE__ */
|
|
896
|
+
}, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, zo = /* @__PURE__ */ O({
|
|
897
897
|
__name: "WarehouseView",
|
|
898
898
|
setup(v) {
|
|
899
|
-
const h = Fe(), b =
|
|
899
|
+
const h = Fe(), b = Oe(), a = $(() => h.warehouses), n = xe(), i = le(), r = D(!1), { t: l } = j();
|
|
900
900
|
te(() => {
|
|
901
901
|
b._currentLocation && S();
|
|
902
902
|
}), ee([() => b._currentLocation], () => {
|
|
@@ -966,7 +966,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
966
966
|
r.value = !1;
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
const { breakpoints: m } =
|
|
969
|
+
const { breakpoints: m } = Ze(), f = $(() => m.value.xs || m.value.sm), A = $(() => f.value ? 10 : 20), B = je();
|
|
970
970
|
return (V, o) => {
|
|
971
971
|
const e = N("FmTable");
|
|
972
972
|
return W(), z(Ge, {
|
|
@@ -1012,7 +1012,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
1012
1012
|
onRowClick: (s) => w(s.original)
|
|
1013
1013
|
}, {
|
|
1014
1014
|
default: I((s) => {
|
|
1015
|
-
var y, _, p, P, K, ne, ue, ie, H, de, ce, pe, me, fe,
|
|
1015
|
+
var y, _, p, P, K, ne, ue, ie, H, de, ce, pe, me, fe, Y, ye, ve, he, be, Z, ge;
|
|
1016
1016
|
return [
|
|
1017
1017
|
g("div", Do, [
|
|
1018
1018
|
g("div", Wo, [
|
|
@@ -1030,13 +1030,13 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
|
|
|
1030
1030
|
(ce = t.original) != null && ce.email ? (W(), q("div", Ro, [
|
|
1031
1031
|
k(u(Q), {
|
|
1032
1032
|
render: (fe = (me = (pe = s.email) == null ? void 0 : pe.column) == null ? void 0 : me.columnDef) == null ? void 0 : fe.cell,
|
|
1033
|
-
props: (ye = (
|
|
1033
|
+
props: (ye = (Y = s.email) == null ? void 0 : Y.getContext) == null ? void 0 : ye.call(Y)
|
|
1034
1034
|
}, null, 8, ["render", "props"])
|
|
1035
1035
|
])) : ae("", !0),
|
|
1036
1036
|
g("div", Uo, [
|
|
1037
1037
|
k(u(Q), {
|
|
1038
1038
|
render: (be = (he = (ve = s.address) == null ? void 0 : ve.column) == null ? void 0 : he.columnDef) == null ? void 0 : be.cell,
|
|
1039
|
-
props: (ge = (
|
|
1039
|
+
props: (ge = (Z = s.address) == null ? void 0 : Z.getContext) == null ? void 0 : ge.call(Z)
|
|
1040
1040
|
}, null, 8, ["render", "props"])
|
|
1041
1041
|
])
|
|
1042
1042
|
])
|
package/dist/api/netsuite.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FdtoNetSuiteInventoryTransferRecord } from '@feedmepos/netsuite-core';
|
|
2
2
|
export declare const useNetSuiteApi: () => {
|
|
3
3
|
readSetting(): Promise<{
|
|
4
|
+
subsidiaryId?: string | null | undefined;
|
|
4
5
|
accessToken?: string | null | undefined;
|
|
5
6
|
syncedAt?: string | null | undefined;
|
|
6
7
|
restlet?: {
|
|
@@ -79,6 +80,7 @@ export declare const useNetSuiteApi: () => {
|
|
|
79
80
|
netsuiteId: string;
|
|
80
81
|
name: string;
|
|
81
82
|
}>): Promise<{
|
|
83
|
+
subsidiaryId?: string | null | undefined;
|
|
82
84
|
accessToken?: string | null | undefined;
|
|
83
85
|
syncedAt?: string | null | undefined;
|
|
84
86
|
restlet?: {
|
|
@@ -157,6 +159,7 @@ export declare const useNetSuiteApi: () => {
|
|
|
157
159
|
getNetSuiteLocation(): Promise<any>;
|
|
158
160
|
manualSyncInventoryTransfer(locationId: string): Promise<any>;
|
|
159
161
|
syncPurchaseOrder(locationId: string, poId: string): Promise<{
|
|
162
|
+
subsidiaryId?: string | null | undefined;
|
|
160
163
|
accessToken?: string | null | undefined;
|
|
161
164
|
syncedAt?: string | null | undefined;
|
|
162
165
|
restlet?: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
2
2
|
export declare const usePurchaseOrderTemplateApi: () => {
|
|
3
3
|
getTemplate(id: string): Promise<FdoPurchaseOrderTemplate & RevisionIdMeta>;
|
|
4
|
+
getTemplateBySupplierId(supplierId: string): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
|
|
4
5
|
readTemplates(): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
|
|
5
6
|
createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
|
|
6
7
|
updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
|