@feedmepos/mf-inventory-portal 0.0.25-dev.50 → 0.0.25-dev.51
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-B7fIlPKw.js → App-Bf7Ef5j4.js} +2 -2
- package/dist/{ApprovalView-Dp20w8em.js → ApprovalView-CTKJY1vM.js} +12 -12
- package/dist/{BindingsDialog-BIHCuoDe.js → BindingsDialog-Cb7aRRNk.js} +4 -4
- package/dist/{BindingsPicker-DoM1Dh1y.js → BindingsPicker-DOI78hCt.js} +7 -7
- package/dist/{BindingsTable-ChJYIxrf.js → BindingsTable-CZE4g-lw.js} +1 -1
- package/dist/{ClosingDraftView-L4EHR0Sb.js → ClosingDraftView-ChjnuJSG.js} +47 -47
- package/dist/{ClosingTemplateView-CFVINyCr.js → ClosingTemplateView-gSQqeQ_q.js} +53 -53
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMFxe5xn.js} +37 -37
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-PmKyuRhO.js} +32 -32
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CnRG4x74.js} +1 -1
- package/dist/{IngredientGroupView-Vz6XV_-q.js → IngredientGroupView-CaF4rmHy.js} +1 -1
- package/dist/{IngredientsView-D1lmg_97.js → IngredientsView-CX_MSjT3.js} +4 -4
- package/dist/{IntegrationView-CfDmLYwt.js → IntegrationView-BRkcILmI.js} +62 -62
- package/dist/{InventoryBindingForm-C68ZfWme.js → InventoryBindingForm-BK7OBXJt.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D81eO5Mu.js} +15 -15
- package/dist/{InventoryBindingSummary-DT9cg2b4.js → InventoryBindingSummary-B3m-PoE-.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DsTKgxFv.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-8Sa_WUWa.js} +3 -3
- package/dist/{PublishView-DMzULnCX.js → PublishView-DZR7-XFd.js} +18 -18
- package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-BT5Khjs6.js} +1 -1
- package/dist/{ReceiveRequestView-DsX41zj-.js → ReceiveRequestView-3nhyFqXE.js} +50 -50
- package/dist/{RecipeView-DlKk9-tm.js → RecipeView-R-lqVFmh.js} +3 -3
- package/dist/{StockView-CNmvVK0V.js → StockView-Did7vk97.js} +571 -567
- package/dist/{SupplierView-BcoOgM67.js → SupplierView-BGHR6LD2.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js → TransferDetails.vue_vue_type_script_setup_true_lang-vjDgXu5D.js} +120 -120
- package/dist/{TransferTemplateView-BI96LQfP.js → TransferTemplateView-Dh1iZbPZ.js} +116 -116
- package/dist/{UnitView-BF2eBWtF.js → UnitView-DE9WIvA-.js} +3 -3
- package/dist/{WarehouseView-joOR4EsJ.js → WarehouseView-CgurMkHh.js} +19 -19
- package/dist/{app-DavuMSpS.js → app-BoT0hU4y.js} +1947 -1952
- package/dist/app.js +1 -1
- package/dist/{decimal-C_LJTg2_.js → decimal-CpTYRDjJ.js} +1 -1
- package/dist/{feature-D3M-bziy.js → feature-CW1D96VL.js} +1 -1
- package/dist/{format-unit-display-BebmN2s-.js → format-unit-display-D6lsq-iX.js} +30 -30
- package/dist/helper/number.d.ts +1 -1
- package/dist/{index-BDEeA1dY.js → index-TqOHI1Dk.js} +1 -1
- package/dist/{index-DzshvJTA.js → index-tTGOQaym.js} +1 -1
- package/dist/{stock-CHVVTrSI.js → stock-Cnh2comB.js} +1 -1
- package/dist/{supplier-Ddl4sUpm.js → supplier-BY8xacQQ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Z6bbIKfM.js → use-ingredient-select-dialog-BwbzsMlI.js} +1 -1
- package/dist/{use-inventory-binding-dialog-Dj45RBWc.js → use-inventory-binding-dialog-3srettA-.js} +1 -1
- package/dist/{vue-i18n-Cak3W4nS.js → vue-i18n-C9tRTjjd.js} +206 -206
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as R, h as A, defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as R, h as A, defineComponent as J, resolveComponent as E, openBlock as w, createElementBlock as I, createElementVNode as b, normalizeClass as q, createTextVNode as Fe, toDisplayString as C, unref as i, createCommentVNode as X, createVNode as T, withCtx as P, Fragment as O, renderList as Q, computed as U, watch as Re, createSlots as ie, createBlock as N, isRef as Pe, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
+
import { X as qe, u as ue, ad as Xe, D as Se, h as j, f as Qe, e as Ae, ae as ce, r as Ze, af as Ee, s as Ue, a as de, b as et, v as tt, w as Ve, x as nt, y as ot, d as K, E as W, G as st, ag as lt, l as at, ah as rt, C as Ne, A as it, ai as ct, aj as re, z as mt, _ as ut, B as dt } from "./app-BoT0hU4y.js";
|
|
3
3
|
import { useCoreStore as pe, useI18n as Y } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as pt, useSnackbar as se, useDialog as Be, FmButtonVariant as De, components as G, useProxiedModel as ft, useBreakpoints as gt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Le, storeToRefs as ze } from "pinia";
|
|
6
|
-
import { u as vt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as vt } from "./use-ingredient-select-dialog-BwbzsMlI.js";
|
|
7
7
|
const le = qe((l, o) => {
|
|
8
8
|
function n() {
|
|
9
9
|
var t;
|
|
@@ -81,11 +81,11 @@ const le = qe((l, o) => {
|
|
|
81
81
|
}
|
|
82
82
|
function u(v, _) {
|
|
83
83
|
switch (_ = Ae(_), v) {
|
|
84
|
-
case
|
|
84
|
+
case j.Details:
|
|
85
85
|
return n.viewTemplate(_);
|
|
86
|
-
case
|
|
86
|
+
case j.Edit:
|
|
87
87
|
return n.updateTemplate(_);
|
|
88
|
-
case
|
|
88
|
+
case j.Delete:
|
|
89
89
|
return n.deleteTemplate(_, t, f);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -96,7 +96,7 @@ const le = qe((l, o) => {
|
|
|
96
96
|
accessorKey: "_id",
|
|
97
97
|
header: () => o("inventory.closing.table.createdAt"),
|
|
98
98
|
cell(v) {
|
|
99
|
-
return
|
|
99
|
+
return Xe(`${v.getValue()}`);
|
|
100
100
|
},
|
|
101
101
|
enableSorting: !0
|
|
102
102
|
},
|
|
@@ -168,10 +168,10 @@ const le = qe((l, o) => {
|
|
|
168
168
|
id: "action",
|
|
169
169
|
cell(v) {
|
|
170
170
|
const _ = v.row.original, c = [
|
|
171
|
-
Se[
|
|
172
|
-
Se[
|
|
171
|
+
Se[j.Edit],
|
|
172
|
+
Se[j.Delete]
|
|
173
173
|
];
|
|
174
|
-
return
|
|
174
|
+
return Qe(c, (r) => u(r, _));
|
|
175
175
|
},
|
|
176
176
|
enableSorting: !1,
|
|
177
177
|
size: 40,
|
|
@@ -205,7 +205,7 @@ function He(l) {
|
|
|
205
205
|
}))
|
|
206
206
|
];
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function je() {
|
|
209
209
|
return [
|
|
210
210
|
{
|
|
211
211
|
id: "code",
|
|
@@ -229,7 +229,7 @@ function yt(l) {
|
|
|
229
229
|
var h;
|
|
230
230
|
const n = pe().currentBusiness.value, e = (h = l.map((f) => {
|
|
231
231
|
var c;
|
|
232
|
-
const a = f.items.flatMap(He), u =
|
|
232
|
+
const a = f.items.flatMap(He), u = je(), p = [
|
|
233
233
|
["Template ID", f._id],
|
|
234
234
|
["Template name", f.name],
|
|
235
235
|
["Business name", n == null ? void 0 : n.name],
|
|
@@ -272,7 +272,7 @@ function ht() {
|
|
|
272
272
|
_id: "",
|
|
273
273
|
name: "Sugar"
|
|
274
274
|
}
|
|
275
|
-
})[0], e = l.currentBusiness.value, t =
|
|
275
|
+
})[0], e = l.currentBusiness.value, t = je(), g = [
|
|
276
276
|
["Template ID (leave empty to create new)", ""],
|
|
277
277
|
["Template Name", "New template"],
|
|
278
278
|
["Business name", e == null ? void 0 : e.name],
|
|
@@ -524,7 +524,7 @@ function Tt(l) {
|
|
|
524
524
|
const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-col" }, It = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, St = {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
527
|
-
}, Dt = { key: 0 }, Me = /* @__PURE__ */
|
|
527
|
+
}, Dt = { key: 0 }, Me = /* @__PURE__ */ J({
|
|
528
528
|
__name: "ClosingTemplateImportItem",
|
|
529
529
|
props: {
|
|
530
530
|
type: {},
|
|
@@ -548,13 +548,13 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
548
548
|
})
|
|
549
549
|
}, [
|
|
550
550
|
Fe(C(n.name) + " ", 1),
|
|
551
|
-
n.type === "create" ? (w(), I("span", St, "(" + C(i(o)("inventory.closing.template.import.new")) + ")", 1)) :
|
|
551
|
+
n.type === "create" ? (w(), I("span", St, "(" + C(i(o)("inventory.closing.template.import.new")) + ")", 1)) : X("", !0)
|
|
552
552
|
], 2),
|
|
553
553
|
n.errors.length ? (w(), I("div", Dt, [
|
|
554
554
|
T(t, { "z-index": 50 }, {
|
|
555
555
|
content: P(() => [
|
|
556
556
|
b("ol", null, [
|
|
557
|
-
(w(!0), I(
|
|
557
|
+
(w(!0), I(O, null, Q(n.errors, (a, u) => (w(), I("li", { key: u }, C(a), 1))), 128))
|
|
558
558
|
])
|
|
559
559
|
]),
|
|
560
560
|
default: P(() => [
|
|
@@ -566,7 +566,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
566
566
|
]),
|
|
567
567
|
_: 1
|
|
568
568
|
})
|
|
569
|
-
])) :
|
|
569
|
+
])) : X("", !0)
|
|
570
570
|
]),
|
|
571
571
|
b("div", {
|
|
572
572
|
class: q([
|
|
@@ -593,7 +593,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
593
593
|
}, Nt = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, Bt = {
|
|
594
594
|
key: 0,
|
|
595
595
|
class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
|
|
596
|
-
}, Lt = { class: "fm-typo-en-body-lg-600" }, zt = /* @__PURE__ */
|
|
596
|
+
}, Lt = { class: "fm-typo-en-body-lg-600" }, zt = /* @__PURE__ */ J({
|
|
597
597
|
__name: "ClosingTemplateImport",
|
|
598
598
|
setup(l) {
|
|
599
599
|
const o = R(null), n = pt(), s = se(), e = R(!1), t = R(!1), g = R(new Array()), h = R([]), f = R([]), a = U(
|
|
@@ -655,7 +655,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
655
655
|
})
|
|
656
656
|
]),
|
|
657
657
|
b("div", Pt, C(i(p)("inventory.formField.loading")), 1)
|
|
658
|
-
])) : (w(), I(
|
|
658
|
+
])) : (w(), I(O, { key: 1 }, [
|
|
659
659
|
T(nt, {
|
|
660
660
|
class: q({
|
|
661
661
|
"w-full": !0,
|
|
@@ -701,7 +701,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
701
701
|
}, [
|
|
702
702
|
b("div", Et, C(o.value.name), 1)
|
|
703
703
|
], 2),
|
|
704
|
-
e.value ?
|
|
704
|
+
e.value ? X("", !0) : (w(), I("div", Ut, [
|
|
705
705
|
T($, {
|
|
706
706
|
label: i(p)("inventory.ingredient.import.replaceFile"),
|
|
707
707
|
variant: a.value ? "destructive" : "secondary",
|
|
@@ -711,7 +711,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
711
711
|
]))
|
|
712
712
|
], 2),
|
|
713
713
|
g.value.length ? (w(), I("div", Vt, [
|
|
714
|
-
(w(!0), I(
|
|
714
|
+
(w(!0), I(O, null, Q(g.value, (D, x) => (w(), I("div", {
|
|
715
715
|
key: x,
|
|
716
716
|
class: "flex gap-8 items-center"
|
|
717
717
|
}, [
|
|
@@ -722,7 +722,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
722
722
|
}),
|
|
723
723
|
b("div", Nt, C(D), 1)
|
|
724
724
|
]))), 128))
|
|
725
|
-
])) :
|
|
725
|
+
])) : X("", !0)
|
|
726
726
|
])
|
|
727
727
|
]),
|
|
728
728
|
key: "0"
|
|
@@ -730,7 +730,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
730
730
|
]), 1032, ["class", "label", "button-label"]),
|
|
731
731
|
u.value ? (w(), I("div", Bt, [
|
|
732
732
|
b("div", Lt, C(i(p)("inventory.ingredient.import.summary")), 1),
|
|
733
|
-
(w(!0), I(
|
|
733
|
+
(w(!0), I(O, null, Q(h.value, (m, D) => (w(), N(Me, {
|
|
734
734
|
key: D,
|
|
735
735
|
name: m.template.name,
|
|
736
736
|
locations: m.template.locations,
|
|
@@ -738,7 +738,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
738
738
|
errors: m.errors,
|
|
739
739
|
type: "create"
|
|
740
740
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128)),
|
|
741
|
-
(w(!0), I(
|
|
741
|
+
(w(!0), I(O, null, Q(f.value, (m) => (w(), N(Me, {
|
|
742
742
|
key: m.template._id,
|
|
743
743
|
name: m.template.name,
|
|
744
744
|
locations: m.template.locations,
|
|
@@ -746,7 +746,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
746
746
|
errors: m.errors,
|
|
747
747
|
type: "update"
|
|
748
748
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128))
|
|
749
|
-
])) :
|
|
749
|
+
])) : X("", !0)
|
|
750
750
|
], 64))
|
|
751
751
|
]);
|
|
752
752
|
};
|
|
@@ -1136,7 +1136,7 @@ function Ht(l) {
|
|
|
1136
1136
|
})
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
const
|
|
1139
|
+
const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt = { class: "flex-1 flex flex-col" }, Gt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Kt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "flex flex-col gap-4" }, Wt = /* @__PURE__ */ J({
|
|
1140
1140
|
__name: "ClosingTemplateItem",
|
|
1141
1141
|
props: {
|
|
1142
1142
|
cellByColId: {},
|
|
@@ -1148,27 +1148,27 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Yt =
|
|
|
1148
1148
|
);
|
|
1149
1149
|
return (e, t) => {
|
|
1150
1150
|
var g, h, f, a, u;
|
|
1151
|
-
return w(), I("div",
|
|
1152
|
-
b("div",
|
|
1151
|
+
return w(), I("div", jt, [
|
|
1152
|
+
b("div", Ot, [
|
|
1153
1153
|
b("div", Yt, [
|
|
1154
1154
|
b("div", Gt, C(n.value.original.sku.name), 1),
|
|
1155
1155
|
b("div", Kt, C(n.value.original.sku.code), 1)
|
|
1156
1156
|
]),
|
|
1157
1157
|
b("div", null, [
|
|
1158
|
-
T(i(
|
|
1158
|
+
T(i(W), {
|
|
1159
1159
|
render: (f = (h = (g = e.cellByColId[i(ee).Delete]) == null ? void 0 : g.column) == null ? void 0 : h.columnDef) == null ? void 0 : f.cell,
|
|
1160
1160
|
props: (u = (a = e.cellByColId[i(ee).Delete]) == null ? void 0 : a.getContext) == null ? void 0 : u.call(a)
|
|
1161
1161
|
}, null, 8, ["render", "props"])
|
|
1162
1162
|
])
|
|
1163
1163
|
]),
|
|
1164
|
-
b("div",
|
|
1164
|
+
b("div", Jt, [
|
|
1165
1165
|
t[0] || (t[0] = b("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, null, -1)),
|
|
1166
|
-
(w(!0), I(
|
|
1166
|
+
(w(!0), I(O, null, Q(s.value, (p) => {
|
|
1167
1167
|
var v, _, c;
|
|
1168
1168
|
return w(), I("div", {
|
|
1169
1169
|
key: p.id
|
|
1170
1170
|
}, [
|
|
1171
|
-
T(i(
|
|
1171
|
+
T(i(W), {
|
|
1172
1172
|
render: (_ = (v = p.column) == null ? void 0 : v.columnDef) == null ? void 0 : _.cell,
|
|
1173
1173
|
props: (c = p.getContext) == null ? void 0 : c.call(p)
|
|
1174
1174
|
}, null, 8, ["render", "props"])
|
|
@@ -1178,13 +1178,13 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Yt =
|
|
|
1178
1178
|
]);
|
|
1179
1179
|
};
|
|
1180
1180
|
}
|
|
1181
|
-
}), qt = { class: "flex flex-col gap-16" },
|
|
1181
|
+
}), qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex flex-col gap-24" }, Qt = { class: "flex flex-col gap-16" }, Zt = { class: "flex items-center" }, en = { class: "flex-1 fm-typo-en-title-sm-600" }, tn = { class: "flex flex-col gap-4" }, nn = {
|
|
1182
1182
|
key: 0,
|
|
1183
1183
|
class: "text-fm-color-typo-error fm-typo-en-body-sm-400"
|
|
1184
1184
|
}, on = {
|
|
1185
1185
|
key: 1,
|
|
1186
1186
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
1187
|
-
}, sn = { class: "flex flex-wrap gap-8 fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, ln = { class: "flex flex-col gap-16" }, an = { class: "flex items-center" }, rn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, cn = /* @__PURE__ */
|
|
1187
|
+
}, sn = { class: "flex flex-wrap gap-8 fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, ln = { class: "flex flex-col gap-16" }, an = { class: "flex items-center" }, rn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, cn = /* @__PURE__ */ J({
|
|
1188
1188
|
__name: "ClosingTemplateForm",
|
|
1189
1189
|
props: {
|
|
1190
1190
|
modelValue: {},
|
|
@@ -1272,7 +1272,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Yt =
|
|
|
1272
1272
|
}, {
|
|
1273
1273
|
default: P(() => [
|
|
1274
1274
|
b("div", qt, [
|
|
1275
|
-
b("div",
|
|
1275
|
+
b("div", Xt, [
|
|
1276
1276
|
T(B, {
|
|
1277
1277
|
label: i(e)("inventory.closing.form.name"),
|
|
1278
1278
|
"label-mark": "required",
|
|
@@ -1288,7 +1288,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Yt =
|
|
|
1288
1288
|
}, null, 8, ["label", "modelValue"])
|
|
1289
1289
|
])
|
|
1290
1290
|
]),
|
|
1291
|
-
b("div",
|
|
1291
|
+
b("div", Qt, [
|
|
1292
1292
|
b("div", Zt, [
|
|
1293
1293
|
b("div", en, C(i(e)("inventory.closing.form.locations")), 1),
|
|
1294
1294
|
T(M, {
|
|
@@ -1320,7 +1320,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Yt =
|
|
|
1320
1320
|
b("div", tn, [
|
|
1321
1321
|
i(c) ? (w(), I("div", nn, C(i(c)), 1)) : (w(), I("div", on, " This will match all locations under these values. Tag is configured in the restaurant/warehouse settings. ")),
|
|
1322
1322
|
b("div", sn, [
|
|
1323
|
-
(w(!0), I(
|
|
1323
|
+
(w(!0), I(O, null, Q(d.modelValue.locationTags, (F, H) => (w(), N(V, {
|
|
1324
1324
|
key: H,
|
|
1325
1325
|
label: F,
|
|
1326
1326
|
removable: "",
|
|
@@ -1345,7 +1345,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Yt =
|
|
|
1345
1345
|
]),
|
|
1346
1346
|
key: "0"
|
|
1347
1347
|
} : void 0
|
|
1348
|
-
]), 1032, ["modelValue", "onClick:menuItem", "options"])) :
|
|
1348
|
+
]), 1032, ["modelValue", "onClick:menuItem", "options"])) : X("", !0)
|
|
1349
1349
|
]),
|
|
1350
1350
|
b("div", ln, [
|
|
1351
1351
|
b("div", an, [
|
|
@@ -1391,7 +1391,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Yt =
|
|
|
1391
1391
|
key: i(s).items.map((H) => H.sku._id).join(".")
|
|
1392
1392
|
}, {
|
|
1393
1393
|
default: P((H) => [
|
|
1394
|
-
T(
|
|
1394
|
+
T(Wt, {
|
|
1395
1395
|
row: F,
|
|
1396
1396
|
"cell-by-col-id": H
|
|
1397
1397
|
}, null, 8, ["row", "cell-by-col-id"])
|
|
@@ -1411,7 +1411,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Yt =
|
|
|
1411
1411
|
}, 8, ["disabled"]);
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
1414
|
-
}), mn = { class: "flex items-center" }, un = { class: "fm-typo-en-title-md-600" }, dn = { class: "flex gap-4" }, pn = /* @__PURE__ */
|
|
1414
|
+
}), mn = { class: "flex items-center" }, un = { class: "fm-typo-en-title-md-600" }, dn = { class: "flex gap-4" }, pn = /* @__PURE__ */ J({
|
|
1415
1415
|
__name: "ClosingTemplateDialog",
|
|
1416
1416
|
props: {
|
|
1417
1417
|
mode: {},
|
|
@@ -1577,7 +1577,7 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1577
1577
|
}, wn = {
|
|
1578
1578
|
key: 3,
|
|
1579
1579
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex flex-col gap-12"
|
|
1580
|
-
}, kn = { class: "fm-typo-en-body-md-600" }, Tn = { class: "fm-typo-en-body-md-600" }, $n = { key: 4 }, Cn = { class: "fm-typo-en-body-md-600" }, In = { class: "fm-typo-en-body-md-600" }, Sn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Dn = /* @__PURE__ */
|
|
1580
|
+
}, kn = { class: "fm-typo-en-body-md-600" }, Tn = { class: "fm-typo-en-body-md-600" }, $n = { key: 4 }, Cn = { class: "fm-typo-en-body-md-600" }, In = { class: "fm-typo-en-body-md-600" }, Sn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Dn = /* @__PURE__ */ J({
|
|
1581
1581
|
__name: "ClosingTemplatePublish",
|
|
1582
1582
|
emits: ["close"],
|
|
1583
1583
|
setup(l, { emit: o }) {
|
|
@@ -1669,7 +1669,7 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1669
1669
|
]);
|
|
1670
1670
|
};
|
|
1671
1671
|
}
|
|
1672
|
-
}), Mn = { class: "flex-1 flex flex-col gap-8" }, Fn = { class: "flex flex-col" }, Rn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, An = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, En = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Hn = /* @__PURE__ */
|
|
1672
|
+
}), Mn = { class: "flex-1 flex flex-col gap-8" }, Fn = { class: "flex flex-col" }, Rn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, An = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, En = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Hn = /* @__PURE__ */ J({
|
|
1673
1673
|
__name: "ClosingTemplateView",
|
|
1674
1674
|
setup(l) {
|
|
1675
1675
|
const { t: o } = Y(), { createTemplate: n, updateTemplate: s, exportTemplates: e, importTemplates: t } = me(), { templateDialogProps: g, templateDetailsProps: h } = ze(me()), f = ue(), a = Be(), u = ae(), p = mt(), { breakpoints: v } = gt();
|
|
@@ -1677,7 +1677,7 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1677
1677
|
const _ = U(() => u.loading), c = R(""), r = U(() => v.value.xs || v.value.sm), y = U(() => r.value ? 10 : 20);
|
|
1678
1678
|
function $(d) {
|
|
1679
1679
|
switch (d) {
|
|
1680
|
-
case
|
|
1680
|
+
case j.Add:
|
|
1681
1681
|
return n();
|
|
1682
1682
|
case "publish":
|
|
1683
1683
|
return m();
|
|
@@ -1706,7 +1706,7 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1706
1706
|
const x = U(() => r.value ? [
|
|
1707
1707
|
{
|
|
1708
1708
|
label: o("inventory.closing.template.create.title"),
|
|
1709
|
-
value:
|
|
1709
|
+
value: j.Add,
|
|
1710
1710
|
isPrimary: !0,
|
|
1711
1711
|
prependIcon: "add"
|
|
1712
1712
|
},
|
|
@@ -1733,7 +1733,7 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1733
1733
|
] : [
|
|
1734
1734
|
{
|
|
1735
1735
|
label: o("inventory.closing.template.create.title"),
|
|
1736
|
-
value:
|
|
1736
|
+
value: j.Add,
|
|
1737
1737
|
isPrimary: !0,
|
|
1738
1738
|
prependIcon: "add"
|
|
1739
1739
|
},
|
|
@@ -1760,7 +1760,7 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1760
1760
|
]);
|
|
1761
1761
|
return (d, k) => {
|
|
1762
1762
|
const B = E("FmTable");
|
|
1763
|
-
return w(), I(
|
|
1763
|
+
return w(), I(O, null, [
|
|
1764
1764
|
T(ut, {
|
|
1765
1765
|
title: i(o)("inventory.closing.template.title"),
|
|
1766
1766
|
actions: x.value,
|
|
@@ -1801,13 +1801,13 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1801
1801
|
b("div", Mn, [
|
|
1802
1802
|
b("div", Fn, [
|
|
1803
1803
|
b("div", Rn, [
|
|
1804
|
-
T(i(
|
|
1804
|
+
T(i(W), {
|
|
1805
1805
|
render: (Z = (L = (V = S._id) == null ? void 0 : V.column) == null ? void 0 : L.columnDef) == null ? void 0 : Z.cell,
|
|
1806
1806
|
props: (F = (z = S._id) == null ? void 0 : z.getContext) == null ? void 0 : F.call(z)
|
|
1807
1807
|
}, null, 8, ["render", "props"])
|
|
1808
1808
|
]),
|
|
1809
1809
|
b("div", Pn, [
|
|
1810
|
-
T(i(
|
|
1810
|
+
T(i(W), {
|
|
1811
1811
|
render: (ve = (ge = (H = S.name) == null ? void 0 : H.column) == null ? void 0 : ge.columnDef) == null ? void 0 : ve.cell,
|
|
1812
1812
|
props: (ye = (te = S.name) == null ? void 0 : te.getContext) == null ? void 0 : ye.call(te)
|
|
1813
1813
|
}, null, 8, ["render", "props"])
|
|
@@ -1816,18 +1816,18 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1816
1816
|
count: ((be = M.original.locations) == null ? void 0 : be.length) ?? 0
|
|
1817
1817
|
}) : i(o)("inventory.closing.table.enabledForAll")), 1),
|
|
1818
1818
|
b("div", An, C([
|
|
1819
|
-
...M.original.items.slice(0, 3).map((
|
|
1819
|
+
...M.original.items.slice(0, 3).map((Oe) => Oe.sku.name),
|
|
1820
1820
|
...M.original.items.length >= 3 ? [`and ${M.original.items.length - 3} more items`] : []
|
|
1821
1821
|
].join(", ")), 1),
|
|
1822
1822
|
b("div", En, [
|
|
1823
|
-
T(i(
|
|
1823
|
+
T(i(W), {
|
|
1824
1824
|
render: (we = (xe = (_e = S.ref) == null ? void 0 : _e.column) == null ? void 0 : xe.columnDef) == null ? void 0 : we.cell,
|
|
1825
1825
|
props: (ke = (ne = S.ref) == null ? void 0 : ne.getContext) == null ? void 0 : ke.call(ne)
|
|
1826
1826
|
}, null, 8, ["render", "props"])
|
|
1827
1827
|
])
|
|
1828
1828
|
]),
|
|
1829
1829
|
b("div", null, [
|
|
1830
|
-
T(i(
|
|
1830
|
+
T(i(W), {
|
|
1831
1831
|
render: (Ce = ($e = (Te = S.status) == null ? void 0 : Te.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Ce.cell,
|
|
1832
1832
|
props: (Ie = (oe = S.status) == null ? void 0 : oe.getContext) == null ? void 0 : Ie.call(oe)
|
|
1833
1833
|
}, null, 8, ["render", "props"])
|
|
@@ -1845,8 +1845,8 @@ const vn = /* @__PURE__ */ ct(fn, [["render", gn]]), yn = { class: "flex flex-co
|
|
|
1845
1845
|
_: 1
|
|
1846
1846
|
}, 8, ["title", "actions"]),
|
|
1847
1847
|
(w(), N(Ge, { to: "body" }, [
|
|
1848
|
-
T(vn, Ke(
|
|
1849
|
-
T(pn,
|
|
1848
|
+
T(vn, Ke(Je(i(h))), null, 16),
|
|
1849
|
+
T(pn, We(i(g), {
|
|
1850
1850
|
onSubmitted: k[2] || (k[2] = (M) => i(u).fetchTemplates())
|
|
1851
1851
|
}), null, 16)
|
|
1852
1852
|
]))
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { i as T, t as R,
|
|
2
|
-
import { u as D } from "./supplier-
|
|
3
|
-
import { P as F } from "./format-unit-display-
|
|
4
|
-
import { computed as f, defineComponent as
|
|
1
|
+
import { i as T, t as R, as as w, u as B, ax as E, aI as H, aJ as z, aK as U } from "./app-BoT0hU4y.js";
|
|
2
|
+
import { u as D } from "./supplier-BY8xacQQ.js";
|
|
3
|
+
import { P as F } from "./format-unit-display-D6lsq-iX.js";
|
|
4
|
+
import { computed as f, defineComponent as x, mergeModels as j, useModel as q, ref as W, resolveComponent as V, openBlock as S, createElementBlock as I, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as O, Fragment as Q, renderList as X, unref as M } from "vue";
|
|
5
5
|
function Y(t, i, a) {
|
|
6
|
-
var
|
|
7
|
-
if (!!i.measurement === !!a && ((
|
|
6
|
+
var s;
|
|
7
|
+
if (!!i.measurement === !!a && ((s = i.measurement) == null ? void 0 : s.id) === a)
|
|
8
8
|
return i;
|
|
9
9
|
if (!a)
|
|
10
10
|
return {
|
|
11
11
|
costPerUnit: i.costPerUnit
|
|
12
12
|
};
|
|
13
|
-
const
|
|
14
|
-
return
|
|
13
|
+
const o = t.measurements.find((p) => p.id === a);
|
|
14
|
+
return o ? {
|
|
15
15
|
costPerUnit: i.costPerUnit,
|
|
16
|
-
measurement:
|
|
16
|
+
measurement: o
|
|
17
17
|
} : {
|
|
18
18
|
costPerUnit: i.costPerUnit
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function se(t, i, a, l) {
|
|
22
22
|
var P, _, n;
|
|
23
23
|
if (l != null && l.manualTotalCost)
|
|
24
24
|
return l == null ? void 0 : l.manualTotalCost;
|
|
25
25
|
const u = (n = (_ = (P = l == null ? void 0 : l.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
|
|
26
26
|
(e) => e.skuId === t._id
|
|
27
|
-
)) == null ? void 0 : n.defaultCost,
|
|
27
|
+
)) == null ? void 0 : n.defaultCost, o = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, s = u ?? o, p = s == null ? void 0 : s.costPerUnit, y = p ? s != null && s.measurement ? +T(p) / +T(s == null ? void 0 : s.measurement.conversion) : +T(p) : void 0, v = y ? a ? y * +T(a.conversion) : y : void 0, h = v ? +T(i) * v : void 0;
|
|
28
28
|
return h ? {
|
|
29
29
|
...R(h ?? 0, 2),
|
|
30
|
-
currency:
|
|
30
|
+
currency: w()
|
|
31
31
|
} : {
|
|
32
32
|
amount: 0,
|
|
33
33
|
precision: 0,
|
|
34
|
-
currency:
|
|
34
|
+
currency: w()
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
function k(t) {
|
|
@@ -55,20 +55,20 @@ function L(t) {
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
const u = D(),
|
|
60
|
-
|
|
58
|
+
function oe(t, i, a = !1, l = !1) {
|
|
59
|
+
const u = D(), o = B();
|
|
60
|
+
o.watchLocation(async () => {
|
|
61
61
|
var b;
|
|
62
62
|
await u.readSuppliers();
|
|
63
63
|
const n = t();
|
|
64
64
|
if ((b = n.supplier) != null && b._id) return;
|
|
65
|
-
const e = l ? u.suppliers[0] : u.businessSuppliers[0], r = (a ?
|
|
65
|
+
const e = l ? u.suppliers[0] : u.businessSuppliers[0], r = (a ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations)[0];
|
|
66
66
|
i({
|
|
67
67
|
...n,
|
|
68
68
|
supplier: e ? k(e) : r ? L(r) : n.supplier
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const s = f(
|
|
72
72
|
() => {
|
|
73
73
|
var n, e;
|
|
74
74
|
return typeof ((e = (n = t()) == null ? void 0 : n.supplier) == null ? void 0 : e.internal) == "string" ? F.TRANSFER : F.PURCHASE;
|
|
@@ -80,7 +80,7 @@ function se(t, i, a = !1, l = !1) {
|
|
|
80
80
|
},
|
|
81
81
|
set(n) {
|
|
82
82
|
const e = t() ?? {};
|
|
83
|
-
if (
|
|
83
|
+
if (s.value === F.PURCHASE) {
|
|
84
84
|
const C = (l ? u.suppliers : u.businessSuppliers).find((A) => A._id === n);
|
|
85
85
|
i({
|
|
86
86
|
...e,
|
|
@@ -88,7 +88,7 @@ function se(t, i, a = !1, l = !1) {
|
|
|
88
88
|
});
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
|
-
const b = (a ?
|
|
91
|
+
const b = (a ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations).find((m) => m.doc._id === n);
|
|
92
92
|
i({
|
|
93
93
|
...e,
|
|
94
94
|
supplier: b ? L(b) : e.supplier
|
|
@@ -99,10 +99,10 @@ function se(t, i, a = !1, l = !1) {
|
|
|
99
99
|
return l ? [...e, ...n] : e;
|
|
100
100
|
}), c = f(() => {
|
|
101
101
|
var d;
|
|
102
|
-
const n = ((d =
|
|
103
|
-
return (a ?
|
|
102
|
+
const n = ((d = o._currentLocation) == null ? void 0 : d.type) === E.warehouse;
|
|
103
|
+
return (a ? o.locations.filter((r) => r.doc._id !== o.currentLocation.doc._id) : o.locations).filter((r) => n || r.acceptRequest).map(L);
|
|
104
104
|
}), P = f(() => {
|
|
105
|
-
if (
|
|
105
|
+
if (s.value === F.PURCHASE) {
|
|
106
106
|
const e = y.value.map((r) => ({
|
|
107
107
|
label: r.name,
|
|
108
108
|
value: r._id
|
|
@@ -121,11 +121,11 @@ function se(t, i, a = !1, l = !1) {
|
|
|
121
121
|
}), _ = f(() => {
|
|
122
122
|
var r, b;
|
|
123
123
|
const n = (b = (r = t()) == null ? void 0 : r.supplier) == null ? void 0 : b._id;
|
|
124
|
-
if (
|
|
124
|
+
if (s.value === F.PURCHASE) {
|
|
125
125
|
const m = u.suppliers.find((C) => C._id === n);
|
|
126
126
|
return m ? k(m) : null;
|
|
127
127
|
}
|
|
128
|
-
const d =
|
|
128
|
+
const d = o.locations.find((m) => m.doc._id);
|
|
129
129
|
return d ? L(d) : null;
|
|
130
130
|
});
|
|
131
131
|
return {
|
|
@@ -137,9 +137,9 @@ function se(t, i, a = !1, l = !1) {
|
|
|
137
137
|
selectedLocation: _
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */
|
|
140
|
+
const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ x({
|
|
141
141
|
__name: "FmFilterableMenuOptions",
|
|
142
|
-
props: /* @__PURE__ */
|
|
142
|
+
props: /* @__PURE__ */ j({
|
|
143
143
|
modelValue: {},
|
|
144
144
|
maxHeight: {},
|
|
145
145
|
width: {},
|
|
@@ -152,19 +152,19 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
|
152
152
|
}),
|
|
153
153
|
emits: ["update:search"],
|
|
154
154
|
setup(t) {
|
|
155
|
-
const i = t, a =
|
|
155
|
+
const i = t, a = q(t, "search"), l = f(
|
|
156
156
|
() => new z(i.items, ["label", "sublabel"], i.options)
|
|
157
|
-
), u = f(() => l.value.search(a.value)),
|
|
158
|
-
return console.log({ stickyRef:
|
|
157
|
+
), u = f(() => l.value.search(a.value)), o = W();
|
|
158
|
+
return console.log({ stickyRef: o }), (s, p) => {
|
|
159
159
|
const y = V("FmButton"), v = V("FmTextField"), h = V("FmMenuItem");
|
|
160
160
|
return S(), I("div", {
|
|
161
161
|
class: "relative",
|
|
162
|
-
style: $({ width:
|
|
162
|
+
style: $({ width: s.width })
|
|
163
163
|
}, [
|
|
164
164
|
N("div", {
|
|
165
165
|
class: "sticky top-0 bg-white mb-8",
|
|
166
166
|
ref_key: "stickyRef",
|
|
167
|
-
ref:
|
|
167
|
+
ref: o
|
|
168
168
|
}, [
|
|
169
169
|
J(v, {
|
|
170
170
|
modelValue: a.value,
|
|
@@ -187,11 +187,11 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
|
187
187
|
key: P,
|
|
188
188
|
label: c.label,
|
|
189
189
|
sublabel: c.sublabel,
|
|
190
|
-
"model-value":
|
|
191
|
-
onClick: () =>
|
|
190
|
+
"model-value": M(U)(s.modelValue, c.value),
|
|
191
|
+
onClick: () => s.handleItemChange(M(U)(s.modelValue, c.value), c),
|
|
192
192
|
onVnodeMounted: (_) => {
|
|
193
193
|
var n, e;
|
|
194
|
-
return
|
|
194
|
+
return M(U)(s.modelValue, c.value) && ((n = _.el) == null || n.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
195
195
|
}
|
|
196
196
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
197
197
|
u.value.length ? O("", !0) : (S(), g(h, {
|
|
@@ -206,6 +206,6 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
|
206
206
|
});
|
|
207
207
|
export {
|
|
208
208
|
ae as _,
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
se as c,
|
|
210
|
+
oe as u
|
|
211
211
|
};
|