@feedmepos/mf-inventory-portal 1.5.11-dev.1 → 1.5.11-dev.2
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-D4rysNfh.js → App-CquCiNsy.js} +4 -4
- package/dist/{ApprovalView-DpYJmgiG.js → ApprovalView-CU-k06kj.js} +7 -7
- package/dist/{BindingsDialog-C7z0HH48.js → BindingsDialog-BPBKfeS6.js} +2 -2
- package/dist/{BindingsPicker-C5IKp9CT.js → BindingsPicker-DkBI7_0Y.js} +2 -2
- package/dist/{BindingsTable-BRDooCs4.js → BindingsTable-C22g1gV7.js} +3 -3
- package/dist/{ClosingDraftView-CSCbfIFE.js → ClosingDraftView-DgHvcVne.js} +15 -15
- package/dist/{ClosingHistoryView-DCIJ5ONT.js → ClosingHistoryView-Cjm39o7e.js} +5 -5
- package/dist/{ClosingTemplateView-D1n9_dFc.js → ClosingTemplateView-BfO_HZS-.js} +14 -14
- package/dist/{DefaultView-Llrh9ufI.js → DefaultView-Jl_IdT_Z.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DSkU-sqv.js → DeliveryOrderPrintPreview-CaWTHT6h.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DL6AKT9H.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXmbD4jZ.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-JHabBWJb.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DWm36ZgX.js} +2 -2
- package/dist/{FmMultiselectDialog-BWujDEnX.js → FmMultiselectDialog-CEsqNTCq.js} +2 -2
- package/dist/{FmMultiselectDialog-C0lCYHla.js → FmMultiselectDialog-D4gqa0tb.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CjCNHugK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-4NtlySGX.js} +5 -5
- package/dist/{ImportView-C6q4gB3S.js → ImportView-GTiAyijj.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Df7B8ZEG.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHRq2v-2.js} +1 -1
- package/dist/{IngredientGroupView-DO8OKEVU.js → IngredientGroupView-Kk002hXi.js} +5 -5
- package/dist/{IngredientsView-CD2YtXPJ.js → IngredientsView-8Dojrj1e.js} +15 -15
- package/dist/{IntegrationExplorerView-CZCMnwZG.js → IntegrationExplorerView-BVBqUc3k.js} +5 -5
- package/dist/{IntegrationView--3nVS_X6.js → IntegrationView-eS-LnDeu.js} +13 -13
- package/dist/{InventoryBindingForm-FjFTiN7R.js → InventoryBindingForm-DitsFH4v.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CcF5cko8.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DncMbF6J.js} +133 -145
- package/dist/{InventoryBindingSummary-D90hAi96.js → InventoryBindingSummary-DIKZ_7lC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1iDUXU2T.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJV_hhgt.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DTYnX8kn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Pjde4sd6.js} +1 -1
- package/dist/{PublishView-BtcGl7zM.js → PublishView-CTwkJWJj.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DvkMQv1w.js → PurchaseOrderPrintPreview-BuP85XCw.js} +2 -2
- package/dist/{ReceiveRequestView-DSfj36r3.js → ReceiveRequestView-CfWhi-qh.js} +26 -26
- package/dist/{RecipeView-DkDSr3LN.js → RecipeView-CaNmJwqf.js} +664 -676
- package/dist/{SettingsView-iRqUoEPg.js → SettingsView-DiMxunWj.js} +4 -4
- package/dist/{StockView-DxUXHYD_.js → StockView-CWDb29Cp.js} +19 -19
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-WJ0Fz21v.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-0MNUfMmq.js} +1 -1
- package/dist/{SupplierView-BYQjWeU7.js → SupplierView-CLB-ASht.js} +12 -12
- package/dist/{SurchargeView-CyhTe1B8.js → SurchargeView-C2clhhAW.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CBM8jJqP.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DF-LJ-3w.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DM9Cg0uk.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Ga9lkrf8.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D2MztVse.js → TransferDetails.vue_vue_type_script_setup_true_lang-R1t4S-6H.js} +20 -20
- package/dist/{TransferTemplateView-FNI6jVh0.js → TransferTemplateView-7lXzFWv2.js} +18 -18
- package/dist/{UnitCostHistoryView-sGxNtk0Y.js → UnitCostHistoryView-CZg_dxvk.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Cn6q11Ts.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BB3dV6Gh.js} +5 -5
- package/dist/{UnitView-P8jU14k8.js → UnitView-BnZ_3MwD.js} +7 -7
- package/dist/{WarehouseView-NILk42Zj.js → WarehouseView-D7j9qMqP.js} +5 -5
- package/dist/{WastageTemplateView-DNrKoK3S.js → WastageTemplateView-Cl_9lPqx.js} +14 -14
- package/dist/{app-DIOXPCfI.js → app-DMMqtQts.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{closing-template-DAlwSsqC.js → closing-template-CiSNSKyE.js} +1 -1
- package/dist/{date2-DBIy5hnh.js → date2-Db-IPmri.js} +1 -1
- package/dist/{dayjs.min-B2EqUP7W.js → dayjs.min-DD2BO69F.js} +1 -1
- package/dist/{decimal-e6enR5yT.js → decimal-Ds6h3ukt.js} +2 -2
- package/dist/{defineDeepModel-CwqnmttS.js → defineDeepModel-BgonxmUi.js} +1 -1
- package/dist/{duplicate-template-DRtq-b-P.js → duplicate-template-L6x61phF.js} +1 -1
- package/dist/{feature-BCSp38rL.js → feature-C0UUWbkT.js} +2 -2
- package/dist/{format-time-from-id-CTWNRFSC.js → format-time-from-id-lrFC2RMu.js} +1 -1
- package/dist/{format-unit-display-BFP12VU7.js → format-unit-display-CpwFmpcL.js} +11 -11
- package/dist/{import-export.helper-Dr7R0Zql.js → import-export.helper-BtXLvHMF.js} +6 -6
- package/dist/{index-BhS1AhF-.js → index-Cej2xM-2.js} +1 -1
- package/dist/{index-C2MhE26a.js → index-CxALGEZr.js} +3 -3
- package/dist/{index-Df-NlbKu.js → index-mtJ1GhRU.js} +1 -1
- package/dist/{inventory-core-dart.default-CW9d8gJh.js → inventory-core-dart.default-CroeeGeI.js} +1 -1
- package/dist/{lz-string-BHfmMoLE.js → lz-string-TL3mT9nT.js} +1 -1
- package/dist/{netsuite-BSEnJOMn.js → netsuite-DOpNemik.js} +2 -2
- package/dist/{number-B1buZ_S4.js → number-DlYhqTV5.js} +3 -3
- package/dist/{predefined-templates-BIFClpKf.js → predefined-templates-DDpVS07Q.js} +1 -1
- package/dist/{purchase-order-template-BCt-pDW-.js → purchase-order-template-K6HvK5h0.js} +1 -1
- package/dist/{recalculationUtils-CASVCqt7.js → recalculationUtils-BHomSQPu.js} +1 -1
- package/dist/{rules-C60UHyIn.js → rules-r7ubhhR0.js} +2 -2
- package/dist/{stock-CkWMLoi7.js → stock-BcLy5Ilr.js} +1 -1
- package/dist/{supplier-CiW6zfX_.js → supplier-rNHLA7rt.js} +2 -2
- package/dist/{surcharge-B9FUKx0L.js → surcharge-B5N4UzQl.js} +1 -1
- package/dist/{uom-rules-DXiQ0ZIA.js → uom-rules-B51fYVj3.js} +1 -1
- package/dist/{use-ingredient-select-dialog-Bn8C8IG1.js → use-ingredient-select-dialog-C7NY9Kj6.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DZQ1WG1S.js → use-inventory-binding-dialog-Ca4VaXkz.js} +2 -2
- package/dist/{use-template-enabled-locations-B9YKq5YY.js → use-template-enabled-locations-RiR-qhSs.js} +2 -2
- package/dist/{use-transfer-locations-D0mDjUMQ.js → use-transfer-locations-csQ1Ar0m.js} +2 -2
- package/dist/{useHrmPermission-BTkOHa4h.js → useHrmPermission-DHcinOeI.js} +1 -1
- package/dist/{useNavigationMenu-CSfM_5Wy.js → useNavigationMenu-u8V59Vtc.js} +2 -2
- package/dist/{useSseClient-DwJXBOEF.js → useSseClient-UQLgDoDc.js} +3 -3
- package/dist/{vue-i18n-BWe-vqm2.js → vue-i18n-CD-rDdDv.js} +111 -111
- package/dist/{xlsx-BT7Z_gt_.js → xlsx-BRq0kYfc.js} +1 -1
- package/dist/{xlsx.util-Bm6lJRyh.js → xlsx.util-ylgVcZid.js} +3 -3
- package/package.json +3 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as oe, computed as x, reactive as te, resolveComponent as
|
|
2
|
-
import { a as ie, t as se, v as
|
|
3
|
-
import { a as h, c as ae } from "./number-
|
|
4
|
-
import { u as ue } from "./use-inventory-binding-dialog-
|
|
5
|
-
import { b as
|
|
6
|
-
import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as oe, computed as x, reactive as te, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as m, withCtx as I, createElementVNode as n, toDisplayString as c, unref as i, createBlock as w, createCommentVNode as v, Fragment as F, renderList as G, nextTick as le } from "vue";
|
|
2
|
+
import { a as ie, t as se, v as re, F as de } from "./app-DMMqtQts.js";
|
|
3
|
+
import { a as h, c as ae } from "./number-DlYhqTV5.js";
|
|
4
|
+
import { u as ue } from "./use-inventory-binding-dialog-Ca4VaXkz.js";
|
|
5
|
+
import { b as z, c as A } from "./rules-r7ubhhR0.js";
|
|
6
|
+
import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-4NtlySGX.js";
|
|
7
7
|
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
8
|
-
const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-16" },
|
|
8
|
+
const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-16" }, _e = { class: "flex items-center" }, be = { class: "flex-1 fm-typo-en-title-sm-600" }, xe = { 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" }, he = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ve = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Be = {
|
|
9
9
|
class: "flex items-center",
|
|
10
10
|
style: { "min-height": "48px" }
|
|
11
|
-
},
|
|
11
|
+
}, ke = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ie = { class: "flex flex-col" }, we = { class: "line-clamp-1" }, Fe = { class: "w-[200px]" }, Ue = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "w-[52px]"
|
|
14
|
-
},
|
|
14
|
+
}, Ee = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-8"
|
|
17
|
-
},
|
|
17
|
+
}, Ce = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "flex flex-col gap-16"
|
|
20
20
|
}, Ge = { class: "flex items-center" }, Ae = { class: "flex-1 fm-typo-en-title-sm-600" }, Re = { class: "flex flex-col" }, Se = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Pe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Te = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Me = {
|
|
@@ -23,7 +23,7 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
23
23
|
}, Ne = {
|
|
24
24
|
class: "flex items-center",
|
|
25
25
|
style: { "min-height": "48px" }
|
|
26
|
-
},
|
|
26
|
+
}, ze = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, De = { class: "flex flex-col" }, Ke = { class: "w-[200px]" }, $e = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "w-[52px]"
|
|
29
29
|
}, je = { class: "flex flex-col gap-16" }, Le = { class: "flex items-center" }, Oe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col" }, We = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, qe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, He = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Je = {
|
|
@@ -32,19 +32,16 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
32
32
|
}, Qe = {
|
|
33
33
|
class: "flex items-center w-full",
|
|
34
34
|
style: { "min-height": "48px" }
|
|
35
|
-
}, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, Ze = {
|
|
36
|
-
key: 0,
|
|
37
|
-
class: "w-[52px]"
|
|
38
|
-
}, en = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, nn = {
|
|
35
|
+
}, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, Ze = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, en = {
|
|
39
36
|
key: 1,
|
|
40
37
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
41
|
-
},
|
|
38
|
+
}, nn = {
|
|
42
39
|
class: "flex items-center w-full",
|
|
43
40
|
style: { "min-height": "48px" }
|
|
44
|
-
},
|
|
41
|
+
}, on = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, tn = { class: "line-clamp-1 w-full" }, ln = { class: "w-[150px]" }, sn = {
|
|
45
42
|
key: 0,
|
|
46
43
|
class: "w-[52px]"
|
|
47
|
-
}, rn = { class: "flex flex-col px-12 pb-4" },
|
|
44
|
+
}, rn = { class: "flex flex-col px-12 pb-4" }, fn = /* @__PURE__ */ oe({
|
|
48
45
|
__name: "InventoryBindingForm",
|
|
49
46
|
props: {
|
|
50
47
|
id: {},
|
|
@@ -57,22 +54,22 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
57
54
|
enableIngredientGroup: { type: Boolean }
|
|
58
55
|
},
|
|
59
56
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
60
|
-
setup(
|
|
61
|
-
const { t:
|
|
57
|
+
setup(D, { emit: K }) {
|
|
58
|
+
const { t: u } = ye(), g = ie(), R = x(() => g.recipeById), V = x(() => g.skuById), $ = x(() => g.skuGroupById), s = D, _ = K, S = x(() => se({
|
|
62
59
|
parentId: s.id,
|
|
63
60
|
bindings: s.modelValue,
|
|
64
|
-
recipes: g.recipes.map((
|
|
65
|
-
...
|
|
61
|
+
recipes: g.recipes.map((o) => o._id === s.id ? {
|
|
62
|
+
...o,
|
|
66
63
|
contains: s.modelValue
|
|
67
|
-
} :
|
|
68
|
-
skus: g.skus.map((
|
|
69
|
-
...
|
|
64
|
+
} : o),
|
|
65
|
+
skus: g.skus.map((o) => o._id === s.id ? {
|
|
66
|
+
...o,
|
|
70
67
|
convert: {
|
|
71
68
|
inventoryBindings: s.modelValue
|
|
72
69
|
}
|
|
73
|
-
} :
|
|
70
|
+
} : o),
|
|
74
71
|
skuGroups: g.skuGroups
|
|
75
|
-
}).inventoryBindings.filter((
|
|
72
|
+
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === re.enum.circularDependency)), U = x(
|
|
76
73
|
() => new Set(S.value.map((e) => {
|
|
77
74
|
var l;
|
|
78
75
|
return (l = e.bindingPaths[0]) == null ? void 0 : l.id;
|
|
@@ -80,12 +77,12 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
80
77
|
), j = x(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: L, promptRecipesBinding: O, promptIngredientGroupsBinding: Y } = ue();
|
|
81
78
|
async function W() {
|
|
82
79
|
if (s.iframeMode) {
|
|
83
|
-
|
|
80
|
+
_("click:pick-inventory-bindings", "RECIPE");
|
|
84
81
|
return;
|
|
85
82
|
}
|
|
86
83
|
O(
|
|
87
84
|
s.modelValue,
|
|
88
|
-
(e) =>
|
|
85
|
+
(e) => _("update:modelValue", e),
|
|
89
86
|
s.id ? [s.id] : []
|
|
90
87
|
);
|
|
91
88
|
}
|
|
@@ -93,37 +90,37 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
93
90
|
async function H() {
|
|
94
91
|
Y(
|
|
95
92
|
s.modelValue,
|
|
96
|
-
(e) =>
|
|
93
|
+
(e) => _("update:modelValue", e),
|
|
97
94
|
s.id ? [s.id] : []
|
|
98
95
|
);
|
|
99
96
|
}
|
|
100
97
|
const P = x(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
101
98
|
async function J() {
|
|
102
99
|
if (s.iframeMode) {
|
|
103
|
-
|
|
100
|
+
_("click:pick-inventory-bindings", "SKU");
|
|
104
101
|
return;
|
|
105
102
|
}
|
|
106
103
|
L(
|
|
107
104
|
s.modelValue,
|
|
108
|
-
(e) =>
|
|
105
|
+
(e) => _("update:modelValue", e),
|
|
109
106
|
s.excludeBindingId,
|
|
110
107
|
s.id ? [s.id] : []
|
|
111
108
|
);
|
|
112
109
|
}
|
|
113
|
-
function T(e, l,
|
|
110
|
+
function T(e, l, o) {
|
|
114
111
|
const a = +l;
|
|
115
|
-
let f =
|
|
116
|
-
l.length > 0 && isFinite(a) ? f =
|
|
112
|
+
let f = o;
|
|
113
|
+
l.length > 0 && isFinite(a) ? f = o.map((y) => (y.id !== e || (y.amount = ae(a)), y)) : f = o.map((y) => (y.id !== e || (y.amount = { amount: 0, precision: 0 }), y)), _("update:modelValue", f);
|
|
117
114
|
}
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
|
|
115
|
+
function E(e, l) {
|
|
116
|
+
const o = l.filter((a) => a.id !== e);
|
|
117
|
+
_("update:modelValue", o);
|
|
121
118
|
}
|
|
122
119
|
function M(e) {
|
|
123
|
-
var
|
|
124
|
-
if (e.type !==
|
|
120
|
+
var o, a;
|
|
121
|
+
if (e.type !== de.enum.SKU)
|
|
125
122
|
throw new Error("Non-SKU binding does not have unit");
|
|
126
|
-
if (!((
|
|
123
|
+
if (!((o = V.value[e.id]) == null ? void 0 : o.unit))
|
|
127
124
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
128
125
|
return (a = V.value[e.id]) == null ? void 0 : a.unit;
|
|
129
126
|
}
|
|
@@ -133,13 +130,13 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
133
130
|
function X(e) {
|
|
134
131
|
return { amount: e.amount, measurement: e.measurement };
|
|
135
132
|
}
|
|
136
|
-
function Z(e, l,
|
|
137
|
-
const a =
|
|
133
|
+
function Z(e, l, o) {
|
|
134
|
+
const a = o.map((f) => f.id !== e ? f : {
|
|
138
135
|
...f,
|
|
139
136
|
amount: l.amount,
|
|
140
137
|
measurement: l.measurement
|
|
141
138
|
});
|
|
142
|
-
|
|
139
|
+
_("update:modelValue", a);
|
|
143
140
|
}
|
|
144
141
|
const N = te({});
|
|
145
142
|
function ee(e) {
|
|
@@ -163,9 +160,9 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
163
160
|
});
|
|
164
161
|
}
|
|
165
162
|
return (e, l) => {
|
|
166
|
-
const
|
|
167
|
-
return
|
|
168
|
-
|
|
163
|
+
const o = k("FmFormGroup"), a = k("FmButton"), f = k("FmTooltip"), y = k("FmTextField"), C = k("FmIcon");
|
|
164
|
+
return r(), p("div", fe, [
|
|
165
|
+
m(o, {
|
|
169
166
|
disabled: e.disabled,
|
|
170
167
|
"model-value": e.modelValue,
|
|
171
168
|
rules: [
|
|
@@ -179,47 +176,47 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
179
176
|
_: 1
|
|
180
177
|
}, 8, ["disabled", "model-value", "rules"]),
|
|
181
178
|
n("div", ve, [
|
|
182
|
-
n("div",
|
|
183
|
-
n("div",
|
|
184
|
-
e.readonly ? v("", !0) : (
|
|
179
|
+
n("div", _e, [
|
|
180
|
+
n("div", be, c(i(u)("inventory.inventoryBindings.recipe")), 1),
|
|
181
|
+
e.readonly ? v("", !0) : (r(), w(a, {
|
|
185
182
|
key: 0,
|
|
186
183
|
variant: "secondary",
|
|
187
184
|
"text-color": "primary",
|
|
188
185
|
"border-color": "primary",
|
|
189
|
-
label: i(
|
|
186
|
+
label: i(u)("inventory.inventoryBindings.linkRecipe"),
|
|
190
187
|
"prepend-icon": "link",
|
|
191
188
|
onClick: W
|
|
192
189
|
}, null, 8, ["label"]))
|
|
193
190
|
]),
|
|
194
191
|
n("div", xe, [
|
|
195
192
|
n("div", ge, [
|
|
196
|
-
n("div", he,
|
|
193
|
+
n("div", he, c(i(u)("inventory.inventoryBindings.recipe")), 1),
|
|
197
194
|
l[1] || (l[1] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
198
195
|
l[2] || (l[2] = n("div", { class: "w-[52px]" }, null, -1))
|
|
199
196
|
]),
|
|
200
|
-
(
|
|
201
|
-
key:
|
|
197
|
+
(r(!0), p(F, null, G(j.value, (t) => (r(), w(o, {
|
|
198
|
+
key: t.id,
|
|
202
199
|
disabled: e.disabled,
|
|
203
|
-
modelValue: +i(h)(
|
|
204
|
-
rules: [i(
|
|
200
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
201
|
+
rules: [i(z)(0), i(A)(-1)]
|
|
205
202
|
}, {
|
|
206
|
-
default: I(({ invalid:
|
|
207
|
-
var
|
|
203
|
+
default: I(({ invalid: B }) => {
|
|
204
|
+
var b;
|
|
208
205
|
return [
|
|
209
206
|
n("div", Ve, [
|
|
210
|
-
n("div",
|
|
211
|
-
n("div",
|
|
207
|
+
n("div", Be, [
|
|
208
|
+
n("div", ke, [
|
|
212
209
|
n("div", Ie, [
|
|
213
|
-
|
|
210
|
+
m(f, {
|
|
214
211
|
zIndex: 51,
|
|
215
212
|
variant: "plain",
|
|
216
213
|
placement: "top",
|
|
217
|
-
content: (
|
|
214
|
+
content: (b = R.value[t.id]) == null ? void 0 : b.name
|
|
218
215
|
}, {
|
|
219
216
|
default: I(() => {
|
|
220
|
-
var
|
|
217
|
+
var d;
|
|
221
218
|
return [
|
|
222
|
-
n("span", we,
|
|
219
|
+
n("span", we, c((d = R.value[t.id]) == null ? void 0 : d.name), 1)
|
|
223
220
|
];
|
|
224
221
|
}),
|
|
225
222
|
_: 2
|
|
@@ -227,32 +224,32 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
227
224
|
])
|
|
228
225
|
]),
|
|
229
226
|
n("div", Fe, [
|
|
230
|
-
|
|
227
|
+
m(y, {
|
|
231
228
|
class: "w-full",
|
|
232
229
|
disabled: e.disabled,
|
|
233
|
-
modelValue: +i(h)(
|
|
234
|
-
"onUpdate:modelValue": (
|
|
235
|
-
invalid:
|
|
230
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
231
|
+
"onUpdate:modelValue": (d) => T(t.id, d, e.modelValue),
|
|
232
|
+
invalid: B
|
|
236
233
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
237
234
|
]),
|
|
238
|
-
e.readonly ? v("", !0) : (
|
|
239
|
-
|
|
235
|
+
e.readonly ? v("", !0) : (r(), p("div", Ue, [
|
|
236
|
+
m(a, {
|
|
240
237
|
disabled: e.disabled,
|
|
241
238
|
type: "button",
|
|
242
239
|
variant: "plain",
|
|
243
240
|
icon: "delete",
|
|
244
241
|
"icon-color": "#000000",
|
|
245
|
-
onClick: (
|
|
242
|
+
onClick: (d) => E(t.id, e.modelValue)
|
|
246
243
|
}, null, 8, ["disabled", "onClick"])
|
|
247
244
|
]))
|
|
248
245
|
]),
|
|
249
|
-
|
|
250
|
-
|
|
246
|
+
U.value.has(t.id) ? (r(), p("div", Ee, [
|
|
247
|
+
m(C, {
|
|
251
248
|
name: "error",
|
|
252
249
|
color: "system-error-300",
|
|
253
250
|
size: "sm"
|
|
254
251
|
}),
|
|
255
|
-
n("div", null,
|
|
252
|
+
n("div", null, c(i(u)("inventory.inventoryBindings.circularError")), 1)
|
|
256
253
|
])) : v("", !0)
|
|
257
254
|
])
|
|
258
255
|
];
|
|
@@ -261,64 +258,64 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
261
258
|
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
262
259
|
])
|
|
263
260
|
]),
|
|
264
|
-
e.enableIngredientGroup ? (
|
|
261
|
+
e.enableIngredientGroup ? (r(), p("div", Ce, [
|
|
265
262
|
n("div", Ge, [
|
|
266
|
-
n("div", Ae,
|
|
267
|
-
e.readonly ? v("", !0) : (
|
|
263
|
+
n("div", Ae, c(i(u)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
264
|
+
e.readonly ? v("", !0) : (r(), w(a, {
|
|
268
265
|
key: 0,
|
|
269
266
|
variant: "secondary",
|
|
270
267
|
"text-color": "primary",
|
|
271
268
|
"border-color": "primary",
|
|
272
|
-
label: i(
|
|
269
|
+
label: i(u)("inventory.inventoryBindings.linkIngredientGroup"),
|
|
273
270
|
"prepend-icon": "link",
|
|
274
271
|
onClick: H
|
|
275
272
|
}, null, 8, ["label"]))
|
|
276
273
|
]),
|
|
277
274
|
n("div", Re, [
|
|
278
275
|
n("div", Se, [
|
|
279
|
-
n("div", Pe,
|
|
276
|
+
n("div", Pe, c(i(u)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
280
277
|
l[3] || (l[3] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
281
278
|
l[4] || (l[4] = n("div", { class: "w-[52px]" }, null, -1))
|
|
282
279
|
]),
|
|
283
|
-
(
|
|
284
|
-
key:
|
|
280
|
+
(r(!0), p(F, null, G(q.value, (t) => (r(), w(o, {
|
|
281
|
+
key: t.id,
|
|
285
282
|
disabled: e.disabled,
|
|
286
|
-
modelValue: +i(h)(
|
|
287
|
-
rules: [i(
|
|
283
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
284
|
+
rules: [i(z)(0), i(A)(0)]
|
|
288
285
|
}, {
|
|
289
|
-
default: I(({ invalid:
|
|
290
|
-
var
|
|
286
|
+
default: I(({ invalid: B }) => {
|
|
287
|
+
var b;
|
|
291
288
|
return [
|
|
292
289
|
n("div", Te, [
|
|
293
|
-
|
|
294
|
-
|
|
290
|
+
U.value.has(t.id) ? (r(), p("div", Me, [
|
|
291
|
+
m(C, {
|
|
295
292
|
name: "error",
|
|
296
293
|
color: "system-error-300",
|
|
297
294
|
size: "sm"
|
|
298
295
|
}),
|
|
299
|
-
n("div", null,
|
|
296
|
+
n("div", null, c(i(u)("inventory.inventoryBindings.circularError")), 1)
|
|
300
297
|
])) : v("", !0),
|
|
301
298
|
n("div", Ne, [
|
|
302
|
-
n("div",
|
|
303
|
-
n("div",
|
|
299
|
+
n("div", ze, [
|
|
300
|
+
n("div", De, c((b = $.value[t.id]) == null ? void 0 : b.name), 1)
|
|
304
301
|
]),
|
|
305
|
-
n("div",
|
|
306
|
-
|
|
302
|
+
n("div", Ke, [
|
|
303
|
+
m(y, {
|
|
307
304
|
class: "w-full",
|
|
308
305
|
disabled: e.disabled,
|
|
309
|
-
modelValue: +i(h)(
|
|
310
|
-
"onUpdate:modelValue": (
|
|
311
|
-
invalid:
|
|
306
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
307
|
+
"onUpdate:modelValue": (d) => T(t.id, d, e.modelValue),
|
|
308
|
+
invalid: B
|
|
312
309
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
313
310
|
]),
|
|
314
|
-
e.readonly ? v("", !0) : (
|
|
315
|
-
|
|
311
|
+
e.readonly ? v("", !0) : (r(), p("div", $e, [
|
|
312
|
+
m(a, {
|
|
316
313
|
disabled: e.disabled,
|
|
317
314
|
type: "button",
|
|
318
315
|
variant: "plain",
|
|
319
316
|
icon: "delete",
|
|
320
317
|
"icon-color": "#000000",
|
|
321
|
-
onClick: (
|
|
318
|
+
onClick: (d) => E(t.id, e.modelValue)
|
|
322
319
|
}, null, 8, ["disabled", "onClick"])
|
|
323
320
|
]))
|
|
324
321
|
])
|
|
@@ -331,99 +328,90 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
331
328
|
])) : v("", !0),
|
|
332
329
|
n("div", je, [
|
|
333
330
|
n("div", Le, [
|
|
334
|
-
n("div", Oe,
|
|
335
|
-
e.readonly ? v("", !0) : (
|
|
331
|
+
n("div", Oe, c(i(u)("inventory.inventoryBindings.ingredient")), 1),
|
|
332
|
+
e.readonly ? v("", !0) : (r(), w(a, {
|
|
336
333
|
key: 0,
|
|
337
334
|
variant: "secondary",
|
|
338
335
|
"text-color": "primary",
|
|
339
336
|
"border-color": "primary",
|
|
340
|
-
label: i(
|
|
337
|
+
label: i(u)("inventory.inventoryBindings.linkIngredient"),
|
|
341
338
|
"prepend-icon": "link",
|
|
342
339
|
onClick: J
|
|
343
340
|
}, null, 8, ["label"]))
|
|
344
341
|
]),
|
|
345
342
|
n("div", Ye, [
|
|
346
343
|
n("div", We, [
|
|
347
|
-
n("div", qe,
|
|
348
|
-
n("div", He,
|
|
344
|
+
n("div", qe, c(i(u)("inventory.inventoryBindings.ingredient")), 1),
|
|
345
|
+
n("div", He, c(i(u)("inventory.inventoryBindings.amount")), 1),
|
|
349
346
|
l[5] || (l[5] = n("div", { class: "w-[52px]" }, null, -1))
|
|
350
347
|
]),
|
|
351
|
-
(
|
|
352
|
-
var
|
|
353
|
-
return
|
|
354
|
-
key:
|
|
348
|
+
(r(!0), p(F, null, G(P.value, (t, B) => {
|
|
349
|
+
var b;
|
|
350
|
+
return r(), p(F, {
|
|
351
|
+
key: t.id
|
|
355
352
|
}, [
|
|
356
|
-
Q(
|
|
353
|
+
Q(t) ? (r(), p("div", Je, [
|
|
357
354
|
n("div", Qe, [
|
|
358
|
-
n("div", Xe,
|
|
359
|
-
e.readonly ? v("", !0) : (d(), c("div", Ze, [
|
|
360
|
-
u(a, {
|
|
361
|
-
disabled: e.disabled,
|
|
362
|
-
type: "button",
|
|
363
|
-
variant: "tertiary",
|
|
364
|
-
icon: "delete",
|
|
365
|
-
onClick: (r) => F(o.id, e.modelValue)
|
|
366
|
-
}, null, 8, ["disabled", "onClick"])
|
|
367
|
-
]))
|
|
355
|
+
n("div", Xe, c(t.id), 1)
|
|
368
356
|
]),
|
|
369
|
-
n("div",
|
|
370
|
-
|
|
357
|
+
n("div", Ze, [
|
|
358
|
+
m(C, {
|
|
371
359
|
name: "error",
|
|
372
360
|
color: "system-error-300",
|
|
373
361
|
size: "sm"
|
|
374
362
|
}),
|
|
375
|
-
n("div", null,
|
|
363
|
+
n("div", null, c(i(u)("inventory.inventoryBindings.missingIngredient")), 1)
|
|
376
364
|
])
|
|
377
|
-
])) : (
|
|
378
|
-
n("div",
|
|
379
|
-
n("div",
|
|
380
|
-
|
|
365
|
+
])) : (r(), p("div", en, [
|
|
366
|
+
n("div", nn, [
|
|
367
|
+
n("div", on, [
|
|
368
|
+
m(f, {
|
|
381
369
|
zIndex: 51,
|
|
382
370
|
variant: "plain",
|
|
383
371
|
placement: "top",
|
|
384
|
-
content: (
|
|
372
|
+
content: (b = V.value[t.id]) == null ? void 0 : b.name
|
|
385
373
|
}, {
|
|
386
374
|
default: I(() => {
|
|
387
|
-
var
|
|
375
|
+
var d;
|
|
388
376
|
return [
|
|
389
|
-
n("span",
|
|
377
|
+
n("span", tn, c((d = V.value[t.id]) == null ? void 0 : d.name), 1)
|
|
390
378
|
];
|
|
391
379
|
}),
|
|
392
380
|
_: 2
|
|
393
381
|
}, 1032, ["content"])
|
|
394
382
|
]),
|
|
395
|
-
n("div",
|
|
396
|
-
|
|
397
|
-
"model-value": X(
|
|
398
|
-
"onUpdate:modelValue": (
|
|
399
|
-
"onUpdate:amount": (
|
|
400
|
-
unit: M(
|
|
401
|
-
placement:
|
|
383
|
+
n("div", ln, [
|
|
384
|
+
m(me, {
|
|
385
|
+
"model-value": X(t),
|
|
386
|
+
"onUpdate:modelValue": (d) => d && Z(t.id, d, e.modelValue),
|
|
387
|
+
"onUpdate:amount": (d) => ne(t, d),
|
|
388
|
+
unit: M(t),
|
|
389
|
+
placement: B === P.value.length - 1 ? "top" : "bottom",
|
|
402
390
|
"convert-amount-on-change-unit": "",
|
|
403
391
|
disabled: e.readonly
|
|
404
392
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
405
393
|
]),
|
|
406
|
-
e.readonly ? v("", !0) : (
|
|
407
|
-
|
|
394
|
+
e.readonly ? v("", !0) : (r(), p("div", sn, [
|
|
395
|
+
m(a, {
|
|
408
396
|
disabled: e.disabled,
|
|
409
397
|
type: "button",
|
|
410
398
|
variant: "tertiary",
|
|
411
399
|
icon: "delete",
|
|
412
|
-
onClick: (
|
|
400
|
+
onClick: (d) => E(t.id, e.modelValue)
|
|
413
401
|
}, null, 8, ["disabled", "onClick"])
|
|
414
402
|
]))
|
|
415
403
|
]),
|
|
416
404
|
n("div", rn, [
|
|
417
|
-
|
|
418
|
-
modelValue: +i(h)(
|
|
405
|
+
m(o, {
|
|
406
|
+
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
419
407
|
rules: [i(A)(0)]
|
|
420
408
|
}, null, 8, ["modelValue", "rules"]),
|
|
421
|
-
|
|
422
|
-
modelValue: ee(
|
|
409
|
+
m(o, {
|
|
410
|
+
modelValue: ee(t),
|
|
423
411
|
rules: [
|
|
424
412
|
i(ce)(),
|
|
425
|
-
i(pe)(M(
|
|
426
|
-
() =>
|
|
413
|
+
i(pe)(M(t)),
|
|
414
|
+
() => U.value.has(t.id) ? i(u)("inventory.inventoryBindings.invalidWarning") : !0
|
|
427
415
|
]
|
|
428
416
|
}, null, 8, ["modelValue", "rules"])
|
|
429
417
|
])
|
|
@@ -437,5 +425,5 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
437
425
|
}
|
|
438
426
|
});
|
|
439
427
|
export {
|
|
440
|
-
|
|
428
|
+
fn as _
|
|
441
429
|
};
|
|
@@ -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-DMMqtQts.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 { c as s } from "./number-
|
|
2
|
+
import { c as s } from "./number-DlYhqTV5.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as F, u as f } from "./app-
|
|
1
|
+
import { m as F, u as f } from "./app-DMMqtQts.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as _, defineComponent as h, resolveComponent as l, openBlock as y, createElementBlock as g, renderSlot as k, createVNode as p, withCtx as S } from "vue";
|
|
4
4
|
const m = F((e, t) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as D, ref as A, computed as i, watch as H, resolveComponent as u, openBlock as S, createBlock as x, unref as c, createSlots as Y, withCtx as h, createElementVNode as N, normalizeClass as $, createVNode as m, normalizeStyle as U, Teleport as q, h as p } from "vue";
|
|
2
|
-
import { u as E, a as K, x as j } from "./app-
|
|
2
|
+
import { u as E, a as K, x as j } from "./app-DMMqtQts.js";
|
|
3
3
|
import { u as G, _ as J } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
|
|
4
4
|
import { useBreakpoints as O, useDialog as Q, useSnackbar as R, components as I } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as X } from "./vue-i18n-
|
|
6
|
-
import { a as C } from "./date2-
|
|
5
|
+
import { u as X } from "./vue-i18n-CD-rDdDv.js";
|
|
6
|
+
import { a as C } from "./date2-Db-IPmri.js";
|
|
7
7
|
const ie = /* @__PURE__ */ D({
|
|
8
8
|
__name: "PublishView",
|
|
9
9
|
setup(Z) {
|
package/dist/{PurchaseOrderPrintPreview-DvkMQv1w.js → PurchaseOrderPrintPreview-BuP85XCw.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as b, computed as x, ref as f, onMounted as g, openBlock as n, createElementBlock as o, createElementVNode as t, toDisplayString as e, normalizeStyle as w, createTextVNode as u, Fragment as i, createCommentVNode as v, renderList as p } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { P as y } from "./app-
|
|
4
|
-
import { L as C } from "./lz-string-
|
|
3
|
+
import { P as y } from "./app-DMMqtQts.js";
|
|
4
|
+
import { L as C } from "./lz-string-TL3mT9nT.js";
|
|
5
5
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "title" }, E = { class: "text-right" }, D = { class: "header" }, O = { class: "sub-header" }, S = { class: "caption" }, F = { class: "address" }, T = { class: "text-right" }, L = {
|
|
7
7
|
key: 0,
|