@feedmepos/mf-inventory-portal 0.0.23-dev.41 → 0.0.23-dev.43
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-DW2K97Bb.js → App-C8wsA5dN.js} +104 -99
- package/dist/{ApprovalView-BgSxdrwt.js → ApprovalView-ZV8rwQp1.js} +18 -18
- package/dist/{BindingsDialog-CQtusdvp.js → BindingsDialog-Sbtijb1i.js} +2 -2
- package/dist/{BindingsPicker-BnEjRAah.js → BindingsPicker-wnlrCohJ.js} +1 -1
- package/dist/{BindingsTable-DpTPAef_.js → BindingsTable-BZCI3MS6.js} +1 -1
- package/dist/{ClosingDraftView-CXKYLCZS.js → ClosingDraftView-DyKbXVev.js} +494 -459
- package/dist/{ClosingTemplateView-CMTJHywt.js → ClosingTemplateView-DJr6D7iw.js} +1 -1
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-zOmcCdDR.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-B1mRTbf9.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-mAPA5_sB.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUiVV1lj.js} +7 -7
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BjNpfucZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-qU9EBVED.js} +29 -29
- package/dist/{IngredientGroupView-CrEfiZvn.js → IngredientGroupView-BWeMME4-.js} +1 -1
- package/dist/{IngredientsView-BB8LQlU9.js → IngredientsView-BRxpBv77.js} +14 -15
- package/dist/{IntegrationView-D2wTkDyX.js → IntegrationView-DZqL0Ekt.js} +1 -1
- package/dist/{InventoryBindingForm-DW7rJDc1.js → InventoryBindingForm-C2zDhhfZ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js} +44 -44
- package/dist/{InventoryBindingSummary-B40KofiI.js → InventoryBindingSummary-CJP0sf4N.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dplylu1K.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CC1nuQKm.js} +6 -6
- package/dist/{PurchaseOrderPrintPreview-DQmx28Be.js → PurchaseOrderPrintPreview-C5afxprc.js} +5 -5
- package/dist/{ReceiveRequestView-CJknzKfd.js → ReceiveRequestView-DzbcqmMA.js} +19 -20
- package/dist/{RecipeView-D5oWQ9Yd.js → RecipeView-8koCeNhZ.js} +25 -25
- package/dist/{StockView-U59PHCy2.js → StockView-C3Ef3mQz.js} +30 -31
- package/dist/{SupplierView-CLjjpTNZ.js → SupplierView-BHuYKWgW.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.js → TransferDetails.vue_vue_type_script_setup_true_lang-8rCAz5GA.js} +104 -104
- package/dist/{TransferTemplateView-CFoVrPIX.js → TransferTemplateView-u1u-VV-i.js} +63 -64
- package/dist/{UnitView-CAopphN_.js → UnitView-ucQ_K9ot.js} +3 -3
- package/dist/{WarehouseView-DUZku5U6.js → WarehouseView-CCwLKR3J.js} +111 -111
- package/dist/{app-0klJzLit.js → app-BvW6mdJl.js} +12411 -11415
- package/dist/app.js +1 -1
- package/dist/{decimal-Cu4rlnvU.js → decimal-hD6H0C0M.js} +1 -1
- package/dist/{format-unit-display-CMa5UhY1.js → format-unit-display-BfYIFIft.js} +27 -27
- package/dist/{index-BJaMpEVJ.js → index-BQUuh_Xy.js} +88 -88
- package/dist/{index-HTBqkVVr.js → index-y9SmouGG.js} +3 -3
- package/dist/{stock-CB4yNRMO.js → stock-CHW2fGsm.js} +3 -3
- package/dist/stores/feature.d.ts +37 -2
- package/dist/stores/location.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-biIIXGyr.js → supplier-CCUVm2qD.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BopoOOxB.js → use-inventory-binding-dialog-B8Cgp_x2.js} +1 -1
- package/package.json +1 -1
- package/dist/feature-C1wCaXKQ.js +0 -946
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Z, onMounted as ce, computed as R, ref as E, watch as pe, inject as Je, resolveComponent as V, openBlock as D, createElementBlock as K, createElementVNode as t, createVNode as c, withCtx as q, renderSlot as Oe, withDirectives as Ve, normalizeClass as ie, vModelText as Ae, reactive as Ze, h as J, toDisplayString as O, unref as e, createBlock as W, mergeProps as Ee, isRef as Ue, createCommentVNode as Y, Fragment as qe, renderList as Xe, normalizeStyle as Ye, Teleport as et, normalizeProps as tt, guardReactiveProps as ot } from "vue";
|
|
2
|
-
import { H as Ne,
|
|
2
|
+
import { H as Ne, ay as ue, t as De, I as st, az as lt, aA as nt, j as G, aB as at, b as ze, $ as Re, m as me, a as He, P as re, L as rt, A as de, M as it, c as je, G as Q, u as Qe, ac as ut, E as Ke, J as mt, K as dt, e as ee, aC as ne, a9 as ct, a1 as pt, z as ft, i as Pe, _ as yt, B as vt } from "./app-BvW6mdJl.js";
|
|
3
3
|
import { useI18n as X } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as H, a as bt, f as xt, t as _t, b as Le, u as ht } from "./format-unit-display-
|
|
5
|
-
import { components as ae, useDialog as gt, useSnackbar as Tt, useProxiedModel as
|
|
4
|
+
import { P as H, a as bt, f as xt, t as _t, b as Le, u as ht } from "./format-unit-display-BfYIFIft.js";
|
|
5
|
+
import { components as ae, useDialog as gt, useSnackbar as Tt, useProxiedModel as Ge, useBreakpoints as Ft } from "@feedmepos/ui-library";
|
|
6
6
|
import { storeToRefs as Be } from "pinia";
|
|
7
|
-
import { _ as wt, b as kt, F as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import { u as Ot } from "./supplier-biIIXGyr.js";
|
|
7
|
+
import { _ as wt, b as kt, F as Ct, a as St } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-qU9EBVED.js";
|
|
8
|
+
import { c as Mt, u as $t, _ as It } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUiVV1lj.js";
|
|
9
|
+
import { u as Ot } from "./supplier-CCUVm2qD.js";
|
|
11
10
|
const Vt = { class: "flex flex-col" }, At = { class: "flex flex-col" }, Dt = { class: "flex-1" }, Rt = { class: "flex items-center" }, Pt = { class: "flex-1" }, Lt = { class: "flex-1" }, Bt = /* @__PURE__ */ Z({
|
|
12
11
|
__name: "FmMinMaxInput",
|
|
13
12
|
props: {
|
|
@@ -57,14 +56,14 @@ const Vt = { class: "flex flex-col" }, At = { class: "flex flex-col" }, Dt = { c
|
|
|
57
56
|
const m = R(() => {
|
|
58
57
|
const { min: p, max: r } = u ?? {};
|
|
59
58
|
return Math.max((p == null ? void 0 : p.precision) ?? 0, (r == null ? void 0 : r.precision) ?? 0, x.precision ?? 0);
|
|
60
|
-
}),
|
|
59
|
+
}), C = (p) => {
|
|
61
60
|
if (!p) return "";
|
|
62
61
|
const r = lt(p), b = m.value, a = ue(r, b);
|
|
63
62
|
return nt(
|
|
64
63
|
+G(a),
|
|
65
64
|
a.precision
|
|
66
65
|
);
|
|
67
|
-
}, i = E(
|
|
66
|
+
}, i = E(C(u.min)), l = E(C(u.max));
|
|
68
67
|
pe([i, l], ([p, r]) => {
|
|
69
68
|
const b = u ?? {}, a = o(p), f = o(r), w = m.value;
|
|
70
69
|
if (p !== "" && a === !0) {
|
|
@@ -171,8 +170,8 @@ function Ut(y, x) {
|
|
|
171
170
|
function qt(y) {
|
|
172
171
|
const x = at(y), u = G(y);
|
|
173
172
|
return function(m) {
|
|
174
|
-
const
|
|
175
|
-
return !
|
|
173
|
+
const C = !(m != null && m.min) || x(m.min) === !0, i = !(m != null && m.max) || x(m.max) === !0;
|
|
174
|
+
return !C && !i ? `Min & max must be a multiple of ${u}` : C ? i ? !0 : `Max must be a multiple of ${u}` : `Min must be a multiple of ${u}`;
|
|
176
175
|
};
|
|
177
176
|
}
|
|
178
177
|
var L = /* @__PURE__ */ ((y) => (y.Code = "Code", y.Name = "Name", y.DefaultAmount = "DefaultAmount", y.Limit = "Limit", y.MinimumAmount = "MinimumAmount", y.Step = "Step", y.Cost = "Cost", y.Delete = "Delete", y))(L || {});
|
|
@@ -271,7 +270,7 @@ function Nt(y) {
|
|
|
271
270
|
},
|
|
272
271
|
rules: [
|
|
273
272
|
kt(l.quantityStep),
|
|
274
|
-
|
|
273
|
+
Ct(
|
|
275
274
|
+G(
|
|
276
275
|
l.minimumQuantity ?? {
|
|
277
276
|
amount: 1,
|
|
@@ -280,7 +279,7 @@ function Nt(y) {
|
|
|
280
279
|
}
|
|
281
280
|
)
|
|
282
281
|
),
|
|
283
|
-
|
|
282
|
+
St(
|
|
284
283
|
l.maximumQuantity ? +G(l.maximumQuantity) : 1 / 0
|
|
285
284
|
),
|
|
286
285
|
function(I) {
|
|
@@ -383,7 +382,7 @@ function Nt(y) {
|
|
|
383
382
|
}
|
|
384
383
|
];
|
|
385
384
|
return {
|
|
386
|
-
columnDefs: R(() =>
|
|
385
|
+
columnDefs: R(() => je().enableTotalCost && y.transferType === H.PURCHASE ? m : m.filter((l) => l.id !== "Cost"))
|
|
387
386
|
};
|
|
388
387
|
}
|
|
389
388
|
const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-center" }, jt = { class: "flex-1 flex gap-1 items-center" }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Gt = { class: "flex gap-8 w-full" }, Wt = { class: "flex-1 flex flex-col gap-4" }, Jt = { class: "flex-1 flex flex-col gap-4" }, Zt = { class: "flex gap-8 w-full" }, Xt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex-1 flex flex-col gap-4" }, eo = { class: "flex gap-8 w-full" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = /* @__PURE__ */ Z({
|
|
@@ -395,7 +394,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
395
394
|
setup(y) {
|
|
396
395
|
const { t: x } = X();
|
|
397
396
|
return (u, o) => {
|
|
398
|
-
var
|
|
397
|
+
var C, i, l, d, k, h, A, F, v, g, I, B, p, r, b, a, f, w, s, n, S, $, M, _, P, U, N, j, T, z;
|
|
399
398
|
const m = V("FmLabel");
|
|
400
399
|
return D(), K("div", zt, [
|
|
401
400
|
t("div", Ht, [
|
|
@@ -405,7 +404,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
405
404
|
]),
|
|
406
405
|
t("div", null, [
|
|
407
406
|
c(e(Q), {
|
|
408
|
-
render: (l = (i = (
|
|
407
|
+
render: (l = (i = (C = u.cellByColId.Delete) == null ? void 0 : C.column) == null ? void 0 : i.columnDef) == null ? void 0 : l.cell,
|
|
409
408
|
props: (k = (d = u.cellByColId.Delete) == null ? void 0 : d.getContext) == null ? void 0 : k.call(d)
|
|
410
409
|
}, null, 8, ["render", "props"])
|
|
411
410
|
])
|
|
@@ -448,7 +447,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
448
447
|
label: e(x)(`inventory.transfer.form.items.table.${e(L).Step}`)
|
|
449
448
|
}, null, 8, ["label"]),
|
|
450
449
|
c(e(Q), {
|
|
451
|
-
render: (M = ($ = (
|
|
450
|
+
render: (M = ($ = (S = u.cellByColId[e(L).Step]) == null ? void 0 : S.column) == null ? void 0 : $.columnDef) == null ? void 0 : M.cell,
|
|
452
451
|
props: (P = (_ = u.cellByColId[e(L).Step]) == null ? void 0 : _.getContext) == null ? void 0 : P.call(_)
|
|
453
452
|
}, null, 8, ["render", "props"]),
|
|
454
453
|
o[3] || (o[3] = t("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -476,13 +475,13 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
476
475
|
disabled: { type: Boolean }
|
|
477
476
|
},
|
|
478
477
|
setup(y, { expose: x }) {
|
|
479
|
-
const u = y, o = Ne(), { t: m } = X(),
|
|
478
|
+
const u = y, o = Ne(), { t: m } = X(), C = Qe(), i = He(), l = Ot(), d = ze();
|
|
480
479
|
pe(
|
|
481
480
|
() => u.modelValue,
|
|
482
481
|
(s) => {
|
|
483
482
|
console.log("TransferTemplateForm.model", s);
|
|
484
483
|
}
|
|
485
|
-
),
|
|
484
|
+
), C.watchLocation(async () => {
|
|
486
485
|
location && (o.purchaseOrder.supplier || (o.purchaseOrder.supplier = l.suppliers.find((s) => s) ?? o.purchaseOrder.supplier));
|
|
487
486
|
});
|
|
488
487
|
const k = gt(), h = $t(
|
|
@@ -499,8 +498,8 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
499
498
|
return typeof ((n = (s = o.purchaseOrder) == null ? void 0 : s.supplier) == null ? void 0 : n.internal) == "string" ? H.TRANSFER : H.PURCHASE;
|
|
500
499
|
},
|
|
501
500
|
set(s) {
|
|
502
|
-
var
|
|
503
|
-
const n = typeof (($ = (
|
|
501
|
+
var S, $;
|
|
502
|
+
const n = typeof (($ = (S = o.purchaseOrder) == null ? void 0 : S.supplier) == null ? void 0 : $.internal) == "string" ? H.TRANSFER : H.PURCHASE;
|
|
504
503
|
s !== n && (o.purchaseOrder.supplier = s === H.PURCHASE ? h.locationOptionsTypePurchase.value[0] : h.locationOptionsTypeTransfer.value[0]);
|
|
505
504
|
}
|
|
506
505
|
}), F = R(() => h.transferLocationOptions.value), v = R({
|
|
@@ -525,9 +524,9 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
525
524
|
});
|
|
526
525
|
function p() {
|
|
527
526
|
var s, n;
|
|
528
|
-
return (s = o.locations) != null && s.find((
|
|
527
|
+
return (s = o.locations) != null && s.find((S) => {
|
|
529
528
|
var $, M;
|
|
530
|
-
return (($ =
|
|
529
|
+
return (($ = S.doc) == null ? void 0 : $._id) === ((M = o.purchaseOrder.supplier) == null ? void 0 : M._id);
|
|
531
530
|
}) ? `Location ${(n = o.purchaseOrder.supplier) == null ? void 0 : n.name} must be removed because template cannot be used to transfer to itself.` : !0;
|
|
532
531
|
}
|
|
533
532
|
const r = R({
|
|
@@ -575,14 +574,14 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
575
574
|
}
|
|
576
575
|
}), f = R(() => a.columnDefs.value);
|
|
577
576
|
function w() {
|
|
578
|
-
const s = i.skus.map((
|
|
579
|
-
label:
|
|
580
|
-
sublabel:
|
|
581
|
-
value:
|
|
582
|
-
})), n = s.filter((
|
|
577
|
+
const s = i.skus.map((S) => ({
|
|
578
|
+
label: S.name,
|
|
579
|
+
sublabel: S.code,
|
|
580
|
+
value: S
|
|
581
|
+
})), n = s.filter((S) => {
|
|
583
582
|
var $;
|
|
584
|
-
return ($ = o.purchaseOrder.items) == null ? void 0 : $.find((M) => M.sku._id ===
|
|
585
|
-
}).map((
|
|
583
|
+
return ($ = o.purchaseOrder.items) == null ? void 0 : $.find((M) => M.sku._id === S.value._id);
|
|
584
|
+
}).map((S) => S.value);
|
|
586
585
|
k.open({
|
|
587
586
|
title: m("inventory.transfer.form.items.selectItem"),
|
|
588
587
|
closeButton: !0,
|
|
@@ -601,8 +600,8 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
601
600
|
close: !0,
|
|
602
601
|
variant: "tertiary"
|
|
603
602
|
}
|
|
604
|
-
}).onPrimary((
|
|
605
|
-
const $ = o.purchaseOrder.items ?? [], M =
|
|
603
|
+
}).onPrimary((S) => {
|
|
604
|
+
const $ = o.purchaseOrder.items ?? [], M = S.map((_) => {
|
|
606
605
|
const P = $.find((T) => T.sku._id === _._id);
|
|
607
606
|
if (P)
|
|
608
607
|
return P;
|
|
@@ -629,7 +628,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
629
628
|
});
|
|
630
629
|
}
|
|
631
630
|
return (s, n) => {
|
|
632
|
-
const
|
|
631
|
+
const S = V("FmTextField"), $ = V("FmSelect"), M = V("FmTextarea"), _ = V("FmButton"), P = V("FmTable"), U = V("FmFormGroup"), N = V("FmForm");
|
|
633
632
|
return D(), W(N, {
|
|
634
633
|
ref_key: "formRef",
|
|
635
634
|
ref: b,
|
|
@@ -641,7 +640,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
641
640
|
return [
|
|
642
641
|
t("div", so, [
|
|
643
642
|
t("div", lo, [
|
|
644
|
-
c(
|
|
643
|
+
c(S, {
|
|
645
644
|
label: e(m)("inventory.transfer.form.name"),
|
|
646
645
|
"label-mark": "required",
|
|
647
646
|
modelValue: e(o).name,
|
|
@@ -685,7 +684,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
685
684
|
}),
|
|
686
685
|
_: 1
|
|
687
686
|
}, 8, ["label", "modelValue", "items"]),
|
|
688
|
-
c(
|
|
687
|
+
c(S, {
|
|
689
688
|
label: e(m)("inventory.transfer.form.reference"),
|
|
690
689
|
"label-mark": "optional",
|
|
691
690
|
modelValue: e(o).purchaseOrder.ref,
|
|
@@ -751,7 +750,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
751
750
|
"page-size": e(o).purchaseOrder.items.length
|
|
752
751
|
}, {
|
|
753
752
|
"list-row": q((T) => [
|
|
754
|
-
(D(), W(
|
|
753
|
+
(D(), W(Ke, {
|
|
755
754
|
row: T,
|
|
756
755
|
key: e(o).purchaseOrder.items.map((z) => z.sku._id).join(".")
|
|
757
756
|
}, {
|
|
@@ -787,7 +786,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
787
786
|
emits: ["update:show", "submitted"],
|
|
788
787
|
setup(y, { expose: x, emit: u }) {
|
|
789
788
|
var b;
|
|
790
|
-
const o = y, m = u,
|
|
789
|
+
const o = y, m = u, C = bt(), i = Tt(), { t: l } = X(), d = Ge(o, "show");
|
|
791
790
|
function k() {
|
|
792
791
|
return {
|
|
793
792
|
_id: "",
|
|
@@ -859,7 +858,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
859
858
|
({ totalCost: s, ...n }) => n
|
|
860
859
|
));
|
|
861
860
|
try {
|
|
862
|
-
await
|
|
861
|
+
await C.createTemplate(a), await new Promise((s) => setTimeout(s, 1e3)), i.open({
|
|
863
862
|
title: l("inventory.transfer.template.create.success"),
|
|
864
863
|
message: l("inventory.transfer.template.create.successMessage"),
|
|
865
864
|
type: "success"
|
|
@@ -883,7 +882,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
883
882
|
({ totalCost: s, ...n }) => n
|
|
884
883
|
));
|
|
885
884
|
try {
|
|
886
|
-
await
|
|
885
|
+
await C.updateTemplate(a), await new Promise((s) => setTimeout(s, 1e3)), i.open({
|
|
887
886
|
title: l("inventory.transfer.template.update.success"),
|
|
888
887
|
message: l("inventory.transfer.template.update.successMessage"),
|
|
889
888
|
type: "success"
|
|
@@ -956,10 +955,10 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
956
955
|
}, 8, ["modelValue"]);
|
|
957
956
|
};
|
|
958
957
|
}
|
|
959
|
-
}), bo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, xo = { class: "flex justify-between" }, _o = { class: "fm-typo-en-body-lg-600" }, ho = { class: "fm-status-badge fm-status-badge-info-secondary" }, go = { class: "flex flex-col gap-8" }, To = { class: "flex flex-col gap-4" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wo = { class: "flex gap-1" }, ko = { class: "fm-typo-en-body-lg-600" },
|
|
958
|
+
}), bo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, xo = { class: "flex justify-between" }, _o = { class: "fm-typo-en-body-lg-600" }, ho = { class: "fm-status-badge fm-status-badge-info-secondary" }, go = { class: "flex flex-col gap-8" }, To = { class: "flex flex-col gap-4" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wo = { class: "flex gap-1" }, ko = { class: "fm-typo-en-body-lg-600" }, Co = {
|
|
960
959
|
key: 0,
|
|
961
960
|
class: "flex flex-col gap-4"
|
|
962
|
-
},
|
|
961
|
+
}, So = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Mo = { class: "fm-typo-en-body-lg-600" }, $o = {
|
|
963
962
|
key: 1,
|
|
964
963
|
class: "flex flex-col gap-4"
|
|
965
964
|
}, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oo = { class: "fm-typo-en-body-lg-600" }, Vo = {
|
|
@@ -979,7 +978,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
979
978
|
},
|
|
980
979
|
emits: ["update:show", "action:edit"],
|
|
981
980
|
setup(y, { emit: x }) {
|
|
982
|
-
const u = y, o = x, m =
|
|
981
|
+
const u = y, o = x, m = je(), { t: C } = X(), i = R(() => {
|
|
983
982
|
var F;
|
|
984
983
|
return (F = u.template) == null ? void 0 : F.purchaseOrder;
|
|
985
984
|
}), l = [
|
|
@@ -990,12 +989,12 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
990
989
|
var F, v, g, I;
|
|
991
990
|
return ((v = (F = i.value) == null ? void 0 : F.supplier) == null ? void 0 : v.internal) === "restaurant" || ((I = (g = i.value) == null ? void 0 : g.supplier) == null ? void 0 : I.internal) === "warehouse" ? H.TRANSFER : H.PURCHASE;
|
|
992
991
|
}
|
|
993
|
-
), h = E(!0), A =
|
|
992
|
+
), h = E(!0), A = Ge(u, "show");
|
|
994
993
|
return (F, v) => {
|
|
995
994
|
var f;
|
|
996
995
|
const g = V("FmMenuDivider"), I = V("FmCard"), B = V("FmIcon"), p = V("FmTextField"), r = V("FmTable"), b = V("FmButton"), a = V("FmSideSheet");
|
|
997
996
|
return D(), W(a, {
|
|
998
|
-
header: e(
|
|
997
|
+
header: e(C)("inventory.transfer.template.details.view", { template: (f = F.template) == null ? void 0 : f.name }),
|
|
999
998
|
modelValue: e(A),
|
|
1000
999
|
"onUpdate:modelValue": v[2] || (v[2] = (w) => Ue(A) ? A.value = w : null),
|
|
1001
1000
|
"dismiss-away": h.value,
|
|
@@ -1012,11 +1011,11 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1012
1011
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
1013
1012
|
}, {
|
|
1014
1013
|
default: q(() => {
|
|
1015
|
-
var n,
|
|
1014
|
+
var n, S, $, M, _, P, U;
|
|
1016
1015
|
return [
|
|
1017
1016
|
t("div", xo, [
|
|
1018
|
-
t("div", _o, O(e(
|
|
1019
|
-
t("div", ho, O(e(
|
|
1017
|
+
t("div", _o, O(e(C)("inventory.transfer.template.details.templateSummary")), 1),
|
|
1018
|
+
t("div", ho, O(e(C)(
|
|
1020
1019
|
`inventory.transfer.receiveRequest.details.type.${k.value.toLocaleLowerCase("en-US")}`
|
|
1021
1020
|
)), 1)
|
|
1022
1021
|
]),
|
|
@@ -1024,20 +1023,20 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1024
1023
|
t("div", go, [
|
|
1025
1024
|
t("div", To, [
|
|
1026
1025
|
t("div", Fo, [
|
|
1027
|
-
t("div", wo, O(e(
|
|
1026
|
+
t("div", wo, O(e(C)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
1028
1027
|
]),
|
|
1029
1028
|
t("div", ko, O(e(ct)(((n = F.template) == null ? void 0 : n._id) ?? "")), 1)
|
|
1030
1029
|
]),
|
|
1031
|
-
($ = (
|
|
1032
|
-
t("div",
|
|
1030
|
+
($ = (S = i.value) == null ? void 0 : S.supplier) != null && $.name ? (D(), K("div", Co, [
|
|
1031
|
+
t("div", So, O(e(C)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
1033
1032
|
t("div", Mo, O((_ = (M = i.value) == null ? void 0 : M.supplier) == null ? void 0 : _.name), 1)
|
|
1034
1033
|
])) : Y("", !0),
|
|
1035
1034
|
(P = i.value) != null && P.ref ? (D(), K("div", $o, [
|
|
1036
|
-
t("div", Io, O(e(
|
|
1035
|
+
t("div", Io, O(e(C)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
1037
1036
|
t("div", Oo, O(i.value.ref), 1)
|
|
1038
1037
|
])) : Y("", !0),
|
|
1039
1038
|
(U = i.value) != null && U.remark ? (D(), K("div", Vo, [
|
|
1040
|
-
t("div", Ao, O(e(
|
|
1039
|
+
t("div", Ao, O(e(C)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
1041
1040
|
t("div", Do, O(i.value.remark), 1)
|
|
1042
1041
|
])) : Y("", !0)
|
|
1043
1042
|
])
|
|
@@ -1048,7 +1047,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1048
1047
|
]),
|
|
1049
1048
|
t("div", Ro, [
|
|
1050
1049
|
t("div", Po, [
|
|
1051
|
-
t("div", Lo, O(e(
|
|
1050
|
+
t("div", Lo, O(e(C)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
|
|
1052
1051
|
(D(!0), K(qe, null, Xe(((w = i.value) == null ? void 0 : w.items) ?? [], (n) => (D(), K("div", {
|
|
1053
1052
|
key: n.code,
|
|
1054
1053
|
class: "flex flex-col"
|
|
@@ -1102,7 +1101,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1102
1101
|
"side-sheet-footer": q(() => [
|
|
1103
1102
|
t("div", Ko, [
|
|
1104
1103
|
c(b, {
|
|
1105
|
-
label: e(
|
|
1104
|
+
label: e(C)("common.edit"),
|
|
1106
1105
|
onClick: v[1] || (v[1] = (w) => o("action:edit")),
|
|
1107
1106
|
variant: "tertiary"
|
|
1108
1107
|
}, null, 8, ["label"])
|
|
@@ -1112,10 +1111,10 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1112
1111
|
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
1113
1112
|
};
|
|
1114
1113
|
}
|
|
1115
|
-
}), Wo = { class: "flex-1 flex flex-col gap-8" }, Jo = { class: "flex flex-col" }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Yo = { class: "fm-typo-en-body-lg-400" }, es = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, ts = { class: "fm-typo-en-body-lg-400 line-clamp-2" },
|
|
1114
|
+
}), Wo = { class: "flex-1 flex flex-col gap-8" }, Jo = { class: "flex flex-col" }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Yo = { class: "fm-typo-en-body-lg-400" }, es = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, ts = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, ds = /* @__PURE__ */ Z({
|
|
1116
1115
|
__name: "TransferTemplateView",
|
|
1117
1116
|
setup(y) {
|
|
1118
|
-
const { t: x } = X(), { createTemplate: u, viewTemplate: o, importTemplates: m, exportTemplates:
|
|
1117
|
+
const { t: x } = X(), { createTemplate: u, viewTemplate: o, importTemplates: m, exportTemplates: C } = Le(), { templateDialogProps: i, templateDetailsProps: l } = Be(Le()), d = ht(), { loading: k, templates: h } = Be(d), A = E(!1), F = ft(), v = Qe(), { breakpoints: g } = Ft();
|
|
1119
1118
|
ce(d.fetchTemplates);
|
|
1120
1119
|
const I = R(
|
|
1121
1120
|
() => A.value || k.value || !v._currentLocation
|
|
@@ -1129,7 +1128,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1129
1128
|
case "import":
|
|
1130
1129
|
return m();
|
|
1131
1130
|
case "export":
|
|
1132
|
-
return
|
|
1131
|
+
return C();
|
|
1133
1132
|
}
|
|
1134
1133
|
}
|
|
1135
1134
|
function f(s) {
|
|
@@ -1159,7 +1158,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1159
1158
|
}
|
|
1160
1159
|
]);
|
|
1161
1160
|
return (s, n) => {
|
|
1162
|
-
const
|
|
1161
|
+
const S = V("FmTable");
|
|
1163
1162
|
return D(), K(qe, null, [
|
|
1164
1163
|
c(yt, {
|
|
1165
1164
|
title: e(x)("inventory.transfer.template.title2"),
|
|
@@ -1183,7 +1182,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1183
1182
|
search: p.value,
|
|
1184
1183
|
"onUpdate:search": n[0] || (n[0] = (M) => p.value = M)
|
|
1185
1184
|
}, null, 8, ["search"]),
|
|
1186
|
-
(D(), W(
|
|
1185
|
+
(D(), W(S, {
|
|
1187
1186
|
style: Ye(e(F).tableHeight),
|
|
1188
1187
|
"column-defs": e(d).columnDefs,
|
|
1189
1188
|
"row-data": B.value,
|
|
@@ -1194,12 +1193,12 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1194
1193
|
"page-size": b.value
|
|
1195
1194
|
}, {
|
|
1196
1195
|
"list-row": q((M) => [
|
|
1197
|
-
c(
|
|
1196
|
+
c(Ke, {
|
|
1198
1197
|
row: M,
|
|
1199
1198
|
onRowClick: (_) => e(o)(_)
|
|
1200
1199
|
}, {
|
|
1201
1200
|
default: q((_) => {
|
|
1202
|
-
var P, U, N, j, T, z, fe, ye, te, ve, be, xe, _e, oe, he, ge, Te, Fe, we, ke, se,
|
|
1201
|
+
var P, U, N, j, T, z, fe, ye, te, ve, be, xe, _e, oe, he, ge, Te, Fe, we, ke, se, Ce, Se, Me, $e, le, Ie;
|
|
1203
1202
|
return [
|
|
1204
1203
|
t("div", Wo, [
|
|
1205
1204
|
t("div", Jo, [
|
|
@@ -1226,13 +1225,13 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1226
1225
|
t("div", ts, [
|
|
1227
1226
|
c(e(Q), {
|
|
1228
1227
|
render: (ke = (we = (Fe = _.ref) == null ? void 0 : Fe.column) == null ? void 0 : we.columnDef) == null ? void 0 : ke.cell,
|
|
1229
|
-
props: (
|
|
1228
|
+
props: (Ce = (se = _.ref) == null ? void 0 : se.getContext) == null ? void 0 : Ce.call(se)
|
|
1230
1229
|
}, null, 8, ["render", "props"])
|
|
1231
1230
|
])
|
|
1232
1231
|
]),
|
|
1233
1232
|
t("div", null, [
|
|
1234
1233
|
c(e(Q), {
|
|
1235
|
-
render: ($e = (Me = (
|
|
1234
|
+
render: ($e = (Me = (Se = _.type) == null ? void 0 : Se.column) == null ? void 0 : Me.columnDef) == null ? void 0 : $e.cell,
|
|
1236
1235
|
props: (Ie = (le = _.type) == null ? void 0 : le.getContext) == null ? void 0 : Ie.call(le)
|
|
1237
1236
|
}, null, 8, ["render", "props"])
|
|
1238
1237
|
])
|
|
@@ -1260,5 +1259,5 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
|
|
|
1260
1259
|
}
|
|
1261
1260
|
});
|
|
1262
1261
|
export {
|
|
1263
|
-
|
|
1262
|
+
ds as default
|
|
1264
1263
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as H, computed as g, openBlock as v, createElementBlock as C, createElementVNode as l, Fragment as j, renderList as q, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as $, createBlock as T, withCtx as A, createVNode as y, unref as o, isRef as ee, normalizeClass as re, normalizeStyle as ie, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
|
|
2
|
-
import { a as G,
|
|
2
|
+
import { a as G, e as w, S as ce, h as pe, D as te, i as L, f as le, m as N, A as fe, j as J, L as ve, N as ye, p as ne, u as be, b as ge, z as xe, _ as _e, B as he, E as Ve, G as Ue } from "./app-BvW6mdJl.js";
|
|
3
3
|
import { useDialog as we, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Se, _ as ke } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { defineStore as Ee, storeToRefs as Fe } from "pinia";
|
|
6
6
|
import { useI18n as K } from "@feedmepos/mf-common";
|
|
7
|
-
import { F as $e } from "./decimal-
|
|
8
|
-
import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { F as $e } from "./decimal-hD6H0C0M.js";
|
|
8
|
+
import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dplylu1K.js";
|
|
9
9
|
const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|