@feedmepos/mf-inventory-portal 1.2.4-dev.1 → 1.2.5-dev.1
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-CdweYGJb.js → App-plHMDZk7.js} +1 -1
- package/dist/{ApprovalView-N5aTAawv.js → ApprovalView-CChHxp4X.js} +50 -49
- package/dist/{BindingsDialog-CF43nBIL.js → BindingsDialog-CU-u0hJx.js} +2 -2
- package/dist/{BindingsPicker-UXffTvIT.js → BindingsPicker-BpbNVNQQ.js} +1 -1
- package/dist/{BindingsTable-bGEdChlq.js → BindingsTable-v1QcskCd.js} +1 -1
- package/dist/{ClosingDraftView-CU6ncRGd.js → ClosingDraftView-D9HwfK7e.js} +2 -2
- package/dist/{ClosingTemplateView-B7hlv-ol.js → ClosingTemplateView-ancesrdQ.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BHsASpvc.js → DeliveryOrderPrintPreview-DLSzR6HB.js} +8 -8
- package/dist/{FmAdminBadge-phxApe08.js → FmAdminBadge-Cb9aT29U.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp0j6Sx0.js +230 -0
- package/dist/{FmMultiselectDialog-Cw7978N9.js → FmMultiselectDialog-SoaYz3_K.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-m_DVEWZp.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D5k7Xk3M.js} +15 -15
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CK2uHzWs.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-NY7TPnoY.js} +1 -1
- package/dist/{IngredientGroupView-BLlM22XE.js → IngredientGroupView-DmbPHuWG.js} +2 -2
- package/dist/{IngredientsView-D-MLnQUs.js → IngredientsView-Bxb_BeyP.js} +71 -61
- package/dist/{IntegrationView-DS8GfDcu.js → IntegrationView-B8mnGO1_.js} +84 -84
- package/dist/{InventoryBindingForm-Cxl3010v.js → InventoryBindingForm-B2tlc3uk.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DVytESGu.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C-qi9Mri.js} +3 -3
- package/dist/{InventoryBindingSummary-BPLbgkdU.js → InventoryBindingSummary-BUkLwuPN.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6G0tvu8.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-4W5T_8W7.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DIgC7Vso.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DCtPbVFp.js} +7 -7
- package/dist/{PublishView-C7M3-gQh.js → PublishView-Dkq9VZOG.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-ZhFYuurj.js → PurchaseOrderPrintPreview-C-jyn09w.js} +8 -8
- package/dist/{ReceiveRequestView-BCdKPhsr.js → ReceiveRequestView-V4YNI_Jd.js} +82 -79
- package/dist/{RecipeView-DUmXQOxV.js → RecipeView-Ck3RZRhC.js} +3 -3
- package/dist/{StockView-BcxAyI7w.js → StockView-nstUyEXe.js} +7 -7
- package/dist/{SupplierView-q04_80bh.js → SupplierView-eXyZsmHQ.js} +862 -831
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-OCR95cDM.js +2578 -0
- package/dist/{TransferTemplateView-Cfcu-qeJ.js → TransferTemplateView-DZG_UCWg.js} +57 -57
- package/dist/{UnitView-BAPZkTQp.js → UnitView-COiitpcS.js} +3 -3
- package/dist/WarehouseView-DhBpkfGm.js +1066 -0
- package/dist/api/inventory.d.ts +8 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-Bcq0U90V.js → app-DayXXH4q.js} +14439 -13858
- package/dist/app.d.ts +24 -9
- package/dist/app.js +1 -1
- package/dist/{decimal-Dhnp84Mk.js → decimal-CFYWiBC2.js} +1 -1
- package/dist/{format-unit-display-X0is3zJN.js → format-unit-display-DIr9pTFo.js} +21 -21
- package/dist/{index-Bb9d1Qcc.js → index-DLOpJmH-.js} +1 -1
- package/dist/{index-CnqZ1tak.js → index-tQKFc6GI.js} +1 -1
- package/dist/{stock-DcD5Tbqe.js → stock-DeAkNJnm.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/stores/location.d.ts +57 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/{supplier-njZB-A08.js → supplier-C4DAoZrI.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CFxbHyQu.js → use-ingredient-select-dialog-CV7X8z4O.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CtvdrDNH.js → use-inventory-binding-dialog-nuT-Ptlx.js} +1 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +60 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +10 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +94 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +72 -1
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +2 -2
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQi8T-o4.js +0 -227
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CBFgpKee.js +0 -2494
- package/dist/WarehouseView-9AkOoqZV.js +0 -1034
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as
|
|
2
|
-
import { L as We,
|
|
1
|
+
import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as P, renderSlot as xe, withDirectives as Ue, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
|
|
2
|
+
import { L as We, aL as he, t as Ne, I as it, aM as ut, aN as dt, j as se, aO as mt, b as Ge, a as Ke, T as Le, c as ge, n as ke, Z as be, V as ye, A as we, M as pt, J as ee, u as Ze, ao as ct, a1 as ft, G as Je, e as ue, aP as ve, aj as yt, v as vt, ab as bt, C as gt, i as Ee, _ as ht, E as xt } from "./app-DayXXH4q.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-
|
|
4
|
+
import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-DIr9pTFo.js";
|
|
5
5
|
import { components as de, useSnackbar as Ct, useProxiedModel as Xe, useBreakpoints as Ft } from "@feedmepos/ui-library";
|
|
6
6
|
import { defineStore as St, storeToRefs as He } from "pinia";
|
|
7
|
-
import { _ as It, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as Rt } from "./supplier-
|
|
10
|
-
import { u as
|
|
11
|
-
const
|
|
7
|
+
import { _ as It, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D5k7Xk3M.js";
|
|
8
|
+
import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp0j6Sx0.js";
|
|
9
|
+
import { u as Rt } from "./supplier-C4DAoZrI.js";
|
|
10
|
+
import { u as Pt } from "./use-ingredient-select-dialog-CV7X8z4O.js";
|
|
11
|
+
const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
|
|
12
12
|
__name: "FmMinMaxInput",
|
|
13
13
|
props: {
|
|
14
14
|
rules: {},
|
|
@@ -79,7 +79,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
79
79
|
w.max = null;
|
|
80
80
|
v.min = w.min, v.max = w.max;
|
|
81
81
|
});
|
|
82
|
-
const F = Symbol.for("fm:form-state"), c = ot(F, null), o = L(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = L(() => k.value || T.value),
|
|
82
|
+
const F = Symbol.for("fm:form-state"), c = ot(F, null), o = L(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = L(() => k.value || T.value), U = L(() => [...[
|
|
83
83
|
function() {
|
|
84
84
|
return typeof a(u.value) == "string" || typeof a(x.value) == "string" ? "Must be a number" : !0;
|
|
85
85
|
},
|
|
@@ -89,7 +89,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
89
89
|
], ...h.rules ?? []]);
|
|
90
90
|
return (d, y) => {
|
|
91
91
|
const w = V("FmLabel"), i = V("FmField"), g = V("FmFormGroup");
|
|
92
|
-
return $(), N("div",
|
|
92
|
+
return $(), N("div", Ut, [
|
|
93
93
|
e("div", Bt, [
|
|
94
94
|
e("div", qt, [
|
|
95
95
|
m(w, {
|
|
@@ -100,12 +100,12 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
100
100
|
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
101
101
|
]),
|
|
102
102
|
m(i, { focused: R.value }, {
|
|
103
|
-
default:
|
|
103
|
+
default: P(() => [
|
|
104
104
|
e("div", Nt, [
|
|
105
105
|
xe(d.$slots, "prepend"),
|
|
106
106
|
y[6] || (y[6] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Min.", -1)),
|
|
107
107
|
e("div", Lt, [
|
|
108
|
-
|
|
108
|
+
Ue(e("input", {
|
|
109
109
|
type: "text",
|
|
110
110
|
ref_key: "minInputRef",
|
|
111
111
|
ref: f,
|
|
@@ -124,7 +124,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
124
124
|
y[7] || (y[7] = e("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
125
125
|
y[8] || (y[8] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Max.", -1)),
|
|
126
126
|
e("div", Et, [
|
|
127
|
-
|
|
127
|
+
Ue(e("input", {
|
|
128
128
|
type: "text",
|
|
129
129
|
ref_key: "maxInputRef",
|
|
130
130
|
ref: b,
|
|
@@ -150,7 +150,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
150
150
|
class: "flex-1",
|
|
151
151
|
"model-value": d.modelValue,
|
|
152
152
|
info: d.labelInfo,
|
|
153
|
-
rules:
|
|
153
|
+
rules: U.value,
|
|
154
154
|
"helper-text": d.helperText,
|
|
155
155
|
"helper-state": d.helperState
|
|
156
156
|
}, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"])
|
|
@@ -287,9 +287,9 @@ function Yt(p, h = {}) {
|
|
|
287
287
|
minSize: 200,
|
|
288
288
|
cell(c) {
|
|
289
289
|
var R;
|
|
290
|
-
const o = c.row.original, f = a.skuById[o.sku._id], b = a.unitById[(R = f.unit) == null ? void 0 : R._id], k = b.measurements.find((
|
|
290
|
+
const o = c.row.original, f = a.skuById[o.sku._id], b = a.unitById[(R = f.unit) == null ? void 0 : R._id], k = b.measurements.find((U) => {
|
|
291
291
|
var d;
|
|
292
|
-
return ((d = o.measurement) == null ? void 0 : d.id) ===
|
|
292
|
+
return ((d = o.measurement) == null ? void 0 : d.id) === U.id;
|
|
293
293
|
}), T = o.sku.unit._id !== f.unit._id || !b || o.measurement && !k;
|
|
294
294
|
return j(It, {
|
|
295
295
|
style: {
|
|
@@ -303,11 +303,11 @@ function Yt(p, h = {}) {
|
|
|
303
303
|
disabled: p.disabled,
|
|
304
304
|
key: o.sku._id,
|
|
305
305
|
unit: b,
|
|
306
|
-
"onUpdate:modelValue": (
|
|
306
|
+
"onUpdate:modelValue": (U) => {
|
|
307
307
|
u.validateUnitInput(
|
|
308
308
|
o,
|
|
309
309
|
f,
|
|
310
|
-
|
|
310
|
+
U,
|
|
311
311
|
(d) => {
|
|
312
312
|
p.updateItem({
|
|
313
313
|
...o,
|
|
@@ -507,7 +507,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
507
507
|
return a;
|
|
508
508
|
}
|
|
509
509
|
return (a, r) => {
|
|
510
|
-
var u, x, F, c, o, f, b, k, T, R,
|
|
510
|
+
var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, M, _, W, te, E, B, Z, l, n, C, q, z, G;
|
|
511
511
|
const s = V("FmLabel");
|
|
512
512
|
return $(), N("div", Wt, [
|
|
513
513
|
e("div", Gt, [
|
|
@@ -538,7 +538,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
538
538
|
label: t(h)(`inventory.transfer.form.items.table.${t(Q).Name}`)
|
|
539
539
|
}, null, 8, ["label"]),
|
|
540
540
|
m(t(ee), {
|
|
541
|
-
render: (y = (d = (
|
|
541
|
+
render: (y = (d = (U = a.cellByColId[t(Q).Name]) == null ? void 0 : U.column) == null ? void 0 : d.columnDef) == null ? void 0 : y.cell,
|
|
542
542
|
props: (i = (w = a.cellByColId[t(Q).Name]) == null ? void 0 : w.getContext) == null ? void 0 : i.call(w)
|
|
543
543
|
}, null, 8, ["render", "props"]),
|
|
544
544
|
r[1] || (r[1] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -664,7 +664,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
664
664
|
const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ? X.TRANSFER : X.PURCHASE;
|
|
665
665
|
l !== n && (s.purchaseOrder.supplier = l === X.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
|
|
666
666
|
}
|
|
667
|
-
}),
|
|
667
|
+
}), U = L(() => T.transferLocationOptions.value), d = L({
|
|
668
668
|
get() {
|
|
669
669
|
var l;
|
|
670
670
|
return (l = s.purchaseOrder.supplier) == null ? void 0 : l._id;
|
|
@@ -772,7 +772,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
})
|
|
775
|
-
), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } =
|
|
775
|
+
), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Pt();
|
|
776
776
|
async function Z() {
|
|
777
777
|
const n = c.skus.map((D) => ({
|
|
778
778
|
label: D.name,
|
|
@@ -835,7 +835,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
835
835
|
class: "flex flex-col gap-32",
|
|
836
836
|
disabled: l.disabled
|
|
837
837
|
}, {
|
|
838
|
-
default:
|
|
838
|
+
default: P(() => {
|
|
839
839
|
var J;
|
|
840
840
|
return [
|
|
841
841
|
e("div", co, [
|
|
@@ -865,9 +865,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
865
865
|
sublabel: t(T).locationOptionsTypeTransfer.value.length ? void 0 : t(u)("inventory.transfer.form.noLocationAvailable")
|
|
866
866
|
}
|
|
867
867
|
],
|
|
868
|
-
rules: [t(we)(1)(
|
|
868
|
+
rules: [t(we)(1)(U.value)]
|
|
869
869
|
}, {
|
|
870
|
-
default:
|
|
870
|
+
default: P(() => [
|
|
871
871
|
e("span", {
|
|
872
872
|
class: re([
|
|
873
873
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
@@ -881,18 +881,18 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
881
881
|
label: R.value === t(X).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
|
|
882
882
|
modelValue: d.value,
|
|
883
883
|
"onUpdate:modelValue": n[2] || (n[2] = (S) => d.value = S),
|
|
884
|
-
items:
|
|
884
|
+
items: U.value
|
|
885
885
|
}, {
|
|
886
|
-
"menu-wrapper":
|
|
886
|
+
"menu-wrapper": P((S) => {
|
|
887
887
|
var H;
|
|
888
888
|
return [
|
|
889
889
|
m(At, Qe(S, {
|
|
890
|
-
items:
|
|
890
|
+
items: U.value,
|
|
891
891
|
"model-value": (H = l.modelValue.purchaseOrder.supplier) == null ? void 0 : H._id
|
|
892
892
|
}), null, 16, ["items", "model-value"])
|
|
893
893
|
];
|
|
894
894
|
}),
|
|
895
|
-
default:
|
|
895
|
+
default: P(() => {
|
|
896
896
|
var S;
|
|
897
897
|
return [
|
|
898
898
|
e("span", {
|
|
@@ -900,7 +900,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
900
900
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
901
901
|
l.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
902
902
|
])
|
|
903
|
-
}, I((S =
|
|
903
|
+
}, I((S = U.value.find((H) => H.value === d.value)) == null ? void 0 : S.label), 3)
|
|
904
904
|
];
|
|
905
905
|
}),
|
|
906
906
|
_: 1
|
|
@@ -997,7 +997,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
997
997
|
"hide-footer": "",
|
|
998
998
|
"page-size": t(s).purchaseOrder.items.length
|
|
999
999
|
}, {
|
|
1000
|
-
"table-row":
|
|
1000
|
+
"table-row": P((S) => [
|
|
1001
1001
|
m(po, {
|
|
1002
1002
|
row: S,
|
|
1003
1003
|
errorMessage: x.value[S.index],
|
|
@@ -1005,12 +1005,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1005
1005
|
disabled: l.disabled
|
|
1006
1006
|
}, null, 8, ["row", "errorMessage", "disabled"])
|
|
1007
1007
|
]),
|
|
1008
|
-
"list-row":
|
|
1008
|
+
"list-row": P((S) => [
|
|
1009
1009
|
($(), le(Je, {
|
|
1010
1010
|
row: S,
|
|
1011
1011
|
key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
|
|
1012
1012
|
}, {
|
|
1013
|
-
default:
|
|
1013
|
+
default: P((H) => [
|
|
1014
1014
|
m(ro, {
|
|
1015
1015
|
row: S,
|
|
1016
1016
|
"cell-by-col-id": H,
|
|
@@ -1061,10 +1061,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1061
1061
|
"onUpdate:modelValue": x[2] || (x[2] = (o) => r.value = o),
|
|
1062
1062
|
overlay: !0
|
|
1063
1063
|
}, {
|
|
1064
|
-
"dialog-header":
|
|
1064
|
+
"dialog-header": P(() => [
|
|
1065
1065
|
e("div", null, I(v.confirmTitle || "Confirm"), 1)
|
|
1066
1066
|
]),
|
|
1067
|
-
"dialog-footer":
|
|
1067
|
+
"dialog-footer": P(() => [
|
|
1068
1068
|
e("div", Co, [
|
|
1069
1069
|
m(F, {
|
|
1070
1070
|
label: "Cancel",
|
|
@@ -1079,7 +1079,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1079
1079
|
})
|
|
1080
1080
|
])
|
|
1081
1081
|
]),
|
|
1082
|
-
default:
|
|
1082
|
+
default: P(() => [
|
|
1083
1083
|
xe(u.$slots, "dialog-content", {}, () => [
|
|
1084
1084
|
ne(I(v.confirmMessage || "Are you sure you want to proceed?"), 1)
|
|
1085
1085
|
])
|
|
@@ -1190,7 +1190,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
async function
|
|
1193
|
+
async function U() {
|
|
1194
1194
|
var g, O;
|
|
1195
1195
|
const i = o.value;
|
|
1196
1196
|
if (i) {
|
|
@@ -1219,7 +1219,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1219
1219
|
case ue.CREATE:
|
|
1220
1220
|
return R();
|
|
1221
1221
|
case ue.UPDATE:
|
|
1222
|
-
return
|
|
1222
|
+
return U();
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
function y() {
|
|
@@ -1235,12 +1235,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1235
1235
|
"close-button": "",
|
|
1236
1236
|
"max-width": 1600
|
|
1237
1237
|
}, {
|
|
1238
|
-
"side-sheet-header":
|
|
1238
|
+
"side-sheet-header": P(() => [
|
|
1239
1239
|
e("div", So, [
|
|
1240
1240
|
e("div", Io, I(k.value), 1)
|
|
1241
1241
|
])
|
|
1242
1242
|
]),
|
|
1243
|
-
default:
|
|
1243
|
+
default: P(() => [
|
|
1244
1244
|
($(), le(To, {
|
|
1245
1245
|
class: "w-full",
|
|
1246
1246
|
ref_key: "formRef",
|
|
@@ -1253,7 +1253,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1253
1253
|
key: f.value
|
|
1254
1254
|
}, null, 8, ["model-value", "disabled"]))
|
|
1255
1255
|
]),
|
|
1256
|
-
"side-sheet-footer":
|
|
1256
|
+
"side-sheet-footer": P(() => [
|
|
1257
1257
|
e("div", Mo, [
|
|
1258
1258
|
m(Fo, {
|
|
1259
1259
|
loading: b.value,
|
|
@@ -1261,7 +1261,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1261
1261
|
"confirm-title": `Save ${a.mode === t(ue).CREATE ? "Template" : "Changes"}`,
|
|
1262
1262
|
onConfirm: y
|
|
1263
1263
|
}, {
|
|
1264
|
-
"dialog-content":
|
|
1264
|
+
"dialog-content": P(() => g[4] || (g[4] = [
|
|
1265
1265
|
e("div", { class: "fm-typo-en-body-md-400 bg-fm-color-primary-oats p-8 rounded" }, [
|
|
1266
1266
|
ne(" Warning: This action "),
|
|
1267
1267
|
e("span", { class: "text-fm-color-system-error-300" }, "will not"),
|
|
@@ -1282,7 +1282,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1282
1282
|
}, 8, ["modelValue"]);
|
|
1283
1283
|
};
|
|
1284
1284
|
}
|
|
1285
|
-
}), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" },
|
|
1285
|
+
}), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Po = { class: "flex flex-col gap-4" }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "flex gap-1" }, qo = { class: "fm-typo-en-body-lg-600" }, No = {
|
|
1286
1286
|
key: 0,
|
|
1287
1287
|
class: "flex flex-col gap-4"
|
|
1288
1288
|
}, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = { class: "flex gap-1" }, zo = { class: "fm-typo-en-body-lg-600" }, Ho = {
|
|
@@ -1322,7 +1322,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1322
1322
|
), o = Y(!0), f = Xe(v, "show");
|
|
1323
1323
|
return (b, k) => {
|
|
1324
1324
|
var g;
|
|
1325
|
-
const T = V("FmMenuDivider"), R = V("FmCard"),
|
|
1325
|
+
const T = V("FmMenuDivider"), R = V("FmCard"), U = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
|
|
1326
1326
|
return $(), le(i, {
|
|
1327
1327
|
header: t(s)("inventory.transfer.template.details.view", { template: (g = b.template) == null ? void 0 : g.name }),
|
|
1328
1328
|
modelValue: t(f),
|
|
@@ -1331,7 +1331,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1331
1331
|
"close-button": "",
|
|
1332
1332
|
"max-width": 1200
|
|
1333
1333
|
}, {
|
|
1334
|
-
default:
|
|
1334
|
+
default: P(() => {
|
|
1335
1335
|
var O, M;
|
|
1336
1336
|
return [
|
|
1337
1337
|
e("div", Oo, [
|
|
@@ -1340,7 +1340,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1340
1340
|
variant: "outlined",
|
|
1341
1341
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
1342
1342
|
}, {
|
|
1343
|
-
default:
|
|
1343
|
+
default: P(() => {
|
|
1344
1344
|
var _, W, te, E, B, Z, l, n, C;
|
|
1345
1345
|
return [
|
|
1346
1346
|
e("div", Do, [
|
|
@@ -1351,8 +1351,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1351
1351
|
]),
|
|
1352
1352
|
m(T),
|
|
1353
1353
|
e("div", Ro, [
|
|
1354
|
-
e("div",
|
|
1355
|
-
e("div",
|
|
1354
|
+
e("div", Po, [
|
|
1355
|
+
e("div", Uo, [
|
|
1356
1356
|
e("div", Bo, I(t(s)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
1357
1357
|
]),
|
|
1358
1358
|
e("div", qo, I(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
|
|
@@ -1403,7 +1403,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1403
1403
|
_.totalCost && t(r).enableTotalCost ? ($(), N("div", rs, " (" + I(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
|
|
1404
1404
|
]),
|
|
1405
1405
|
t(wt)(_) ? ($(), N("div", is, [
|
|
1406
|
-
m(
|
|
1406
|
+
m(U, {
|
|
1407
1407
|
name: "error",
|
|
1408
1408
|
color: "system-error-300",
|
|
1409
1409
|
size: "sm"
|
|
@@ -1439,7 +1439,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1439
1439
|
])
|
|
1440
1440
|
];
|
|
1441
1441
|
}),
|
|
1442
|
-
"side-sheet-footer":
|
|
1442
|
+
"side-sheet-footer": P(() => [
|
|
1443
1443
|
e("div", ms, [
|
|
1444
1444
|
m(w, {
|
|
1445
1445
|
label: t(s)("common.edit"),
|
|
@@ -1459,7 +1459,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1459
1459
|
Te(F.fetchTemplates);
|
|
1460
1460
|
const R = L(
|
|
1461
1461
|
() => f.value || c.value || !k._currentLocation
|
|
1462
|
-
),
|
|
1462
|
+
), U = L(() => o.value), d = Y(""), y = L(() => T.value.xs || T.value.sm), w = L(() => y.value ? 10 : 20);
|
|
1463
1463
|
function i(M) {
|
|
1464
1464
|
switch (M) {
|
|
1465
1465
|
case Ee.Add:
|
|
@@ -1506,7 +1506,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1506
1506
|
actions: O.value,
|
|
1507
1507
|
"onClick:action": i
|
|
1508
1508
|
}, {
|
|
1509
|
-
default:
|
|
1509
|
+
default: P(() => {
|
|
1510
1510
|
var te;
|
|
1511
1511
|
return [
|
|
1512
1512
|
e("div", {
|
|
@@ -1526,20 +1526,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1526
1526
|
($(), le(W, {
|
|
1527
1527
|
style: _e(t(b).tableHeight),
|
|
1528
1528
|
"column-defs": t(F).columnDefs,
|
|
1529
|
-
"row-data":
|
|
1529
|
+
"row-data": U.value,
|
|
1530
1530
|
"search-value": d.value,
|
|
1531
1531
|
loading: R.value,
|
|
1532
1532
|
key: (te = t(k)._currentLocation) == null ? void 0 : te.dbName,
|
|
1533
1533
|
onRowClick: _[1] || (_[1] = (E) => t(a)(E.original)),
|
|
1534
1534
|
"page-size": w.value
|
|
1535
1535
|
}, {
|
|
1536
|
-
"list-row":
|
|
1536
|
+
"list-row": P((E) => [
|
|
1537
1537
|
m(Je, {
|
|
1538
1538
|
row: E,
|
|
1539
1539
|
onRowClick: (B) => t(a)(B)
|
|
1540
1540
|
}, {
|
|
1541
|
-
default:
|
|
1542
|
-
var Z, l, n, C, q, z, G, D, A, K, J, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe,
|
|
1541
|
+
default: P((B) => {
|
|
1542
|
+
var Z, l, n, C, q, z, G, D, A, K, J, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Pe;
|
|
1543
1543
|
return [
|
|
1544
1544
|
e("div", cs, [
|
|
1545
1545
|
e("div", fs, [
|
|
@@ -1573,7 +1573,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1573
1573
|
e("div", null, [
|
|
1574
1574
|
m(t(ee), {
|
|
1575
1575
|
render: (Re = (Ae = (Ve = B.type) == null ? void 0 : Ve.column) == null ? void 0 : Ae.columnDef) == null ? void 0 : Re.cell,
|
|
1576
|
-
props: (
|
|
1576
|
+
props: (Pe = (fe = B.type) == null ? void 0 : fe.getContext) == null ? void 0 : Pe.call(fe)
|
|
1577
1577
|
}, null, 8, ["render", "props"])
|
|
1578
1578
|
])
|
|
1579
1579
|
])
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as G, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as W, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
|
|
2
|
-
import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, T as fe, n as j, A as ye, j as Y, V as be, W as ge, r as oe, u as xe, b as _e, C as he, _ as Ve, E as Ue, G as we, J as Ce } from "./app-
|
|
2
|
+
import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, T as fe, n as j, A as ye, j as Y, V as be, W as ge, r as oe, u as xe, b as _e, C as he, _ as Ve, E as Ue, G as we, J as Ce } from "./app-DayXXH4q.js";
|
|
3
3
|
import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { defineStore as $e, storeToRefs as Ie } from "pinia";
|
|
6
6
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
7
|
-
import { F as De } from "./decimal-
|
|
8
|
-
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { F as De } from "./decimal-CFYWiBC2.js";
|
|
8
|
+
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-4W5T_8W7.js";
|
|
9
9
|
const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|