@feedmepos/mf-inventory-portal 1.2.12-dev.3 → 1.2.12
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-D5hXQpVn.js → App-CP0Qx_82.js} +40 -44
- package/dist/{ApprovalView-B__WDklZ.js → ApprovalView-D8_PzEpZ.js} +30 -30
- package/dist/{BindingsDialog-DXdwRSnn.js → BindingsDialog-BbpKhb0L.js} +2 -2
- package/dist/{BindingsPicker-CqAD3aHc.js → BindingsPicker-DzDxisHj.js} +1 -1
- package/dist/{BindingsTable-DVNjpusl.js → BindingsTable-DCXXSY8e.js} +1 -1
- package/dist/{ClosingDraftView-DL678GBB.js → ClosingDraftView-CkF-9An8.js} +129 -129
- package/dist/{ClosingTemplateView-DThiXLtp.js → ClosingTemplateView-Ce1l7n0x.js} +28 -28
- package/dist/{DeliveryOrderPrintPreview-B2MB9S6a.js → DeliveryOrderPrintPreview-CFzsECiK.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BNxs6Bcr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js} +3 -3
- package/dist/{FmMultiselectDialog-B45ZLjVp.js → FmMultiselectDialog-DP992D0Q.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8ks6AEM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js} +45 -45
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C5zIvG2h.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DsYwSn0d.js} +1 -1
- package/dist/{IngredientGroupView-D95dFXIZ.js → IngredientGroupView-DUiKKpvF.js} +32 -31
- package/dist/IngredientsView-C3ozIXV8.js +2475 -0
- package/dist/{IntegrationView-9m3N_9lW.js → IntegrationView-CydpIwrf.js} +57 -57
- package/dist/{InventoryBindingForm-kLoQskao.js → InventoryBindingForm-BVd2FzOW.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BytErBcK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYp_JSBb.js} +31 -31
- package/dist/{InventoryBindingSummary-Dg0FH7ad.js → InventoryBindingSummary-Dthool-6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKrUNLuG.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DR0_Qtyc.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BL1f817e.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BLfGb7mm.js} +1 -1
- package/dist/{PublishView-BcOHSAj3.js → PublishView-BE_aIhZ6.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-UfF8RVkv.js → PurchaseOrderPrintPreview-CGeqqFg-.js} +1 -1
- package/dist/{ReceiveRequestView-D_y_xNUb.js → ReceiveRequestView-Bul9Esf1.js} +63 -62
- package/dist/RecipeView-B9AGELV7.js +621 -0
- package/dist/{StockView-ciU6aAV7.js → StockView-fpJrx4Bd.js} +166 -165
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-XwDTGpR-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeOEgJ1N.js} +1 -1
- package/dist/{SupplierView-DFwtALPg.js → SupplierView-cfZTJqef.js} +492 -490
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js +3057 -0
- package/dist/{TransferTemplateView-BXr_GqTi.js → TransferTemplateView-PZ8Mad4D.js} +48 -48
- package/dist/UnitView-C3gJq1Mt.js +667 -0
- package/dist/{WarehouseView-BYd0bPhi.js → WarehouseView-CWGQjwJm.js} +32 -32
- package/dist/api/inventory.d.ts +0 -306
- package/dist/api/purchase-order.d.ts +0 -1
- package/dist/{app-Bb0-8bRg.js → app-D5PlbdVa.js} +11108 -11723
- package/dist/app.d.ts +0 -421
- package/dist/app.js +1 -1
- package/dist/array-Ca8T3f_G.js +44 -0
- package/dist/{closing-template-DPVNEyI7.js → closing-template-C4FizLUw.js} +1 -1
- package/dist/{decimal-BdBZYISm.js → decimal-Cv7FZ14q.js} +1 -1
- package/dist/{format-unit-display-DlmCwWo_.js → format-unit-display-B0NO6FLh.js} +25 -25
- package/dist/helper/number.d.ts +0 -1
- package/dist/{index-CqBKFj1B.js → index-BCo2jtpG.js} +1 -1
- package/dist/{index-CKFmV1Pk.js → index-DaJ92t7D.js} +1 -1
- package/dist/{purchase-order-template-CLtEYr5E.js → purchase-order-template-DLkR7Mva.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{stock-nHQhfe2W.js → stock-AUSAF9Ij.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/inventory.d.ts +199 -26
- package/dist/{supplier-DuOjLpOa.js → supplier-DBXoP2UX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B-11Eqlm.js → use-ingredient-select-dialog-DZQR6jfi.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DhLSdRtp.js → use-inventory-binding-dialog-8PZ37vLV.js} +1 -1
- package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
- package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
- package/dist/views/unit/UnitView.vue.d.ts +0 -1
- package/package.json +1 -1
- package/dist/ImportView-EXm_g_jD.js +0 -1303
- package/dist/IngredientsView-MF1USuZI.js +0 -2240
- package/dist/RecipeView-DOaU9GIF.js +0 -636
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdA5_lEz.js +0 -3221
- package/dist/UnitView-CAXHvh3n.js +0 -674
- package/dist/import-export.helper-B04wszRI.js +0 -243
- package/dist/views/import/ImportView.vue.d.ts +0 -3
- package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
- package/dist/views/import/helper/import-export.helper.d.ts +0 -4
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
- package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
- package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
|
|
2
|
-
import { a as
|
|
3
|
-
import { useDialog as Me, useSnackbar as
|
|
4
|
-
import { useI18n as
|
|
2
|
+
import { a as z, e as S, f as P, i as Re, D as oe, j as K, I as Ie, A as Se, U as Ge, X as ue, Y as Fe, N as Ve, p as de, Z as Ce, w as ae, u as De, O as Ae, P as $e, Q as Te, T as Ee, V as le } from "./app-D5PlbdVa.js";
|
|
3
|
+
import { useDialog as Me, useSnackbar as Y, components as U, useProxiedModel as Ue, useBreakpoints as Be } from "@feedmepos/ui-library";
|
|
4
|
+
import { useI18n as L, useCoreStore as Pe } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ce, storeToRefs as ie } from "pinia";
|
|
6
|
-
import
|
|
6
|
+
import "./array-Ca8T3f_G.js";
|
|
7
|
+
import { u as ze } from "./FmMultiselectDialog-DP992D0Q.js";
|
|
7
8
|
import { r as me } from "./random-CSbEbElR.js";
|
|
8
|
-
import { u as
|
|
9
|
+
import { u as Le, R as Ne } from "./usePromise-CbVUCxhj.js";
|
|
9
10
|
const H = ce(
|
|
10
11
|
"ingredientGroupactions",
|
|
11
12
|
function() {
|
|
12
|
-
const _ = Me(), f =
|
|
13
|
+
const _ = Me(), f = Y(), k = z(), { t: i } = L(), v = A();
|
|
13
14
|
function e() {
|
|
14
15
|
const u = {
|
|
15
16
|
modelValue: {},
|
|
@@ -23,7 +24,7 @@ const H = ce(
|
|
|
23
24
|
}
|
|
24
25
|
async function a(u) {
|
|
25
26
|
const m = {
|
|
26
|
-
modelValue:
|
|
27
|
+
modelValue: P(u),
|
|
27
28
|
mode: S.UPDATE,
|
|
28
29
|
show: !0,
|
|
29
30
|
"onUpdate:show"(r) {
|
|
@@ -82,7 +83,7 @@ const H = ce(
|
|
|
82
83
|
), Oe = ce(
|
|
83
84
|
"ingredientGroupTable",
|
|
84
85
|
function() {
|
|
85
|
-
const _ = A(!1), f =
|
|
86
|
+
const _ = A(!1), f = Y(), k = z(), i = H();
|
|
86
87
|
async function v() {
|
|
87
88
|
_.value = !0;
|
|
88
89
|
try {
|
|
@@ -98,7 +99,7 @@ const H = ce(
|
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
function e(t, n) {
|
|
101
|
-
switch (n =
|
|
102
|
+
switch (n = P(n), t) {
|
|
102
103
|
case K.Edit:
|
|
103
104
|
return i.updateIngredientGroup(n);
|
|
104
105
|
case K.Delete:
|
|
@@ -165,7 +166,7 @@ function qe(o) {
|
|
|
165
166
|
};
|
|
166
167
|
}
|
|
167
168
|
function fe(o) {
|
|
168
|
-
const _ =
|
|
169
|
+
const _ = ze(), f = z(), k = F(() => [
|
|
169
170
|
{
|
|
170
171
|
id: "delete",
|
|
171
172
|
header: "",
|
|
@@ -396,14 +397,14 @@ function fe(o) {
|
|
|
396
397
|
}
|
|
397
398
|
};
|
|
398
399
|
}
|
|
399
|
-
const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" },
|
|
400
|
+
const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" }, Ye = { class: "flex flex-col gap-16" }, Qe = { class: "flex flex-col" }, Xe = { class: "flex flex-col gap-4" }, Ze = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ j({
|
|
400
401
|
__name: "IngredientGroupRuleField",
|
|
401
402
|
props: {
|
|
402
403
|
disabled: { type: Boolean },
|
|
403
404
|
modelValue: {}
|
|
404
405
|
},
|
|
405
406
|
setup(o) {
|
|
406
|
-
const _ = o, { t: f } =
|
|
407
|
+
const _ = o, { t: f } = L(), k = Pe(), i = F(() => {
|
|
407
408
|
var g;
|
|
408
409
|
const n = /* @__PURE__ */ new Map(), s = k.restaurants.value.map((u) => u.customAttributes ?? {});
|
|
409
410
|
for (const u of s)
|
|
@@ -480,9 +481,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
480
481
|
]
|
|
481
482
|
}, null, 8, ["model-value", "rules"])
|
|
482
483
|
]),
|
|
483
|
-
c("div",
|
|
484
|
+
c("div", Ye, [
|
|
484
485
|
c("div", Qe, [
|
|
485
|
-
c("div",
|
|
486
|
+
c("div", Xe, [
|
|
486
487
|
c("div", null, [
|
|
487
488
|
b(u, {
|
|
488
489
|
label: l(f)("inventory.ingredientGroup.form.rules.ingredients"),
|
|
@@ -506,11 +507,11 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
506
507
|
"hide-footer": ""
|
|
507
508
|
}, null, 8, ["row-data", "column-defs", "page-size", "column-visibility"])
|
|
508
509
|
]),
|
|
509
|
-
c("div",
|
|
510
|
+
c("div", Ze, $(l(f)("inventory.ingredientGroup.form.defaultRule.defaultCheckbox")), 1)
|
|
510
511
|
]);
|
|
511
512
|
};
|
|
512
513
|
}
|
|
513
|
-
}),
|
|
514
|
+
}), We = { class: "flex flex-col gap-16" }, et = { class: "flex flex-col gap-16" }, tt = { class: "flex flex-col" }, nt = { class: "flex items-center" }, st = { class: "flex-1" }, ot = { class: "flex flex-col gap-8" }, at = { class: "flex-1 fm-typo-en-title-sm-600" }, lt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary px-4" }, it = { class: "flex flex-col gap-16" }, rt = { class: "flex flex-col gap-8" }, ut = { class: "flex-1 fm-typo-en-title-sm-600" }, dt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = { class: "flex flex-col gap-12" }, mt = { class: "flex items-center" }, ft = { class: "flex-1 fm-typo-en-body-lg-600 line-clamp-1" }, pt = { key: 0 }, vt = {
|
|
514
515
|
key: 1,
|
|
515
516
|
class: "fm-typo-en-body-lg-400"
|
|
516
517
|
}, yt = /* @__PURE__ */ j({
|
|
@@ -525,7 +526,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
525
526
|
setup(o, { expose: _, emit: f }) {
|
|
526
527
|
const k = o, i = ue("modelValue", {
|
|
527
528
|
watchProps: !0
|
|
528
|
-
}), v = f, { t: e } =
|
|
529
|
+
}), v = f, { t: e } = L(), a = qe({
|
|
529
530
|
get items() {
|
|
530
531
|
return i.rules ?? [];
|
|
531
532
|
},
|
|
@@ -599,7 +600,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
599
600
|
default: T(() => {
|
|
600
601
|
var I;
|
|
601
602
|
return [
|
|
602
|
-
c("div",
|
|
603
|
+
c("div", We, [
|
|
603
604
|
b(u, {
|
|
604
605
|
label: l(e)("inventory.ingredientGroup.form.name"),
|
|
605
606
|
"label-mark": "required",
|
|
@@ -678,7 +679,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
678
679
|
}, null, 8, ["onClick"])
|
|
679
680
|
]),
|
|
680
681
|
c("div", null, [
|
|
681
|
-
(G(), M(
|
|
682
|
+
(G(), M(Je, {
|
|
682
683
|
key: d._id,
|
|
683
684
|
"model-value": d,
|
|
684
685
|
"onUpdate:modelValue": l(a).updateItem,
|
|
@@ -717,9 +718,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
717
718
|
},
|
|
718
719
|
emits: ["update:show"],
|
|
719
720
|
setup(o) {
|
|
720
|
-
const _ = o, f =
|
|
721
|
+
const _ = o, f = z(), k = Le(() => f.readCachedMenu()), i = F(
|
|
721
722
|
() => k.result.value.state === Ne.success ? k.result.value.data : void 0
|
|
722
|
-
), v =
|
|
723
|
+
), v = Y(), { t: e } = L(), a = Ue(_, "show");
|
|
723
724
|
function t() {
|
|
724
725
|
return {
|
|
725
726
|
_id: "",
|
|
@@ -732,7 +733,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
732
733
|
() => _.show,
|
|
733
734
|
(d) => {
|
|
734
735
|
if (!d) return;
|
|
735
|
-
let p =
|
|
736
|
+
let p = P(_.modelValue ?? t());
|
|
736
737
|
p.defaultSkuRefs && (p.defaultSkuRefs = p.defaultSkuRefs.map((h, V) => ({
|
|
737
738
|
...h,
|
|
738
739
|
priority: h.priority ?? V + 1
|
|
@@ -770,7 +771,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
770
771
|
}), m = A(), r = A(!1);
|
|
771
772
|
async function y() {
|
|
772
773
|
r.value = !0;
|
|
773
|
-
const d =
|
|
774
|
+
const d = P(n.value);
|
|
774
775
|
try {
|
|
775
776
|
await f.createSkuGroup(d), a.value = !1, v.open({
|
|
776
777
|
title: e("inventory.common.success"),
|
|
@@ -789,7 +790,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
789
790
|
}
|
|
790
791
|
async function w() {
|
|
791
792
|
r.value = !0;
|
|
792
|
-
const d =
|
|
793
|
+
const d = P(n.value);
|
|
793
794
|
try {
|
|
794
795
|
await f.updateSkuGroup(d), r.value = !1, a.value = !1, v.open({
|
|
795
796
|
title: e("inventory.common.success"),
|
|
@@ -863,10 +864,10 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
863
864
|
}, 8, ["model-value", "header"]);
|
|
864
865
|
};
|
|
865
866
|
}
|
|
866
|
-
}), kt = { class: "flex flex-col py-8" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ht = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" },
|
|
867
|
+
}), kt = { class: "flex flex-col py-8" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ht = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, At = /* @__PURE__ */ j({
|
|
867
868
|
__name: "IngredientGroupView",
|
|
868
869
|
setup(o) {
|
|
869
|
-
const _ =
|
|
870
|
+
const _ = z(), f = F(() => _.skuGroups), k = De(), { t: i } = L(), {
|
|
870
871
|
createIngredientGroup: v,
|
|
871
872
|
updateIngredientGroup: e,
|
|
872
873
|
importIngredientGroups: a,
|
|
@@ -930,18 +931,18 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
930
931
|
onRowClick: l(e)
|
|
931
932
|
}, ke({
|
|
932
933
|
default: T((N) => {
|
|
933
|
-
var Q,
|
|
934
|
+
var Q, X, Z, O, J, W, ee, te, q, ne;
|
|
934
935
|
return [
|
|
935
936
|
c("div", kt, [
|
|
936
937
|
c("div", xt, [
|
|
937
938
|
b(l(le), {
|
|
938
|
-
render: (
|
|
939
|
-
props: (
|
|
939
|
+
render: (Z = (X = (Q = N.code) == null ? void 0 : Q.column) == null ? void 0 : X.columnDef) == null ? void 0 : Z.cell,
|
|
940
|
+
props: (J = (O = N.code) == null ? void 0 : O.getContext) == null ? void 0 : J.call(O)
|
|
940
941
|
}, null, 8, ["render", "props"])
|
|
941
942
|
]),
|
|
942
943
|
c("div", ht, [
|
|
943
944
|
b(l(le), {
|
|
944
|
-
render: (te = (ee = (
|
|
945
|
+
render: (te = (ee = (W = N.name) == null ? void 0 : W.column) == null ? void 0 : ee.columnDef) == null ? void 0 : te.cell,
|
|
945
946
|
props: (ne = (q = N.name) == null ? void 0 : q.getContext) == null ? void 0 : ne.call(q)
|
|
946
947
|
}, null, 8, ["render", "props"])
|
|
947
948
|
])
|
|
@@ -972,5 +973,5 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
|
|
|
972
973
|
}
|
|
973
974
|
});
|
|
974
975
|
export {
|
|
975
|
-
|
|
976
|
+
At as default
|
|
976
977
|
};
|