@feedmepos/mf-inventory-portal 0.0.25-dev.2 → 0.0.25-dev.21
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-D6WBVERc.js +278 -0
- package/dist/ApprovalView-BIBoagE8.js +146 -0
- package/dist/{BindingsDialog-qeGh3ND8.js → BindingsDialog-DHRRkK1Z.js} +6 -6
- package/dist/{BindingsPicker-SfiA8fmD.js → BindingsPicker-DohvMDDF.js} +3 -3
- package/dist/{BindingsTable-BjW-eJr6.js → BindingsTable-C_JwU9ei.js} +6 -6
- package/dist/ClosingDraftView-BBebhUj-.js +1308 -0
- package/dist/ClosingTemplateView-CXRN19-D.js +1859 -0
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BJufUQNE.js +215 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-5rldKjyh.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5Xk19jY.js} +52 -52
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-7HNI82u-.js +51 -0
- package/dist/{IngredientGroupView-CGyyFyvj.js → IngredientGroupView-l2bAc1Kj.js} +1 -1
- package/dist/{IngredientsView-BLKk-VxQ.js → IngredientsView-zDXt7KEx.js} +394 -382
- package/dist/{IntegrationView-C6gwvZ9b.js → IntegrationView-BYnlAPrP.js} +660 -623
- package/dist/{InventoryBindingForm-BB3ZN3Lx.js → InventoryBindingForm-BuweG4Vl.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-PT7Quw7j.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DgxN0U4N.js} +99 -99
- package/dist/{InventoryBindingSummary-yr0oie3c.js → InventoryBindingSummary-BpEo0JsK.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjJGUE9a.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CcjzkzCt.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-O1mYRa5W.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ej20iSHA.js} +15 -15
- package/dist/PublishView-DCZ0zIaP.js +222 -0
- package/dist/{PurchaseOrderPrintPreview-Q_9-KVNj.js → PurchaseOrderPrintPreview-Cag7UEvz.js} +1 -1
- package/dist/ReceiveRequestView-ChIJGA98.js +2319 -0
- package/dist/{RecipeView-DBfugmRY.js → RecipeView-bBshe0eF.js} +32 -31
- package/dist/{index-CgspzSQi.js → StockView-D6-oKpAC.js} +3577 -1764
- package/dist/{SupplierView-BQViPyfj.js → SupplierView-dyIcGp9Q.js} +12 -11
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C_7wbQow.js +1771 -0
- package/dist/TransferTemplateView-D2rxV0k_.js +1660 -0
- package/dist/{UnitView-CrbFeWaB.js → UnitView-DVS5Az5c.js} +14 -14
- package/dist/{WarehouseView-Dy5GljxY.js → WarehouseView-CR03TpnA.js} +332 -314
- package/dist/api/closing-draft.d.ts +1 -0
- package/dist/api/inventory.d.ts +9 -6
- package/dist/api/purchase-order.d.ts +2 -1
- package/dist/{app-D0O4wr2X.js → app-oV9ISfFL.js} +28343 -28141
- package/dist/app.js +1 -1
- package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
- package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/FmMultiselectDialog.d.ts +46 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +20 -3
- package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
- package/dist/components/MountListener.vue.d.ts +15 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
- package/dist/{decimal-CPGmj9BT.js → decimal-C7zgfr5G.js} +1 -1
- package/dist/feature-CDQQ-mV9.js +1003 -0
- package/dist/{format-unit-display-CMM6DZJj.js → format-unit-display-CVBzrNQ4.js} +334 -327
- package/dist/helper/fuzzy.d.ts +10 -0
- package/dist/index-0VS4cuk3.js +35546 -0
- package/dist/{stock-9nTT4Amy.js → stock-BIP_NIK_.js} +3 -3
- package/dist/stores/feature.d.ts +4 -7
- package/dist/stores/integration/netsuite.d.ts +5 -0
- package/dist/stores/inventory.d.ts +135 -8
- package/dist/stores/location.d.ts +100 -0
- package/dist/stores/warehouse.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-CH4EwBZM.js → supplier-DUQ2VSMg.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-ingredient-select-dialog-VkU5_Aaj.js +51 -0
- package/dist/{use-inventory-binding-dialog-Dli3xtq4.js → use-inventory-binding-dialog-BXp0z3v_.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
- package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +1387 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +5 -1
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +3 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -2
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +48 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +490 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferSubItemTable.vue.d.ts +72 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +25 -2
- package/dist/views/receive-request/components/transfer-form/helpers/calculate-sub-item-total.helper.d.ts +4 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +693 -35
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +684 -35
- package/dist/views/receive-request/helper/po-to-po-template.util.d.ts +1 -0
- package/dist/views/receive-request/helper/print-po.d.ts +9 -2
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +270 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +286 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateSubItem.vue.d.ts +74 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateSubItemTable.vue.d.ts +92 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +36 -2
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +456 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +456 -12
- package/dist/views/transfer-template/helpers/location-to-po-supplier.util.d.ts +75 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
- package/dist/{vue-i18n-BcYt8MNZ.js → vue-i18n-CCd5_SRR.js} +212 -212
- package/package.json +3 -3
- package/dist/App-oKNdl2la.js +0 -276
- package/dist/ApprovalView-hDGkcBDy.js +0 -138
- package/dist/ClosingDraftView-CEeeL7W4.js +0 -1225
- package/dist/ClosingTemplateView-CkS9e0MV.js +0 -1819
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-CIBSvY0s.js +0 -142
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dg_7ELeT.js +0 -286
- package/dist/PublishView-ByXdmuJL.js +0 -192
- package/dist/ReceiveRequestView-CApg7LGM.js +0 -1876
- package/dist/StockView-D6o_oUlz.js +0 -1817
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D2skLe2M.js +0 -1327
- package/dist/TransferTemplateView-DVesObTd.js +0 -1284
- package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
- package/dist/index-P5iEcRw3.js +0 -29202
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -2628
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as
|
|
2
|
-
import { a as Z,
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as
|
|
1
|
+
import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as l, createBlock as V, createCommentVNode as g, Fragment as R, renderList as S, withCtx as T, nextTick as X } from "vue";
|
|
2
|
+
import { a as Z, aR as ee, aS as ne, i as B, aT as oe, L as N, K as te, F as ie } from "./app-oV9ISfFL.js";
|
|
3
|
+
import { u as le } from "./use-inventory-binding-dialog-BXp0z3v_.js";
|
|
4
|
+
import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C5Xk19jY.js";
|
|
5
5
|
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
6
6
|
const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ve = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
|
|
7
7
|
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
@@ -15,10 +15,10 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
15
15
|
}, Be = { class: "flex flex-col gap-16" }, ke = { class: "flex items-center" }, Fe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ie = { 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" }, Ue = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ee = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Ce = {
|
|
16
16
|
class: "flex items-center w-full",
|
|
17
17
|
style: { "min-height": "48px" }
|
|
18
|
-
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" },
|
|
18
|
+
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Se = { class: "w-[150px]" }, Te = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "w-[52px]"
|
|
21
|
-
},
|
|
21
|
+
}, Ne = { class: "flex flex-col px-12 pb-4" }, ze = /* @__PURE__ */ J({
|
|
22
22
|
__name: "InventoryBindingForm",
|
|
23
23
|
props: {
|
|
24
24
|
id: {},
|
|
@@ -30,71 +30,71 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
30
30
|
readonly: { type: Boolean }
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
33
|
-
setup(
|
|
34
|
-
const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []),
|
|
35
|
-
bindings:
|
|
36
|
-
recipes: I.value.map((
|
|
37
|
-
...
|
|
38
|
-
contains:
|
|
39
|
-
} :
|
|
33
|
+
setup(P, { emit: M }) {
|
|
34
|
+
const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []), r = P, f = M, w = _(() => ee({
|
|
35
|
+
bindings: r.modelValue,
|
|
36
|
+
recipes: I.value.map((o) => o._id === r.id ? {
|
|
37
|
+
...o,
|
|
38
|
+
contains: r.modelValue
|
|
39
|
+
} : o),
|
|
40
40
|
skus: h.value
|
|
41
|
-
}).inventoryBindings.filter((
|
|
41
|
+
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ne.enum.circularDependency)), K = _(
|
|
42
42
|
() => new Set(w.value.map((e) => {
|
|
43
|
-
var
|
|
44
|
-
return (
|
|
43
|
+
var t;
|
|
44
|
+
return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
|
|
45
45
|
}))
|
|
46
|
-
),
|
|
47
|
-
async function
|
|
48
|
-
if (
|
|
46
|
+
), D = _(() => r.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = le();
|
|
47
|
+
async function G() {
|
|
48
|
+
if (r.iframeMode) {
|
|
49
49
|
f("click:pick-inventory-bindings", "RECIPE");
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
z(
|
|
53
|
+
r.modelValue,
|
|
54
54
|
(e) => f("update:modelValue", e),
|
|
55
|
-
|
|
55
|
+
r.id ? [r.id] : []
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
-
const U = _(() =>
|
|
59
|
-
async function
|
|
60
|
-
if (
|
|
58
|
+
const U = _(() => r.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
59
|
+
async function L() {
|
|
60
|
+
if (r.iframeMode) {
|
|
61
61
|
f("click:pick-inventory-bindings", "SKU");
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
$(
|
|
65
|
-
|
|
65
|
+
r.modelValue,
|
|
66
66
|
(e) => f("update:modelValue", e),
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
r.excludeBindingId,
|
|
68
|
+
r.id ? [r.id] : []
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const
|
|
73
|
-
let d =
|
|
74
|
-
|
|
71
|
+
function j(e, t, o) {
|
|
72
|
+
const s = +t;
|
|
73
|
+
let d = o;
|
|
74
|
+
t.length > 0 && isFinite(s) ? d = o.map((a) => (a.id !== e || (a.amount = te(s)), a)) : d = o.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), f("update:modelValue", d);
|
|
75
75
|
}
|
|
76
|
-
function E(e,
|
|
77
|
-
const
|
|
78
|
-
f("update:modelValue",
|
|
76
|
+
function E(e, t) {
|
|
77
|
+
const o = t.filter((s) => s.id !== e);
|
|
78
|
+
f("update:modelValue", o);
|
|
79
79
|
}
|
|
80
80
|
function C(e) {
|
|
81
|
-
var
|
|
82
|
-
if (e.type !==
|
|
81
|
+
var o, s;
|
|
82
|
+
if (e.type !== ie.enum.SKU)
|
|
83
83
|
throw new Error("Non-SKU binding does not have unit");
|
|
84
|
-
if (!((
|
|
84
|
+
if (!((o = h.value.find((d) => d._id === e.id)) == null ? void 0 : o.unit))
|
|
85
85
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
86
|
-
return (
|
|
86
|
+
return (s = h.value.find((d) => d._id === e.id)) == null ? void 0 : s.unit;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Y(e) {
|
|
89
89
|
return { amount: e.amount, measurement: e.measurement };
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
const
|
|
91
|
+
function O(e, t, o) {
|
|
92
|
+
const s = o.map((d) => d.id !== e ? d : {
|
|
93
93
|
...d,
|
|
94
|
-
amount:
|
|
95
|
-
measurement:
|
|
94
|
+
amount: t.amount,
|
|
95
|
+
measurement: t.measurement
|
|
96
96
|
});
|
|
97
|
-
f("update:modelValue",
|
|
97
|
+
f("update:modelValue", s);
|
|
98
98
|
}
|
|
99
99
|
const A = Q({});
|
|
100
100
|
function W(e) {
|
|
@@ -106,64 +106,64 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
106
106
|
amountAsString: B(e.amount)
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function q(e,
|
|
109
|
+
function q(e, t) {
|
|
110
110
|
X(() => {
|
|
111
111
|
A[e.id] = {
|
|
112
112
|
modelValue: {
|
|
113
113
|
amount: e.amount,
|
|
114
114
|
measurement: e.measurement
|
|
115
115
|
},
|
|
116
|
-
amountAsString:
|
|
116
|
+
amountAsString: t
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
return (e,
|
|
121
|
-
const
|
|
120
|
+
return (e, t) => {
|
|
121
|
+
const o = x("FmFormGroup"), s = x("FmButton"), d = x("FmIcon"), a = x("FmTextField"), H = x("FmTooltip");
|
|
122
122
|
return m(), y("div", ue, [
|
|
123
|
-
c(
|
|
123
|
+
c(o, {
|
|
124
124
|
disabled: e.disabled,
|
|
125
125
|
"model-value": e.modelValue,
|
|
126
126
|
rules: e.rules
|
|
127
127
|
}, null, 8, ["disabled", "model-value", "rules"]),
|
|
128
128
|
n("div", me, [
|
|
129
129
|
n("div", ce, [
|
|
130
|
-
n("div", pe, v(
|
|
131
|
-
e.readonly ? g("", !0) : (m(), V(
|
|
130
|
+
n("div", pe, v(l(p)("inventory.inventoryBindings.recipe")), 1),
|
|
131
|
+
e.readonly ? g("", !0) : (m(), V(s, {
|
|
132
132
|
key: 0,
|
|
133
133
|
variant: "secondary",
|
|
134
134
|
"text-color": "primary",
|
|
135
135
|
"border-color": "primary",
|
|
136
|
-
label:
|
|
136
|
+
label: l(p)("inventory.inventoryBindings.linkRecipe"),
|
|
137
137
|
"prepend-icon": "link",
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: G
|
|
139
139
|
}, null, 8, ["label"]))
|
|
140
140
|
]),
|
|
141
141
|
n("div", fe, [
|
|
142
142
|
n("div", ye, [
|
|
143
|
-
n("div", ve, v(
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
n("div", ve, v(l(p)("inventory.inventoryBindings.recipe")), 1),
|
|
144
|
+
t[0] || (t[0] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
145
|
+
t[1] || (t[1] = n("div", { class: "w-[52px]" }, null, -1))
|
|
146
146
|
]),
|
|
147
|
-
(m(!0), y(R, null,
|
|
148
|
-
key:
|
|
147
|
+
(m(!0), y(R, null, S(D.value, (i) => (m(), V(o, {
|
|
148
|
+
key: i.id,
|
|
149
149
|
disabled: e.disabled,
|
|
150
|
-
modelValue: +
|
|
151
|
-
rules: [
|
|
150
|
+
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
151
|
+
rules: [l(oe)(0), l(N)(0)]
|
|
152
152
|
}, {
|
|
153
|
-
default:
|
|
153
|
+
default: T(({ invalid: k }) => {
|
|
154
154
|
var b;
|
|
155
155
|
return [
|
|
156
156
|
n("div", _e, [
|
|
157
157
|
n("div", ge, [
|
|
158
158
|
n("div", be, [
|
|
159
|
-
n("div", null, v((b = I.value.find((u) => u._id ===
|
|
160
|
-
|
|
159
|
+
n("div", null, v((b = I.value.find((u) => u._id === i.id)) == null ? void 0 : b.name), 1),
|
|
160
|
+
K.value.has(i.id) ? (m(), y("div", xe, [
|
|
161
161
|
c(d, {
|
|
162
162
|
name: "error",
|
|
163
163
|
color: "system-error-400",
|
|
164
164
|
size: "sm"
|
|
165
165
|
}),
|
|
166
|
-
|
|
166
|
+
t[2] || (t[2] = n("div", null, "There is circular linking in your binding.", -1))
|
|
167
167
|
])) : g("", !0)
|
|
168
168
|
])
|
|
169
169
|
]),
|
|
@@ -171,19 +171,19 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
171
171
|
c(a, {
|
|
172
172
|
class: "w-full",
|
|
173
173
|
disabled: e.disabled,
|
|
174
|
-
modelValue: +
|
|
175
|
-
"onUpdate:modelValue": (u) =>
|
|
174
|
+
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
175
|
+
"onUpdate:modelValue": (u) => j(i.id, u, e.modelValue),
|
|
176
176
|
invalid: k
|
|
177
177
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
178
178
|
]),
|
|
179
179
|
e.readonly ? g("", !0) : (m(), y("div", Ve, [
|
|
180
|
-
c(
|
|
180
|
+
c(s, {
|
|
181
181
|
disabled: e.disabled,
|
|
182
182
|
type: "button",
|
|
183
183
|
variant: "plain",
|
|
184
184
|
icon: "delete",
|
|
185
185
|
"icon-color": "#000000",
|
|
186
|
-
onClick: (u) => E(
|
|
186
|
+
onClick: (u) => E(i.id, e.modelValue)
|
|
187
187
|
}, null, 8, ["disabled", "onClick"])
|
|
188
188
|
]))
|
|
189
189
|
])
|
|
@@ -195,41 +195,41 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
195
195
|
]),
|
|
196
196
|
n("div", Be, [
|
|
197
197
|
n("div", ke, [
|
|
198
|
-
n("div", Fe, v(
|
|
199
|
-
e.readonly ? g("", !0) : (m(), V(
|
|
198
|
+
n("div", Fe, v(l(p)("inventory.inventoryBindings.ingredient")), 1),
|
|
199
|
+
e.readonly ? g("", !0) : (m(), V(s, {
|
|
200
200
|
key: 0,
|
|
201
201
|
variant: "secondary",
|
|
202
202
|
"text-color": "primary",
|
|
203
203
|
"border-color": "primary",
|
|
204
|
-
label:
|
|
204
|
+
label: l(p)("inventory.inventoryBindings.linkIngredient"),
|
|
205
205
|
"prepend-icon": "link",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: L
|
|
207
207
|
}, null, 8, ["label"]))
|
|
208
208
|
]),
|
|
209
209
|
n("div", Ie, [
|
|
210
210
|
n("div", we, [
|
|
211
|
-
n("div", Ue, v(
|
|
212
|
-
n("div", Ee, v(
|
|
213
|
-
|
|
211
|
+
n("div", Ue, v(l(p)("inventory.inventoryBindings.ingredient")), 1),
|
|
212
|
+
n("div", Ee, v(l(p)("inventory.inventoryBindings.amount")), 1),
|
|
213
|
+
t[3] || (t[3] = n("div", { class: "w-[52px]" }, null, -1))
|
|
214
214
|
]),
|
|
215
|
-
(m(!0), y(R, null,
|
|
215
|
+
(m(!0), y(R, null, S(U.value, (i, k) => {
|
|
216
216
|
var b;
|
|
217
217
|
return m(), y("div", {
|
|
218
|
-
key:
|
|
218
|
+
key: i.id,
|
|
219
219
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
220
220
|
}, [
|
|
221
221
|
n("div", Ce, [
|
|
222
222
|
n("div", Ae, [
|
|
223
|
-
n("span", Re, v((b = h.value.find((u) => u._id ===
|
|
223
|
+
n("span", Re, v((b = h.value.find((u) => u._id === i.id)) == null ? void 0 : b.name), 1),
|
|
224
224
|
w.value.length ? (m(), V(H, {
|
|
225
225
|
key: 0,
|
|
226
226
|
variant: "plain",
|
|
227
227
|
placement: "bottom",
|
|
228
|
-
content:
|
|
228
|
+
content: l(p)("inventory.inventoryBindings.invalidWarning"),
|
|
229
229
|
"hide-arrow": !0,
|
|
230
230
|
"z-index": 50
|
|
231
231
|
}, {
|
|
232
|
-
default:
|
|
232
|
+
default: T(() => [
|
|
233
233
|
c(d, {
|
|
234
234
|
name: "error",
|
|
235
235
|
size: "sm",
|
|
@@ -239,37 +239,37 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
239
239
|
_: 1
|
|
240
240
|
}, 8, ["content"])) : g("", !0)
|
|
241
241
|
]),
|
|
242
|
-
n("div",
|
|
243
|
-
c(
|
|
244
|
-
"model-value":
|
|
245
|
-
"onUpdate:modelValue": (u) =>
|
|
246
|
-
"onUpdate:amount": (u) => q(
|
|
247
|
-
unit: C(
|
|
242
|
+
n("div", Se, [
|
|
243
|
+
c(re, {
|
|
244
|
+
"model-value": Y(i),
|
|
245
|
+
"onUpdate:modelValue": (u) => O(i.id, u, e.modelValue),
|
|
246
|
+
"onUpdate:amount": (u) => q(i, u),
|
|
247
|
+
unit: C(i),
|
|
248
248
|
placement: k === U.value.length - 1 ? "top" : "bottom",
|
|
249
249
|
"convert-amount-on-change-unit": "",
|
|
250
250
|
disabled: e.readonly
|
|
251
251
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
252
252
|
]),
|
|
253
|
-
e.readonly ? g("", !0) : (m(), y("div",
|
|
254
|
-
c(
|
|
253
|
+
e.readonly ? g("", !0) : (m(), y("div", Te, [
|
|
254
|
+
c(s, {
|
|
255
255
|
disabled: e.disabled,
|
|
256
256
|
type: "button",
|
|
257
257
|
variant: "tertiary",
|
|
258
258
|
icon: "delete",
|
|
259
|
-
onClick: (u) => E(
|
|
259
|
+
onClick: (u) => E(i.id, e.modelValue)
|
|
260
260
|
}, null, 8, ["disabled", "onClick"])
|
|
261
261
|
]))
|
|
262
262
|
]),
|
|
263
|
-
n("div",
|
|
264
|
-
c(
|
|
265
|
-
modelValue: +
|
|
266
|
-
rules: [
|
|
263
|
+
n("div", Ne, [
|
|
264
|
+
c(o, {
|
|
265
|
+
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
266
|
+
rules: [l(N)(0)]
|
|
267
267
|
}, null, 8, ["modelValue", "rules"]),
|
|
268
|
-
c(
|
|
269
|
-
modelValue: W(
|
|
268
|
+
c(o, {
|
|
269
|
+
modelValue: W(i),
|
|
270
270
|
rules: [
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
l(se)(),
|
|
272
|
+
l(de)(C(i))
|
|
273
273
|
]
|
|
274
274
|
}, null, 8, ["modelValue", "rules"])
|
|
275
275
|
])
|
|
@@ -282,5 +282,5 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
export {
|
|
285
|
-
|
|
285
|
+
ze as _
|
|
286
286
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as c, openBlock as m, 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-oV9ISfFL.js";
|
|
5
5
|
const B = /* @__PURE__ */ s({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { K as d } from "./app-oV9ISfFL.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aA as d, aB as f, W as _, u as h } from "./app-oV9ISfFL.js";
|
|
2
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
3
|
-
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as
|
|
4
|
-
function
|
|
3
|
+
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
|
|
4
|
+
function I(e, t) {
|
|
5
5
|
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
const r = t.map((o) => o.name), n = e.map((o) =>
|
|
7
|
+
function O(e, t) {
|
|
8
|
+
const r = t.map((o) => o.name), n = e.map((o) => I(o, t));
|
|
9
9
|
return d.aoa_to_sheet([r, ...n]);
|
|
10
10
|
}
|
|
11
|
-
async function
|
|
11
|
+
async function z(e, t) {
|
|
12
12
|
const r = d.book_new();
|
|
13
13
|
for (const n of e) {
|
|
14
|
-
const o =
|
|
14
|
+
const o = O(
|
|
15
15
|
n.data,
|
|
16
16
|
n.columns.map((a) => typeof a == "string" ? {
|
|
17
17
|
name: a,
|
|
@@ -45,13 +45,13 @@ const m = _((e, t) => {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
});
|
|
48
|
-
function
|
|
48
|
+
function w() {
|
|
49
49
|
return {
|
|
50
50
|
inventoryForecast: { skus: [] },
|
|
51
51
|
purchaseOrderForecast: { skus: [] }
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
const c = y(
|
|
54
|
+
const c = y(w());
|
|
55
55
|
function C() {
|
|
56
56
|
return {
|
|
57
57
|
// state
|
|
@@ -82,7 +82,7 @@ function D(e) {
|
|
|
82
82
|
let t = e.substring(e.indexOf("_") + 1);
|
|
83
83
|
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const B = { class: "flex items-center gap-8" }, b = "Experience enhanced inventory features with premium plan.", N = /* @__PURE__ */ v({
|
|
86
86
|
__name: "PremiumBadge",
|
|
87
87
|
props: {
|
|
88
88
|
zIndex: {}
|
|
@@ -90,15 +90,15 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
90
90
|
setup(e) {
|
|
91
91
|
return (t, r) => {
|
|
92
92
|
const n = p("FmPill"), o = p("FmTooltip");
|
|
93
|
-
return k(), g("div",
|
|
94
|
-
|
|
93
|
+
return k(), g("div", B, [
|
|
94
|
+
S(t.$slots, "default"),
|
|
95
95
|
l(o, {
|
|
96
96
|
variant: "plain",
|
|
97
97
|
placement: "top",
|
|
98
|
-
content:
|
|
98
|
+
content: b,
|
|
99
99
|
"z-index": t.zIndex
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: x(() => [
|
|
102
102
|
l(n, { variant: "premium" })
|
|
103
103
|
]),
|
|
104
104
|
_: 1
|
|
@@ -109,7 +109,7 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
109
109
|
});
|
|
110
110
|
export {
|
|
111
111
|
N as _,
|
|
112
|
-
|
|
112
|
+
z as e,
|
|
113
113
|
D as i,
|
|
114
114
|
C as u
|
|
115
115
|
};
|