@feedmepos/mf-inventory-portal 1.2.22-dev.1 → 1.2.22-dev.3
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-CVo40hoN.js → App-aHs88TEq.js} +1 -1
- package/dist/{ApprovalView-B99YGXOt.js → ApprovalView-DBZQsKg9.js} +9 -9
- package/dist/{BindingsDialog-DGFYmVX9.js → BindingsDialog-arTYvJn2.js} +2 -2
- package/dist/{BindingsPicker-CVWxRkDE.js → BindingsPicker-Bm0s6sKE.js} +9 -9
- package/dist/{BindingsTable-Cxs_cQrM.js → BindingsTable-DXlM-qDU.js} +1 -1
- package/dist/ClosingDraftView-DVB02I09.js +1888 -0
- package/dist/ClosingTemplateView-k8EkjlIJ.js +2001 -0
- package/dist/{DeliveryOrderPrintPreview-D-H7S-4t.js → DeliveryOrderPrintPreview-CSv5FOby.js} +8 -8
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BsPMd4IE.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D0BKSSSp.js} +33 -33
- package/dist/{FmMultiselectDialog-DXVvibUU.js → FmMultiselectDialog-DOf8rbVD.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dq8lMkNV.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BZX05ToS.js} +49 -49
- package/dist/{ImportView-DUPfQshy.js → ImportView-6ckPf1Ll.js} +27 -27
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DxLVS1Ar.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-QK12Klz5.js} +8 -8
- package/dist/{IngredientGroupView-CqPl6RZI.js → IngredientGroupView-D2RuwnJ3.js} +17 -17
- package/dist/{IngredientsView--7ro7P7J.js → IngredientsView-CZIyrGJ0.js} +72 -73
- package/dist/{IntegrationView-BZnq8gYp.js → IntegrationView-D9JrR8Hb.js} +3 -3
- package/dist/{InventoryBindingForm-DASUGZuO.js → InventoryBindingForm-6QGOGZlB.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-l_EgNW0u.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DG_WKGVU.js} +12 -12
- package/dist/{InventoryBindingSummary-BoUAsK9S.js → InventoryBindingSummary-CoeODKLp.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DimqJCjO.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ovi_bWlF.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C_wNgXUC.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CaKjg0eV.js} +7 -7
- package/dist/{PublishView-B-Zal--Y.js → PublishView-BLtshSks.js} +10 -10
- package/dist/{PurchaseOrderPrintPreview-CoXu4VO-.js → PurchaseOrderPrintPreview-DCLjVNlh.js} +13 -13
- package/dist/{ReceiveRequestView-B7rprDy7.js → ReceiveRequestView-DdJ3_qMY.js} +115 -115
- package/dist/{RecipeView-BbMlUt0v.js → RecipeView-DYFDguU9.js} +50 -50
- package/dist/{StockView-Bko2-Rzd.js → StockView-DyUrO7Y0.js} +7 -7
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DONtcweN.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bj05qEWl.js} +1 -1
- package/dist/{SupplierView-D4hAT4CW.js → SupplierView-BYDbDGfd.js} +93 -93
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DuaHM-Wk.js +3233 -0
- package/dist/{TransferTemplateView-BLWYhdZG.js → TransferTemplateView-db5L1CIZ.js} +140 -140
- package/dist/{UnitView-Boi_sRGP.js → UnitView-4ygzmFTY.js} +44 -44
- package/dist/{WarehouseView-B1aAyncU.js → WarehouseView-D-b-t21n.js} +66 -66
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/{app-C4dN86_k.js → app-BDiHcGqi.js} +30052 -30029
- package/dist/app.js +4 -4
- package/dist/{decimal-Cf4voIJl.js → decimal-C-phHxE7.js} +1 -1
- package/dist/{format-unit-display-CjsVuoHS.js → format-unit-display-MVZRrkkD.js} +33 -33
- package/dist/{import-export.helper-DmouV6nF.js → import-export.helper-C3camZX5.js} +6 -6
- package/dist/{index-DK93lkR_.js → index-B60G756h.js} +1 -1
- package/dist/{index-D2C87f4k.js → index-B6zknB--.js} +1 -1
- package/dist/{purchase-order-template-CQcIyT35.js → purchase-order-template-Bkz_Xjv5.js} +1 -1
- package/dist/{stock-CRKwCBhd.js → stock-DnawcaKQ.js} +1 -1
- package/dist/{supplier-BGeDlnSm.js → supplier-Bq0fMcn0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Dg3hbUaX.js → use-ingredient-select-dialog-BH2O0eEN.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DRCiAYUs.js → use-inventory-binding-dialog-CI_pMWSk.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +8 -1
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +8 -4
- package/package.json +3 -3
- package/dist/ClosingDraftView-gBO5Icdy.js +0 -1739
- package/dist/ClosingTemplateView-C61_1m3k.js +0 -1970
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Cr30q-Ft.js +0 -3394
- package/dist/closing-template-CNtgIoiQ.js +0 -53
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { ref as B, defineComponent as pe, computed as g, resolveComponent as F, openBlock as u, createElementBlock as w, Fragment as X, unref as o, createVNode as a, withModifiers as Bt, createCommentVNode as L, withCtx as y, createElementVNode as l, toDisplayString as A, normalizeClass as te, renderList as ue, createBlock as
|
|
2
|
-
import { a as Ce, e as H, f as Tt, S as jt, b as Fe, h as He, i as Wt, D as ct, j as Me, A as Pe, k as wt, l as
|
|
1
|
+
import { ref as B, defineComponent as pe, computed as g, resolveComponent as F, openBlock as u, createElementBlock as w, Fragment as X, unref as o, createVNode as a, withModifiers as Bt, createCommentVNode as L, withCtx as y, createElementVNode as l, toDisplayString as A, normalizeClass as te, renderList as ue, createBlock as D, h as Q, renderSlot as xe, createSlots as Ye, createTextVNode as Ge, mergeModels as it, onMounted as Ot, watch as kt, useModel as Dt, isRef as dt, normalizeStyle as Nt, Teleport as ut, normalizeProps as zt, guardReactiveProps as Lt } from "vue";
|
|
2
|
+
import { a as Ce, e as H, f as Tt, S as jt, b as Fe, h as He, i as Wt, D as ct, j as Me, A as Pe, k as wt, l as Vt, n as Ht, o as mt, t as qt, p as Yt, q as pt, r as De, U as Gt, s as Kt, M as Jt, v as vt, w as ft, c as It, x as Ne, _ as Zt, y as yt, z as Qt, B as gt, C as Xt, E as en, N as tn, H as nn, u as ln, G as on, I as an, J as sn, K as rn, L as bt, O as dn } from "./app-BDiHcGqi.js";
|
|
3
3
|
import { useDialog as Re, useSnackbar as Ae, components as ze, useProxiedModel as ht, useDialogChild as un, useBreakpoints as cn } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as mn, _ as pn } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { useI18n as ve, useCoreStore as
|
|
5
|
+
import { useI18n as ve, useCoreStore as St } from "@feedmepos/mf-common";
|
|
6
6
|
import { defineStore as vn, storeToRefs as fn } from "pinia";
|
|
7
|
-
import { g as yn, _ as Le, S as je, a as gn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as bn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as We } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { g as yn, _ as Le, S as je, a as gn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bj05qEWl.js";
|
|
8
|
+
import { _ as bn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DG_WKGVU.js";
|
|
9
|
+
import { _ as We } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-QK12Klz5.js";
|
|
10
10
|
import { _ as he } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
11
|
-
import { d as Ue, g as hn, e as _n, a as xn } from "./import-export.helper-
|
|
11
|
+
import { d as Ue, g as hn, e as _n, a as xn } from "./import-export.helper-C3camZX5.js";
|
|
12
12
|
import { _ as kn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as Tn } from "./FmMultiselectDialog-DXVvibUU.js";
|
|
13
|
+
import { u as Ct } from "./purchase-order-template-Bkz_Xjv5.js";
|
|
14
|
+
import { u as Tn } from "./FmMultiselectDialog-DOf8rbVD.js";
|
|
16
15
|
const qe = vn("ingredientForm", function() {
|
|
17
16
|
const s = Re(), T = Ae(), r = Ce(), b = B(!1), { t: S } = ve(), U = B();
|
|
18
17
|
function k() {
|
|
@@ -98,7 +97,7 @@ const qe = vn("ingredientForm", function() {
|
|
|
98
97
|
}, An = {
|
|
99
98
|
key: 1,
|
|
100
99
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
101
|
-
}, En = { class: "flex flex-col gap-2 mt-4" }, $n = { class: "flex items-center gap-2 fm-typo-en-body-md-400" }, Mn = { class: "flex flex-wrap gap-2" }, Un = { class: "flex flex-col" }, Pn = { class: "flex flex-col bg-fm-color-bg-secondary font-mono p-4 rounded-md" }, Rn = { class: "text-fm-color-typo-tertiary flex-shrink-0 fm-typo-en-body-md-400 whitespace-pre flex items-center" }, Bn = { class: "px-2 py-1 rounded-md bg-blue-200 border-2 border-blue-400" },
|
|
100
|
+
}, En = { class: "flex flex-col gap-2 mt-4" }, $n = { class: "flex items-center gap-2 fm-typo-en-body-md-400" }, Mn = { class: "flex flex-wrap gap-2" }, Un = { class: "flex flex-col" }, Pn = { class: "flex flex-col bg-fm-color-bg-secondary font-mono p-4 rounded-md" }, Rn = { class: "text-fm-color-typo-tertiary flex-shrink-0 fm-typo-en-body-md-400 whitespace-pre flex items-center" }, Bn = { class: "px-2 py-1 rounded-md bg-blue-200 border-2 border-blue-400" }, On = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Dn = /* @__PURE__ */ pe({
|
|
102
101
|
__name: "ItemSubsidiaryTreeDialog",
|
|
103
102
|
props: {
|
|
104
103
|
skuId: {},
|
|
@@ -106,7 +105,7 @@ const qe = vn("ingredientForm", function() {
|
|
|
106
105
|
itemCode: {}
|
|
107
106
|
},
|
|
108
107
|
setup(W) {
|
|
109
|
-
const s = W, { t: T } = ve(), r =
|
|
108
|
+
const s = W, { t: T } = ve(), r = St(), b = Fe(), S = B(!1), U = g(() => {
|
|
110
109
|
var m;
|
|
111
110
|
return ((m = r.sessionUser.value) == null ? void 0 : m.role.isAdmin) ?? !1;
|
|
112
111
|
}), k = g(() => b.getSkuSubsidiaries(s.skuId)), n = g(() => {
|
|
@@ -125,11 +124,11 @@ const qe = vn("ingredientForm", function() {
|
|
|
125
124
|
function c(m, v = [], V = !1) {
|
|
126
125
|
const E = [];
|
|
127
126
|
return m.forEach((p, N) => {
|
|
128
|
-
const
|
|
127
|
+
const O = N === m.length - 1, fe = [...v, O];
|
|
129
128
|
let ne = "";
|
|
130
129
|
for (let ee = 0; ee < v.length; ee++)
|
|
131
130
|
ne += v[ee] ? " " : "│ ";
|
|
132
|
-
ne +=
|
|
131
|
+
ne += O ? "└── " : "├── ";
|
|
133
132
|
const ce = n.value.has(p.id), le = p.isAssigned === !0, oe = V && !le;
|
|
134
133
|
if (E.push({
|
|
135
134
|
id: p.id,
|
|
@@ -149,7 +148,7 @@ const qe = vn("ingredientForm", function() {
|
|
|
149
148
|
const V = /* @__PURE__ */ new Set();
|
|
150
149
|
for (const E of m) {
|
|
151
150
|
const p = [...v, E.id];
|
|
152
|
-
E.isAssigned === !0 && p.forEach((N) => V.add(N)), E.children && E.children.length > 0 && _(E.children, p).forEach((
|
|
151
|
+
E.isAssigned === !0 && p.forEach((N) => V.add(N)), E.children && E.children.length > 0 && _(E.children, p).forEach((O) => V.add(O));
|
|
153
152
|
}
|
|
154
153
|
return V;
|
|
155
154
|
}
|
|
@@ -225,13 +224,13 @@ const qe = vn("ingredientForm", function() {
|
|
|
225
224
|
class: "flex items-stretch"
|
|
226
225
|
}, [
|
|
227
226
|
l("span", Rn, A(p.prefix), 1),
|
|
228
|
-
p.isParentIncludedChild ? (u(),
|
|
227
|
+
p.isParentIncludedChild ? (u(), D(He, {
|
|
229
228
|
key: 0,
|
|
230
229
|
class: "flex-1"
|
|
231
230
|
}, {
|
|
232
231
|
default: y(() => [
|
|
233
232
|
l("div", Bn, [
|
|
234
|
-
l("span",
|
|
233
|
+
l("span", On, A(p.name), 1)
|
|
235
234
|
])
|
|
236
235
|
]),
|
|
237
236
|
_: 2
|
|
@@ -363,7 +362,7 @@ function Nn() {
|
|
|
363
362
|
},
|
|
364
363
|
c.join(", ")
|
|
365
364
|
),
|
|
366
|
-
Q(
|
|
365
|
+
Q(Dn, { skuId: n._id, itemName: n.name, itemCode: n.code })
|
|
367
366
|
]);
|
|
368
367
|
},
|
|
369
368
|
enableSorting: !1,
|
|
@@ -440,7 +439,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
440
439
|
});
|
|
441
440
|
return (d, m) => {
|
|
442
441
|
const v = F("FmSwitch"), V = F("FmSelect"), E = F("FmCard");
|
|
443
|
-
return u(),
|
|
442
|
+
return u(), D(E, {
|
|
444
443
|
variant: "outlined",
|
|
445
444
|
class: "p-16 flex flex-col gap-16"
|
|
446
445
|
}, {
|
|
@@ -450,7 +449,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
450
449
|
a(v, {
|
|
451
450
|
value: "",
|
|
452
451
|
"model-value": k.value,
|
|
453
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
452
|
+
"onUpdate:modelValue": m[0] || (m[0] = (O) => k.value = O),
|
|
454
453
|
label: o(U)("inventory.ingredient.convertible.title"),
|
|
455
454
|
sublabel: o(U)("inventory.ingredient.convertible.subtitle"),
|
|
456
455
|
labelPlacement: "right",
|
|
@@ -510,7 +509,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
510
509
|
xe(s.$slots, "field", {}, () => [
|
|
511
510
|
a(U, { disabled: s.disabled }, Ye({
|
|
512
511
|
prepend: y(() => [
|
|
513
|
-
s.tooltipMessage ? (u(),
|
|
512
|
+
s.tooltipMessage ? (u(), D(S, {
|
|
514
513
|
key: 0,
|
|
515
514
|
placement: s.tooltipPlacement,
|
|
516
515
|
"z-index": s.tooltipZIndex
|
|
@@ -525,7 +524,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
525
524
|
})
|
|
526
525
|
]),
|
|
527
526
|
_: 1
|
|
528
|
-
}, 8, ["placement", "z-index"])) : (u(),
|
|
527
|
+
}, 8, ["placement", "z-index"])) : (u(), D(b, {
|
|
529
528
|
key: 1,
|
|
530
529
|
name: "lock",
|
|
531
530
|
color: "neutral-gray-400"
|
|
@@ -589,7 +588,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
589
588
|
}, Ml = { class: "flex flex-col" }, Ul = { class: "flex items-center justify-between" }, Pl = { class: "fm-typo-en-title-sm-600" }, Rl = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Bl = {
|
|
590
589
|
key: 0,
|
|
591
590
|
class: "flex flex-col gap-8"
|
|
592
|
-
},
|
|
591
|
+
}, Ol = { class: "flex flex-wrap gap-8" }, Dl = /* @__PURE__ */ pe({
|
|
593
592
|
__name: "IngredientForm",
|
|
594
593
|
props: /* @__PURE__ */ it({
|
|
595
594
|
mode: {},
|
|
@@ -607,20 +606,20 @@ const zn = /* @__PURE__ */ pe({
|
|
|
607
606
|
var et;
|
|
608
607
|
const { t: r } = ve(), b = Re();
|
|
609
608
|
Ae();
|
|
610
|
-
const S =
|
|
609
|
+
const S = Ct(), U = wt(), k = Vt(), n = W, c = T, _ = Ce(), i = St(), d = It(), m = Fe(), v = g(() => m.isEnabled);
|
|
611
610
|
B(void 0);
|
|
612
611
|
const V = B([]), E = B([]), p = B([]), N = B(!1);
|
|
613
|
-
function
|
|
612
|
+
function O(e) {
|
|
614
613
|
if (e.length === 0) return;
|
|
615
614
|
const t = e[0], x = n.modelValue ?? {
|
|
616
615
|
unit: _.units.find((C) => C)
|
|
617
616
|
};
|
|
618
617
|
x.unit || (x.unit = t, c("update:modelValue", x));
|
|
619
618
|
}
|
|
620
|
-
|
|
621
|
-
|
|
619
|
+
Ot(() => {
|
|
620
|
+
O(_.units), n.mode === H.CREATE && (d.mustUsePoTemplate && ne(), d.enableWastageTemplate && ce(), d.enableClosingTemplate && le());
|
|
622
621
|
}), kt([() => _.units], ([e]) => {
|
|
623
|
-
|
|
622
|
+
O(e);
|
|
624
623
|
});
|
|
625
624
|
function fe() {
|
|
626
625
|
c("click:submit");
|
|
@@ -752,7 +751,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
752
751
|
displayAsSection: !1
|
|
753
752
|
}))
|
|
754
753
|
])
|
|
755
|
-
), h =
|
|
754
|
+
), h = Dt(W, "search"), P = g(
|
|
756
755
|
() => new Yt(ke.value, ["label", "value"], {
|
|
757
756
|
caseSensitive: !1,
|
|
758
757
|
sort: !0
|
|
@@ -989,8 +988,8 @@ const zn = /* @__PURE__ */ pe({
|
|
|
989
988
|
};
|
|
990
989
|
}
|
|
991
990
|
return (e, t) => {
|
|
992
|
-
const x = F("FmTextField"), C = F("FmLabel"), Y = F("FmField"), z = F("FmIcon"), re = F("FmMenuHeader"), ie = F("FmMenuDivider"), Ie = F("FmMenuItem"), Mt = F("FmMenu"), tt = F("FmFormGroup"), Ut = F("FmSelect"), nt = F("FmSwitch"), lt = F("FmStepperField"), Be = F("FmButton"),
|
|
993
|
-
return u(),
|
|
991
|
+
const x = F("FmTextField"), C = F("FmLabel"), Y = F("FmField"), z = F("FmIcon"), re = F("FmMenuHeader"), ie = F("FmMenuDivider"), Ie = F("FmMenuItem"), Mt = F("FmMenu"), tt = F("FmFormGroup"), Ut = F("FmSelect"), nt = F("FmSwitch"), lt = F("FmStepperField"), Be = F("FmButton"), Oe = F("FmChip"), Pt = F("FmForm");
|
|
992
|
+
return u(), D(Pt, {
|
|
994
993
|
disabled: e.disabled,
|
|
995
994
|
ref_key: "formRef",
|
|
996
995
|
ref: M,
|
|
@@ -1016,7 +1015,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1016
1015
|
label: o(r)("inventory.ingredient.code"),
|
|
1017
1016
|
"model-value": oe.value,
|
|
1018
1017
|
"onUpdate:modelValue": t[0] || (t[0] = (I) => oe.value = I),
|
|
1019
|
-
rules: [o(
|
|
1018
|
+
rules: [o(De)(), o(Gt)(_e.value, Ee.value)],
|
|
1020
1019
|
"label-mark": "required"
|
|
1021
1020
|
}, null, 8, ["label", "model-value", "rules"])
|
|
1022
1021
|
]),
|
|
@@ -1038,7 +1037,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1038
1037
|
label: o(r)("inventory.ingredient.name"),
|
|
1039
1038
|
"model-value": ae.value,
|
|
1040
1039
|
"onUpdate:modelValue": t[2] || (t[2] = (I) => ae.value = I),
|
|
1041
|
-
rules: [o(
|
|
1040
|
+
rules: [o(De)()],
|
|
1042
1041
|
"label-mark": "required"
|
|
1043
1042
|
}, null, 8, ["label", "model-value", "rules"])
|
|
1044
1043
|
]),
|
|
@@ -1058,7 +1057,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1058
1057
|
default: y(() => [
|
|
1059
1058
|
a(tt, {
|
|
1060
1059
|
"model-value": ge.value,
|
|
1061
|
-
rules: [o(
|
|
1060
|
+
rules: [o(De)()],
|
|
1062
1061
|
"label-mark": "required"
|
|
1063
1062
|
}, {
|
|
1064
1063
|
label: y(() => [
|
|
@@ -1111,7 +1110,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1111
1110
|
label: Z.label
|
|
1112
1111
|
}, null, 8, ["label"]),
|
|
1113
1112
|
a(ie)
|
|
1114
|
-
], 64)) : (u(),
|
|
1113
|
+
], 64)) : (u(), D(Ie, {
|
|
1115
1114
|
key: 1,
|
|
1116
1115
|
label: Z.label,
|
|
1117
1116
|
"model-value": $(Z),
|
|
@@ -1130,7 +1129,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1130
1129
|
]),
|
|
1131
1130
|
_: 1
|
|
1132
1131
|
}, 8, ["label", "helper-text", "model-value", "locked", "disabled"]),
|
|
1133
|
-
o(d).enableTotalCost ? (u(),
|
|
1132
|
+
o(d).enableTotalCost ? (u(), D(Se, {
|
|
1134
1133
|
key: 0,
|
|
1135
1134
|
"tooltip-message": "This field is managed by NetSuite",
|
|
1136
1135
|
"tooltip-z-index": 50,
|
|
@@ -1160,7 +1159,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1160
1159
|
]),
|
|
1161
1160
|
_: 1
|
|
1162
1161
|
}, 8, ["label", "model-value", "locked", "disabled"])) : L("", !0),
|
|
1163
|
-
o(d).enableTotalCost ? (u(),
|
|
1162
|
+
o(d).enableTotalCost ? (u(), D(Se, {
|
|
1164
1163
|
key: 1,
|
|
1165
1164
|
"tooltip-message": "This field is managed by NetSuite",
|
|
1166
1165
|
"tooltip-z-index": 50,
|
|
@@ -1209,7 +1208,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1209
1208
|
]),
|
|
1210
1209
|
_: 1
|
|
1211
1210
|
}, 8, ["model-value", "locked", "append-text", "disabled"])) : L("", !0),
|
|
1212
|
-
!v.value || j.value ? (u(),
|
|
1211
|
+
!v.value || j.value ? (u(), D(zn, {
|
|
1213
1212
|
key: 2,
|
|
1214
1213
|
"model-value": j.value,
|
|
1215
1214
|
"onUpdate:modelValue": t[7] || (t[7] = (I) => j.value = I),
|
|
@@ -1237,17 +1236,17 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1237
1236
|
"label-placement": "right"
|
|
1238
1237
|
}, null, 8, ["label", "modelValue"])
|
|
1239
1238
|
]),
|
|
1240
|
-
R.value && q.value.length ? (u(),
|
|
1239
|
+
R.value && q.value.length ? (u(), D(We, {
|
|
1241
1240
|
key: 0,
|
|
1242
1241
|
name: o(r)("inventory.ingredient.bindedItems.ingredient"),
|
|
1243
1242
|
bindings: q.value
|
|
1244
1243
|
}, null, 8, ["name", "bindings"])) : L("", !0),
|
|
1245
|
-
R.value && de.value.length ? (u(),
|
|
1244
|
+
R.value && de.value.length ? (u(), D(We, {
|
|
1246
1245
|
key: 1,
|
|
1247
1246
|
name: o(r)("inventory.ingredient.bindedItems.recipe"),
|
|
1248
1247
|
bindings: de.value
|
|
1249
1248
|
}, null, 8, ["name", "bindings"])) : L("", !0),
|
|
1250
|
-
R.value && Te.value.length ? (u(),
|
|
1249
|
+
R.value && Te.value.length ? (u(), D(We, {
|
|
1251
1250
|
key: 2,
|
|
1252
1251
|
name: o(r)("inventory.ingredient.bindedItems.menu"),
|
|
1253
1252
|
bindings: Te.value
|
|
@@ -1370,7 +1369,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1370
1369
|
]),
|
|
1371
1370
|
Ke.value.length > 0 ? (u(), w("div", Tl, [
|
|
1372
1371
|
l("div", wl, [
|
|
1373
|
-
(u(!0), w(X, null, ue(Ke.value, (I) => (u(),
|
|
1372
|
+
(u(!0), w(X, null, ue(Ke.value, (I) => (u(), D(Oe, {
|
|
1374
1373
|
key: I.value,
|
|
1375
1374
|
label: I.label,
|
|
1376
1375
|
variant: "info",
|
|
@@ -1400,7 +1399,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1400
1399
|
]),
|
|
1401
1400
|
Ze.value.length > 0 ? (u(), w("div", Al, [
|
|
1402
1401
|
l("div", El, [
|
|
1403
|
-
(u(!0), w(X, null, ue(Ze.value, (I) => (u(),
|
|
1402
|
+
(u(!0), w(X, null, ue(Ze.value, (I) => (u(), D(Oe, {
|
|
1404
1403
|
key: I.value,
|
|
1405
1404
|
label: I.label,
|
|
1406
1405
|
variant: "info",
|
|
@@ -1429,8 +1428,8 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1429
1428
|
l("div", Rl, A(o(r)("inventory.ingredient.closingTemplates.description")), 1)
|
|
1430
1429
|
]),
|
|
1431
1430
|
Xe.value.length > 0 ? (u(), w("div", Bl, [
|
|
1432
|
-
l("div",
|
|
1433
|
-
(u(!0), w(X, null, ue(Xe.value, (I) => (u(),
|
|
1431
|
+
l("div", Ol, [
|
|
1432
|
+
(u(!0), w(X, null, ue(Xe.value, (I) => (u(), D(Oe, {
|
|
1434
1433
|
key: I.value,
|
|
1435
1434
|
label: I.label,
|
|
1436
1435
|
variant: "info",
|
|
@@ -1464,7 +1463,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1464
1463
|
},
|
|
1465
1464
|
emits: ["update:show"],
|
|
1466
1465
|
setup(W) {
|
|
1467
|
-
const s = W, T = Ce(), r =
|
|
1466
|
+
const s = W, T = Ce(), r = It(), b = Fe(), S = Ct(), U = wt(), k = Vt(), n = Ae(), { t: c } = ve(), _ = ht(s, "show"), i = ht(s, "sku"), d = B([]), m = B([]), v = B([]), V = g(
|
|
1468
1467
|
() => {
|
|
1469
1468
|
var h;
|
|
1470
1469
|
return b.isEnabled && b.netSuiteItemBySkuId.has((h = s.sku) == null ? void 0 : h._id);
|
|
@@ -1489,9 +1488,9 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1489
1488
|
return c("common.add");
|
|
1490
1489
|
}
|
|
1491
1490
|
return "";
|
|
1492
|
-
}), N = B(),
|
|
1491
|
+
}), N = B(), O = B(!1);
|
|
1493
1492
|
async function fe() {
|
|
1494
|
-
|
|
1493
|
+
O.value = !0;
|
|
1495
1494
|
try {
|
|
1496
1495
|
await T.createSku(i.value);
|
|
1497
1496
|
const h = T.skuByCode[i.value.code];
|
|
@@ -1507,13 +1506,13 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1507
1506
|
type: "error"
|
|
1508
1507
|
});
|
|
1509
1508
|
} finally {
|
|
1510
|
-
|
|
1509
|
+
O.value = !1;
|
|
1511
1510
|
}
|
|
1512
1511
|
}
|
|
1513
1512
|
async function ne() {
|
|
1514
|
-
|
|
1513
|
+
O.value = !0;
|
|
1515
1514
|
try {
|
|
1516
|
-
await T.updateSku(i.value),
|
|
1515
|
+
await T.updateSku(i.value), O.value = !1, _.value = !1, n.open({
|
|
1517
1516
|
title: c("inventory.common.success"),
|
|
1518
1517
|
message: c("inventory.ingredient.update.success", { name: i.value.name }),
|
|
1519
1518
|
type: "success"
|
|
@@ -1525,7 +1524,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1525
1524
|
type: "error"
|
|
1526
1525
|
});
|
|
1527
1526
|
} finally {
|
|
1528
|
-
|
|
1527
|
+
O.value = !1;
|
|
1529
1528
|
}
|
|
1530
1529
|
}
|
|
1531
1530
|
async function ce(h) {
|
|
@@ -1649,7 +1648,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1649
1648
|
}
|
|
1650
1649
|
return (h, P) => {
|
|
1651
1650
|
const G = F("FmChip"), $ = F("FmButton"), f = F("FmSideSheet");
|
|
1652
|
-
return u(),
|
|
1651
|
+
return u(), D(f, {
|
|
1653
1652
|
"model-value": o(_),
|
|
1654
1653
|
"onUpdate:modelValue": P[3] || (P[3] = (j) => dt(_) ? _.value = j : null),
|
|
1655
1654
|
header: E.value,
|
|
@@ -1660,12 +1659,12 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1660
1659
|
"side-sheet-footer": y(() => [
|
|
1661
1660
|
l("div", Ll, [
|
|
1662
1661
|
a($, {
|
|
1663
|
-
loading:
|
|
1662
|
+
loading: O.value,
|
|
1664
1663
|
label: p.value,
|
|
1665
1664
|
onClick: ee
|
|
1666
1665
|
}, null, 8, ["loading", "label"]),
|
|
1667
1666
|
a($, {
|
|
1668
|
-
disabled:
|
|
1667
|
+
disabled: O.value,
|
|
1669
1668
|
label: o(c)("common.close"),
|
|
1670
1669
|
variant: "tertiary",
|
|
1671
1670
|
onClick: P[2] || (P[2] = (j) => _.value = !1)
|
|
@@ -1685,14 +1684,14 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1685
1684
|
settingOptions: o(b).skuSettingOptions
|
|
1686
1685
|
}, null, 8, ["sku", "settingOptions"])
|
|
1687
1686
|
])) : L("", !0),
|
|
1688
|
-
a(
|
|
1687
|
+
a(Dl, {
|
|
1689
1688
|
class: "w-full",
|
|
1690
1689
|
ref_key: "hasValidationExpose",
|
|
1691
1690
|
ref: N,
|
|
1692
1691
|
modelValue: o(i),
|
|
1693
1692
|
"onUpdate:modelValue": P[0] || (P[0] = (j) => dt(i) ? i.value = j : null),
|
|
1694
1693
|
mode: h.mode,
|
|
1695
|
-
disabled:
|
|
1694
|
+
disabled: O.value,
|
|
1696
1695
|
purchaseOrderTemplateIds: d.value,
|
|
1697
1696
|
wastageTemplateIds: m.value,
|
|
1698
1697
|
closingTemplateIds: v.value,
|
|
@@ -1847,11 +1846,11 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1847
1846
|
}
|
|
1848
1847
|
])
|
|
1849
1848
|
}, [
|
|
1850
|
-
b.value ? (u(),
|
|
1849
|
+
b.value ? (u(), D(v, {
|
|
1851
1850
|
key: 0,
|
|
1852
1851
|
size: "md",
|
|
1853
1852
|
color: "neutral-gray-200"
|
|
1854
|
-
})) : (u(),
|
|
1853
|
+
})) : (u(), D(V, {
|
|
1855
1854
|
key: 1,
|
|
1856
1855
|
name: n.value ? "error" : "attach_file",
|
|
1857
1856
|
outline: "",
|
|
@@ -1878,8 +1877,8 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1878
1877
|
]))
|
|
1879
1878
|
], 2),
|
|
1880
1879
|
S.value.length ? (u(), w("div", eo, [
|
|
1881
|
-
(u(!0), w(X, null, ue(S.value, (N,
|
|
1882
|
-
key:
|
|
1880
|
+
(u(!0), w(X, null, ue(S.value, (N, O) => (u(), w("div", {
|
|
1881
|
+
key: O,
|
|
1883
1882
|
class: "flex gap-8 items-center"
|
|
1884
1883
|
}, [
|
|
1885
1884
|
a(V, {
|
|
@@ -1897,14 +1896,14 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1897
1896
|
]), 1032, ["class", "label", "button-label"]),
|
|
1898
1897
|
c.value ? (u(), w("div", no, [
|
|
1899
1898
|
l("div", lo, A(o(_)("inventory.ingredient.import.summary")), 1),
|
|
1900
|
-
(u(!0), w(X, null, ue(U.value, (p) => (u(),
|
|
1899
|
+
(u(!0), w(X, null, ue(U.value, (p) => (u(), D(xt, {
|
|
1901
1900
|
key: p.sku._id,
|
|
1902
1901
|
code: p.sku.code,
|
|
1903
1902
|
name: p.sku.name,
|
|
1904
1903
|
errors: p.errors,
|
|
1905
1904
|
type: "create"
|
|
1906
1905
|
}, null, 8, ["code", "name", "errors"]))), 128)),
|
|
1907
|
-
(u(!0), w(X, null, ue(k.value, (p) => (u(),
|
|
1906
|
+
(u(!0), w(X, null, ue(k.value, (p) => (u(), D(xt, {
|
|
1908
1907
|
key: p.sku._id,
|
|
1909
1908
|
code: p.sku.code,
|
|
1910
1909
|
name: p.sku.name,
|
|
@@ -1918,7 +1917,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1918
1917
|
}), ao = {
|
|
1919
1918
|
key: 0,
|
|
1920
1919
|
class: "flex items-center gap-1"
|
|
1921
|
-
}, so = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ro = { class: "flex flex-col py-8" }, io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" },
|
|
1920
|
+
}, so = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ro = { class: "flex flex-col py-8" }, io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Io = /* @__PURE__ */ pe({
|
|
1922
1921
|
__name: "IngredientsView",
|
|
1923
1922
|
setup(W) {
|
|
1924
1923
|
const s = Ce(), T = Fe(), r = g(() => [
|
|
@@ -1975,7 +1974,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1975
1974
|
return h();
|
|
1976
1975
|
}
|
|
1977
1976
|
}
|
|
1978
|
-
const N = B(""),
|
|
1977
|
+
const N = B(""), O = B(!1), fe = g(() => O.value || V.value), ne = B(!0), { breakpoints: ce } = cn(), le = g(() => ce.value.xs || ce.value.sm), oe = g(() => le.value ? 10 : 20), ee = on(), ae = B(!1), ye = [
|
|
1979
1978
|
{
|
|
1980
1979
|
value: "import",
|
|
1981
1980
|
label: i("common.import")
|
|
@@ -2060,7 +2059,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
2060
2059
|
}).onTertiary(xn);
|
|
2061
2060
|
}
|
|
2062
2061
|
async function G($) {
|
|
2063
|
-
|
|
2062
|
+
O.value = !0;
|
|
2064
2063
|
try {
|
|
2065
2064
|
const f = [
|
|
2066
2065
|
...$.importCreateResult.map(({ sku: M }) => ({ type: "create", sku: M })),
|
|
@@ -2127,12 +2126,12 @@ const zn = /* @__PURE__ */ pe({
|
|
|
2127
2126
|
type: "error"
|
|
2128
2127
|
}), console.error("Error in importing skus", $, f);
|
|
2129
2128
|
} finally {
|
|
2130
|
-
|
|
2129
|
+
O.value = !1;
|
|
2131
2130
|
}
|
|
2132
2131
|
}
|
|
2133
2132
|
return ($, f) => {
|
|
2134
2133
|
const j = F("FmSwitch"), K = F("FmTable"), me = F("FmCollapsibleTabs"), J = F("FmBottomSheet");
|
|
2135
|
-
return u(),
|
|
2134
|
+
return u(), D(an, {
|
|
2136
2135
|
title: o(i)("inventory.ingredient.title"),
|
|
2137
2136
|
actions: ke.value,
|
|
2138
2137
|
"onClick:action": p
|
|
@@ -2173,7 +2172,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
2173
2172
|
]),
|
|
2174
2173
|
_: 1
|
|
2175
2174
|
}, 8, ["search", "filter-attributes", "filter"]),
|
|
2176
|
-
(u(),
|
|
2175
|
+
(u(), D(K, {
|
|
2177
2176
|
key: JSON.stringify(b.value),
|
|
2178
2177
|
style: Nt(o(ee).tableHeight),
|
|
2179
2178
|
"column-defs": o(E),
|
|
@@ -2213,7 +2212,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
2213
2212
|
}),
|
|
2214
2213
|
_: 2
|
|
2215
2214
|
}, [
|
|
2216
|
-
|
|
2215
|
+
O.value ? {
|
|
2217
2216
|
name: "loading-text",
|
|
2218
2217
|
fn: y(() => [
|
|
2219
2218
|
l("div", null, A(o(i)("inventory.ingredient.table.importing")), 1)
|
|
@@ -2225,10 +2224,10 @@ const zn = /* @__PURE__ */ pe({
|
|
|
2225
2224
|
_: 1
|
|
2226
2225
|
}, 8, ["style", "column-defs", "row-data", "search-value", "columnVisibility", "loading", "page-size"]))
|
|
2227
2226
|
], 2),
|
|
2228
|
-
(u(),
|
|
2227
|
+
(u(), D(ut, { to: "body" }, [
|
|
2229
2228
|
a(jl, zt(Lt(o(v))), null, 16)
|
|
2230
2229
|
])),
|
|
2231
|
-
(u(),
|
|
2230
|
+
(u(), D(ut, { to: "body" }, [
|
|
2232
2231
|
a(J, {
|
|
2233
2232
|
"dismiss-away": "",
|
|
2234
2233
|
modelValue: ae.value,
|
|
@@ -2251,5 +2250,5 @@ const zn = /* @__PURE__ */ pe({
|
|
|
2251
2250
|
}
|
|
2252
2251
|
});
|
|
2253
2252
|
export {
|
|
2254
|
-
|
|
2253
|
+
Io as default
|
|
2255
2254
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Q, mergeModels as Te, useModel as we, onMounted as ve, ref as O, computed as T, resolveComponent as B, openBlock as I, createElementBlock as L, createElementVNode as s, toDisplayString as R, unref as S, createVNode as b, createBlock as H, withCtx as N, Fragment as Y, renderList as W, normalizeClass as K, normalizeStyle as je, createSlots as te, createCommentVNode as z, withModifiers as ze, reactive as ge, watch as ye, isRef as le, Teleport as de, h as M, createTextVNode as q, watchEffect as He } from "vue";
|
|
2
2
|
import { E as Ue } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { b8 as Xe, aX as Qe, f as ne, u as $, b9 as Ye, ba as Je, r as Ke, b as re, aL as me, n as Pe, b3 as fe, ab as Ae, ac as be, a as he, x as qe, h as ke, $ as G, a5 as Be, bb as Ce, aQ as Ee, a$ as Fe, Y as Le, C as Ve, a6 as ce, c as Ne, I as Ze, J as Ge } from "./app-BDiHcGqi.js";
|
|
4
4
|
import { useDialogChild as We, useDialog as ue, useProxiedModel as ie, useSnackbar as ee, useBreakpoints as De, components as oe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Z, useCoreStore as se } from "@feedmepos/mf-common";
|
|
6
|
-
import { a as $e, b as et, c as tt, u as nt } from "./index-
|
|
7
|
-
import { _ as ot, F as st } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { a as $e, b as et, c as tt, u as nt } from "./index-B6zknB--.js";
|
|
7
|
+
import { _ as ot, F as st } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BZX05ToS.js";
|
|
8
8
|
const at = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
9
9
|
var Me = { exports: {} };
|
|
10
10
|
(function(C, A) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as y, withCtx as U, createElementVNode as n, toDisplayString as m, unref as i, createBlock as B, createCommentVNode as v, Fragment as E, renderList as C, nextTick as oe } from "vue";
|
|
2
|
-
import { a as te,
|
|
3
|
-
import { u as re } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as te, a3 as le, bd as ie, n as h, be as T, a1 as G, a0 as se, F as de } from "./app-BDiHcGqi.js";
|
|
3
|
+
import { u as re } from "./use-inventory-binding-dialog-CI_pMWSk.js";
|
|
4
|
+
import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BZX05ToS.js";
|
|
5
5
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
6
6
|
const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-16" }, fe = { class: "flex items-center" }, ve = { class: "flex-1 fm-typo-en-title-sm-600" }, be = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, _e = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, he = {
|
|
7
7
|
class: "flex items-center",
|
|
@@ -21,10 +21,10 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
21
21
|
}, Pe = {
|
|
22
22
|
class: "flex items-center",
|
|
23
23
|
style: { "min-height": "48px" }
|
|
24
|
-
}, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" },
|
|
24
|
+
}, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, De = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "w-[52px]"
|
|
27
|
-
},
|
|
27
|
+
}, Ke = { class: "flex flex-col gap-16" }, $e = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, We = {
|
|
28
28
|
class: "flex items-center w-full",
|
|
29
29
|
style: { "min-height": "48px" }
|
|
30
30
|
}, qe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, He = { class: "line-clamp-1" }, Je = { class: "w-[150px]" }, Qe = {
|
|
@@ -43,8 +43,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
43
43
|
enableIngredientGroup: { type: Boolean }
|
|
44
44
|
},
|
|
45
45
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
46
|
-
setup(M, { emit:
|
|
47
|
-
const { t: a } = ce(), x = te(),
|
|
46
|
+
setup(M, { emit: D }) {
|
|
47
|
+
const { t: a } = ce(), x = te(), K = _(() => x.recipeById), I = _(() => x.skuById), $ = _(() => x.skuGroupById), s = M, b = D, A = _(() => le({
|
|
48
48
|
parentId: s.id,
|
|
49
49
|
bindings: s.modelValue,
|
|
50
50
|
recipes: x.recipes.map((o) => o._id === s.id ? {
|
|
@@ -192,7 +192,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
192
192
|
n("div", xe, [
|
|
193
193
|
n("div", he, [
|
|
194
194
|
n("div", Ve, [
|
|
195
|
-
n("div", Be, m((g =
|
|
195
|
+
n("div", Be, m((g = K.value[l.id]) == null ? void 0 : g.name), 1)
|
|
196
196
|
]),
|
|
197
197
|
n("div", ke, [
|
|
198
198
|
y(f, {
|
|
@@ -268,7 +268,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
268
268
|
])) : v("", !0),
|
|
269
269
|
n("div", Pe, [
|
|
270
270
|
n("div", Ne, [
|
|
271
|
-
n("div", Te, m((g =
|
|
271
|
+
n("div", Te, m((g = $.value[l.id]) == null ? void 0 : g.name), 1)
|
|
272
272
|
]),
|
|
273
273
|
n("div", Me, [
|
|
274
274
|
y(f, {
|
|
@@ -279,7 +279,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
279
279
|
invalid: V
|
|
280
280
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
281
281
|
]),
|
|
282
|
-
e.readonly ? v("", !0) : (r(), p("div",
|
|
282
|
+
e.readonly ? v("", !0) : (r(), p("div", De, [
|
|
283
283
|
y(d, {
|
|
284
284
|
disabled: e.disabled,
|
|
285
285
|
type: "button",
|
|
@@ -297,8 +297,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
|
|
|
297
297
|
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
298
298
|
])
|
|
299
299
|
])) : v("", !0),
|
|
300
|
-
n("div",
|
|
301
|
-
n("div",
|
|
300
|
+
n("div", Ke, [
|
|
301
|
+
n("div", $e, [
|
|
302
302
|
n("div", je, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
|
|
303
303
|
e.readonly ? v("", !0) : (r(), B(d, {
|
|
304
304
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-BDiHcGqi.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a0 as s } from "./app-BDiHcGqi.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|