@feedmepos/mf-inventory-portal 1.2.7-dev.2 → 1.2.7-dev.4
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-CBwWCCOM.js → App-C36fMhxq.js} +1 -1
- package/dist/{ApprovalView-BrRGheio.js → ApprovalView-BK-UXBwv.js} +26 -26
- package/dist/{BindingsDialog-BSPkkRis.js → BindingsDialog-C5ry8Cg7.js} +2 -2
- package/dist/{BindingsPicker-L3XnC3__.js → BindingsPicker-D1lrIB-Y.js} +1 -1
- package/dist/{BindingsTable-CgUm0Ity.js → BindingsTable-CoWyge2-.js} +1 -1
- package/dist/{ClosingDraftView-D_gq2fCk.js → ClosingDraftView-FFi85ylu.js} +203 -203
- package/dist/{ClosingTemplateView-Q16zr6EV.js → ClosingTemplateView-BvSH7TM0.js} +53 -53
- package/dist/{DeliveryOrderPrintPreview-mVDQO6Xq.js → DeliveryOrderPrintPreview-BVVWnadB.js} +9 -9
- package/dist/{FmAdminBadge-Cjy6QPoR.js → FmAdminBadge-DtBVrN_M.js} +6 -6
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnH2Qxnr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CSigrMC2.js} +21 -21
- package/dist/{FmMultiselectDialog-BbYhJk_O.js → FmMultiselectDialog-Df50mxnw.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D0qlxGgo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CdSQVfaU.js} +27 -27
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CCuLSITo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-A7Pgq3Sl.js} +1 -1
- package/dist/{IngredientGroupView-CJ9Rsfg-.js → IngredientGroupView-BVM3Um9Z.js} +12 -12
- package/dist/IngredientsView-75ahXQeJ.js +2271 -0
- package/dist/{IntegrationView-B4giJ-Zl.js → IntegrationView-DEUOEn_W.js} +84 -84
- package/dist/{InventoryBindingForm-bNRoyTsA.js → InventoryBindingForm-C2HvBwlT.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAaoOXUY.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CXJSFCLP.js} +41 -41
- package/dist/{InventoryBindingSummary-NfFve-nM.js → InventoryBindingSummary-B-V9QkyH.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DP11tzty.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BELqcyvD.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-yjjkBSqL.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BBE5_txM.js} +5 -5
- package/dist/{PublishView-w9GYA6kf.js → PublishView-DKkCs9F8.js} +17 -17
- package/dist/{PurchaseOrderPrintPreview-DmdDJmEq.js → PurchaseOrderPrintPreview-BvFR-uQk.js} +9 -9
- package/dist/{ReceiveRequestView-z4o7lZvK.js → ReceiveRequestView-BIrBMqdY.js} +80 -80
- package/dist/{RecipeView-DiiQtfXn.js → RecipeView-CI_Tec4J.js} +49 -49
- package/dist/{StockView-DKR2nFdm.js → StockView-Bx3lqHZg.js} +327 -327
- package/dist/{SupplierView-BJcU4iQk.js → SupplierView-BT2aZGQE.js} +1103 -1016
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-UNVxzRmJ.js → TransferDetails.vue_vue_type_script_setup_true_lang-DWdnLRCB.js} +245 -245
- package/dist/{TransferTemplateView-rCbAWlh_.js → TransferTemplateView-DQtlCFze.js} +88 -87
- package/dist/{UnitView-BW9hbVHL.js → UnitView-h61yFjgP.js} +59 -59
- package/dist/{WarehouseView-BO0hf42-.js → WarehouseView-I8GqyD2C.js} +25 -25
- package/dist/api/netsuite.d.ts +3 -0
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/{app-ChezCkd5.js → app-CxSrmhCK.js} +6888 -6786
- package/dist/app.d.ts +57 -0
- package/dist/app.js +3 -3
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
- package/dist/components/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/{decimal-1sc-GcXN.js → decimal-DpfcXNky.js} +1 -1
- package/dist/{format-unit-display-BK2TkQOA.js → format-unit-display-xov4MvuI.js} +368 -400
- package/dist/{index-CWivxw9k.js → index-B4hWNXtZ.js} +1 -1
- package/dist/{index-cLW2Uxz3.js → index-CwzV_5fz.js} +1 -1
- package/dist/purchase-order-template-DkBl6qMP.js +41 -0
- package/dist/{stock-FEj_v-SS.js → stock-Nt176YY7.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +10 -0
- package/dist/{supplier-2r8VFThu.js → supplier-B7gAUwhb.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CvgFQA-k.js → use-ingredient-select-dialog-9HkEvXXS.js} +5 -5
- package/dist/{use-inventory-binding-dialog-BNp88Pjt.js → use-inventory-binding-dialog-pSVgqxMM.js} +8 -8
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +16 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +4 -0
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/package.json +1 -1
- package/dist/IngredientsView-BbKzQnQP.js +0 -1886
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as M, h as F, defineComponent as L, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Me, toDisplayString as C, unref as y, createCommentVNode as G, createVNode as $, withCtx as A, Fragment as j, renderList as J, computed as E, watch as Fe, createSlots as Re, createBlock as V, isRef as Oe, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as Je, mergeProps as We } from "vue";
|
|
2
|
+
import { a6 as qe, u as ie, al as Qe, D as Z, i as N, h as Xe, f as Ae, am as Ze, an as ae, z as et, ao as Ee, B as Ne, a as ce, b as tt, C as nt, E as Ue, G as ot, H as st, ap as lt, e as H, P as O, T as at, aq as rt, o as it, O as Ve, A as ct, ar as mt, a7 as le, K as ut, _ as dt, L as pt } from "./app-CxSrmhCK.js";
|
|
3
3
|
import { useCoreStore as me, useI18n as z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as te, useDialogChild as ft, useSnackbar as ne, FmButtonVariant as ee, components as B, useProxiedModel as vt, useBreakpoints as gt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Be, storeToRefs as Le } from "pinia";
|
|
6
|
-
import { u as yt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as yt } from "./use-ingredient-select-dialog-9HkEvXXS.js";
|
|
7
7
|
const oe = qe((c, o) => {
|
|
8
8
|
function l() {
|
|
9
9
|
var t;
|
|
@@ -54,7 +54,7 @@ const oe = qe((c, o) => {
|
|
|
54
54
|
}), se = Be(
|
|
55
55
|
"closingTemplateTable",
|
|
56
56
|
function() {
|
|
57
|
-
const { t: o } = z(), l = te(), a =
|
|
57
|
+
const { t: o } = z(), l = te(), a = M({}), e = re(), t = M({}), g = M(new Array()), u = M(!1), f = ie(), i = oe();
|
|
58
58
|
function v(s) {
|
|
59
59
|
const r = {
|
|
60
60
|
title: s.name,
|
|
@@ -572,7 +572,7 @@ function $t(c) {
|
|
|
572
572
|
const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-col" }, St = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, Dt = {
|
|
573
573
|
key: 0,
|
|
574
574
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
575
|
-
},
|
|
575
|
+
}, Pt = { key: 0 }, Pe = /* @__PURE__ */ L({
|
|
576
576
|
__name: "ClosingTemplateImportItem",
|
|
577
577
|
props: {
|
|
578
578
|
type: {},
|
|
@@ -595,10 +595,10 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
595
595
|
"text-fm-color-system-error-300": l.errors.length
|
|
596
596
|
})
|
|
597
597
|
}, [
|
|
598
|
-
|
|
599
|
-
l.type === "create" ? (k(), I("span", Dt, "(" + C(y(o)("inventory.closing.template.import.new")) + ")", 1)) :
|
|
598
|
+
Me(C(l.name) + " ", 1),
|
|
599
|
+
l.type === "create" ? (k(), I("span", Dt, "(" + C(y(o)("inventory.closing.template.import.new")) + ")", 1)) : G("", !0)
|
|
600
600
|
], 2),
|
|
601
|
-
l.errors.length ? (k(), I("div",
|
|
601
|
+
l.errors.length ? (k(), I("div", Pt, [
|
|
602
602
|
$(t, { "z-index": 50 }, {
|
|
603
603
|
content: A(() => [
|
|
604
604
|
_("ol", null, [
|
|
@@ -614,7 +614,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
614
614
|
]),
|
|
615
615
|
_: 1
|
|
616
616
|
})
|
|
617
|
-
])) :
|
|
617
|
+
])) : G("", !0)
|
|
618
618
|
]),
|
|
619
619
|
_("div", {
|
|
620
620
|
class: Y([
|
|
@@ -629,7 +629,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
629
629
|
]);
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
}),
|
|
632
|
+
}), Mt = { class: "flex flex-col gap-24" }, Ft = { class: "fm-typo-en-body-md-400" }, Rt = {
|
|
633
633
|
key: 0,
|
|
634
634
|
class: "flex items-center gap-8"
|
|
635
635
|
}, At = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Et = { class: "flex flex-col gap-8" }, Nt = { class: "line-clamp-2 text-ellipsis break-all" }, Ut = {
|
|
@@ -644,7 +644,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
644
644
|
}, zt = { class: "fm-typo-en-body-lg-600" }, Ht = /* @__PURE__ */ L({
|
|
645
645
|
__name: "ClosingTemplateImport",
|
|
646
646
|
setup(c) {
|
|
647
|
-
const o =
|
|
647
|
+
const o = M(null), l = ft(), a = ne(), e = M(!1), t = M(!1), g = M(new Array()), u = M([]), f = M([]), i = E(
|
|
648
648
|
() => !!g.value.length || u.value.some((T) => T.errors.length) || f.value.some((T) => T.errors.length)
|
|
649
649
|
), v = E(
|
|
650
650
|
() => !!u.value.length || !!f.value.length
|
|
@@ -693,7 +693,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
693
693
|
T && x(T);
|
|
694
694
|
}), (T, h) => {
|
|
695
695
|
const s = R("FmCircularProgress"), r = R("FmIcon"), m = R("FmButton");
|
|
696
|
-
return k(), I("div",
|
|
696
|
+
return k(), I("div", Mt, [
|
|
697
697
|
_("div", Ft, C(y(d)("inventory.closing.template.import.message")), 1),
|
|
698
698
|
t.value ? (k(), I("div", Rt, [
|
|
699
699
|
_("div", null, [
|
|
@@ -749,7 +749,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
749
749
|
}, [
|
|
750
750
|
_("div", Nt, C(o.value.name), 1)
|
|
751
751
|
], 2),
|
|
752
|
-
e.value ?
|
|
752
|
+
e.value ? G("", !0) : (k(), I("div", Ut, [
|
|
753
753
|
$(m, {
|
|
754
754
|
label: y(d)("inventory.ingredient.import.replaceFile"),
|
|
755
755
|
variant: i.value ? "destructive" : "secondary",
|
|
@@ -770,7 +770,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
770
770
|
}),
|
|
771
771
|
_("div", Bt, C(w), 1)
|
|
772
772
|
]))), 128))
|
|
773
|
-
])) :
|
|
773
|
+
])) : G("", !0)
|
|
774
774
|
])
|
|
775
775
|
]),
|
|
776
776
|
key: "0"
|
|
@@ -778,7 +778,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
778
778
|
]), 1032, ["class", "label", "button-label"]),
|
|
779
779
|
v.value ? (k(), I("div", Lt, [
|
|
780
780
|
_("div", zt, C(y(d)("inventory.ingredient.import.summary")), 1),
|
|
781
|
-
(k(!0), I(j, null, J(u.value, (n, w) => (k(), V(
|
|
781
|
+
(k(!0), I(j, null, J(u.value, (n, w) => (k(), V(Pe, {
|
|
782
782
|
key: w,
|
|
783
783
|
name: n.template.name,
|
|
784
784
|
locations: n.template.locations,
|
|
@@ -786,7 +786,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
786
786
|
errors: n.errors,
|
|
787
787
|
type: "create"
|
|
788
788
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128)),
|
|
789
|
-
(k(!0), I(j, null, J(f.value, (n) => (k(), V(
|
|
789
|
+
(k(!0), I(j, null, J(f.value, (n) => (k(), V(Pe, {
|
|
790
790
|
key: n.template._id,
|
|
791
791
|
name: n.template.name,
|
|
792
792
|
locations: n.template.locations,
|
|
@@ -794,13 +794,13 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
794
794
|
errors: n.errors,
|
|
795
795
|
type: "update"
|
|
796
796
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128))
|
|
797
|
-
])) :
|
|
797
|
+
])) : G("", !0)
|
|
798
798
|
], 64))
|
|
799
799
|
]);
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
802
|
}), re = Be("closingTemplateActions", () => {
|
|
803
|
-
const { t: c } = z(), o = te(), l = ne(), a = oe(), e = lt(), t = se(), { loading: g } = Le(t), u =
|
|
803
|
+
const { t: c } = z(), o = te(), l = ne(), a = oe(), e = lt(), t = se(), { loading: g } = Le(t), u = M({});
|
|
804
804
|
function f() {
|
|
805
805
|
u.value = {
|
|
806
806
|
mode: H.CREATE,
|
|
@@ -916,7 +916,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
const x =
|
|
919
|
+
const x = M({});
|
|
920
920
|
function T(m) {
|
|
921
921
|
x.value = {
|
|
922
922
|
template: m,
|
|
@@ -1038,7 +1038,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
|
|
|
1038
1038
|
templateDetailsProps: x
|
|
1039
1039
|
};
|
|
1040
1040
|
});
|
|
1041
|
-
var
|
|
1041
|
+
var K = /* @__PURE__ */ ((c) => (c.Name = "Name", c.Unit = "Unit", c.Delete = "Delete", c))(K || {});
|
|
1042
1042
|
function jt(c) {
|
|
1043
1043
|
return {
|
|
1044
1044
|
columnDefs: E(() => {
|
|
@@ -1240,7 +1240,7 @@ function jt(c) {
|
|
|
1240
1240
|
})
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
|
-
const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" },
|
|
1243
|
+
const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt = { class: "flex-1 flex flex-col" }, Gt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wt = { class: "flex flex-col gap-4" }, qt = /* @__PURE__ */ L({
|
|
1244
1244
|
__name: "ClosingTemplateItem",
|
|
1245
1245
|
props: {
|
|
1246
1246
|
cellByColId: {},
|
|
@@ -1248,20 +1248,20 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1248
1248
|
},
|
|
1249
1249
|
setup(c) {
|
|
1250
1250
|
const o = c, l = E(() => o.row), a = E(
|
|
1251
|
-
() => l.value.getVisibleCells().filter((e) => e.column.id !==
|
|
1251
|
+
() => l.value.getVisibleCells().filter((e) => e.column.id !== K.Name && e.column.id !== K.Delete)
|
|
1252
1252
|
);
|
|
1253
1253
|
return (e, t) => {
|
|
1254
1254
|
var g, u, f, i, v;
|
|
1255
1255
|
return k(), I("div", Ot, [
|
|
1256
1256
|
_("div", Yt, [
|
|
1257
|
-
_("div",
|
|
1258
|
-
_("div",
|
|
1257
|
+
_("div", Kt, [
|
|
1258
|
+
_("div", Gt, C(l.value.original.sku.name), 1),
|
|
1259
1259
|
_("div", Jt, C(l.value.original.sku.code), 1)
|
|
1260
1260
|
]),
|
|
1261
1261
|
_("div", null, [
|
|
1262
1262
|
$(y(O), {
|
|
1263
|
-
render: (f = (u = (g = e.cellByColId[y(
|
|
1264
|
-
props: (v = (i = e.cellByColId[y(
|
|
1263
|
+
render: (f = (u = (g = e.cellByColId[y(K).Delete]) == null ? void 0 : g.column) == null ? void 0 : u.columnDef) == null ? void 0 : f.cell,
|
|
1264
|
+
props: (v = (i = e.cellByColId[y(K).Delete]) == null ? void 0 : i.getContext) == null ? void 0 : v.call(i)
|
|
1265
1265
|
}, null, 8, ["render", "props"])
|
|
1266
1266
|
])
|
|
1267
1267
|
]),
|
|
@@ -1302,7 +1302,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1302
1302
|
setLocations(s) {
|
|
1303
1303
|
a.locations = s;
|
|
1304
1304
|
}
|
|
1305
|
-
}), i =
|
|
1305
|
+
}), i = M(), v = M("");
|
|
1306
1306
|
o({
|
|
1307
1307
|
validateInputs: () => {
|
|
1308
1308
|
var s, r;
|
|
@@ -1437,12 +1437,12 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1437
1437
|
"list-row": A((D) => [
|
|
1438
1438
|
(k(), V(Ve, {
|
|
1439
1439
|
row: D,
|
|
1440
|
-
key: y(a).items.map((
|
|
1440
|
+
key: y(a).items.map((P) => P.sku._id).join(".")
|
|
1441
1441
|
}, {
|
|
1442
|
-
default: A((
|
|
1442
|
+
default: A((P) => [
|
|
1443
1443
|
$(qt, {
|
|
1444
1444
|
row: D,
|
|
1445
|
-
"cell-by-col-id":
|
|
1445
|
+
"cell-by-col-id": P
|
|
1446
1446
|
}, null, 8, ["row", "cell-by-col-id"])
|
|
1447
1447
|
]),
|
|
1448
1448
|
_: 2
|
|
@@ -1478,7 +1478,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1478
1478
|
items: []
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
|
-
const v =
|
|
1481
|
+
const v = M(a.modelValue ?? i()), d = M(((w = a.modelValue) == null ? void 0 : w._id) ?? `${Math.random()}`);
|
|
1482
1482
|
Fe(
|
|
1483
1483
|
() => a.show,
|
|
1484
1484
|
(p) => {
|
|
@@ -1486,7 +1486,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1486
1486
|
p && (v.value = a.modelValue ?? i(), d.value = ((b = a.modelValue) == null ? void 0 : b._id) ?? `${Math.random()}`);
|
|
1487
1487
|
}
|
|
1488
1488
|
);
|
|
1489
|
-
const x =
|
|
1489
|
+
const x = M(!1), T = E(() => {
|
|
1490
1490
|
switch (a.mode) {
|
|
1491
1491
|
case H.READ:
|
|
1492
1492
|
return "";
|
|
@@ -1496,7 +1496,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1496
1496
|
return u("inventory.closing.template.update.title");
|
|
1497
1497
|
}
|
|
1498
1498
|
return "";
|
|
1499
|
-
}), h =
|
|
1499
|
+
}), h = M();
|
|
1500
1500
|
o({
|
|
1501
1501
|
validateInputs: () => {
|
|
1502
1502
|
var p, b;
|
|
@@ -1572,7 +1572,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1572
1572
|
const S = R("FmButton"), D = R("FmSideSheet");
|
|
1573
1573
|
return k(), V(D, {
|
|
1574
1574
|
modelValue: y(f),
|
|
1575
|
-
"onUpdate:modelValue": b[2] || (b[2] = (
|
|
1575
|
+
"onUpdate:modelValue": b[2] || (b[2] = (P) => Oe(f) ? f.value = P : null),
|
|
1576
1576
|
"dismiss-away": "",
|
|
1577
1577
|
"close-button": "",
|
|
1578
1578
|
"max-width": 800
|
|
@@ -1589,7 +1589,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1589
1589
|
ref: h,
|
|
1590
1590
|
onValidationSuccess: m,
|
|
1591
1591
|
"model-value": v.value,
|
|
1592
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
1592
|
+
"onUpdate:modelValue": b[0] || (b[0] = (P) => v.value = P),
|
|
1593
1593
|
disabled: x.value,
|
|
1594
1594
|
key: d.value
|
|
1595
1595
|
}, null, 8, ["model-value", "disabled"]))
|
|
@@ -1605,7 +1605,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt =
|
|
|
1605
1605
|
disabled: x.value,
|
|
1606
1606
|
variant: "tertiary",
|
|
1607
1607
|
label: y(u)("common.close"),
|
|
1608
|
-
onClick: b[1] || (b[1] = (
|
|
1608
|
+
onClick: b[1] || (b[1] = (P) => e("update:show", !1))
|
|
1609
1609
|
}, null, 8, ["disabled", "label"])
|
|
1610
1610
|
])
|
|
1611
1611
|
]),
|
|
@@ -1630,7 +1630,7 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
|
|
|
1630
1630
|
__name: "ClosingTemplatePublish",
|
|
1631
1631
|
emits: ["close"],
|
|
1632
1632
|
setup(c, { emit: o }) {
|
|
1633
|
-
const l =
|
|
1633
|
+
const l = M(!1), a = ne(), e = oe(), t = se(), { t: g } = z(), u = o;
|
|
1634
1634
|
async function f() {
|
|
1635
1635
|
l.value = !0;
|
|
1636
1636
|
try {
|
|
@@ -1695,7 +1695,7 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
|
|
|
1695
1695
|
]),
|
|
1696
1696
|
_: 1
|
|
1697
1697
|
}),
|
|
1698
|
-
|
|
1698
|
+
Me(" Your recent publishing task is still pending (" + C(i.value.completed.length) + " / " + C(i.value.outlets.length) + "). Please wait until all publishing task has completed. ", 1)
|
|
1699
1699
|
])) : (k(), I("div", hn, [
|
|
1700
1700
|
_("p", null, C(y(g)("inventory.closing.template.publish.noRecentActivity")), 1),
|
|
1701
1701
|
_("p", null, C(y(g)("inventory.closing.template.publish.message")), 1)
|
|
@@ -1718,12 +1718,12 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
|
|
|
1718
1718
|
]);
|
|
1719
1719
|
};
|
|
1720
1720
|
}
|
|
1721
|
-
}), In = { class: "flex-1 flex flex-col gap-8" }, Sn = { class: "flex flex-col" }, Dn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1721
|
+
}), In = { class: "flex-1 flex flex-col gap-8" }, Sn = { class: "flex flex-col" }, Dn = { 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" }, Mn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Fn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Bn = /* @__PURE__ */ L({
|
|
1722
1722
|
__name: "ClosingTemplateView",
|
|
1723
1723
|
setup(c) {
|
|
1724
1724
|
const { t: o } = z(), { createTemplate: l, updateTemplate: a, exportTemplates: e, importTemplates: t } = re(), { templateDialogProps: g, templateDetailsProps: u } = Le(re()), f = ie(), i = te(), v = se(), d = ut(), { breakpoints: x } = gt();
|
|
1725
1725
|
f.watchLocation(v.fetchTemplates);
|
|
1726
|
-
const T = E(() => v.loading), h =
|
|
1726
|
+
const T = E(() => v.loading), h = M(""), s = E(() => x.value.xs || x.value.sm), r = E(() => s.value ? 10 : 20);
|
|
1727
1727
|
function m(b) {
|
|
1728
1728
|
switch (b) {
|
|
1729
1729
|
case N.Add:
|
|
@@ -1828,7 +1828,7 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
|
|
|
1828
1828
|
$(pt, {
|
|
1829
1829
|
searchable: "",
|
|
1830
1830
|
search: h.value,
|
|
1831
|
-
"onUpdate:search": S[0] || (S[0] = (
|
|
1831
|
+
"onUpdate:search": S[0] || (S[0] = (P) => h.value = P)
|
|
1832
1832
|
}, null, 8, ["search"]),
|
|
1833
1833
|
$(D, {
|
|
1834
1834
|
style: Ye(y(d).tableHeight),
|
|
@@ -1836,12 +1836,12 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
|
|
|
1836
1836
|
"row-data": y(v).templates,
|
|
1837
1837
|
"search-value": h.value,
|
|
1838
1838
|
loading: T.value,
|
|
1839
|
-
onRowClick: S[1] || (S[1] = (
|
|
1839
|
+
onRowClick: S[1] || (S[1] = (P) => y(a)(P.original)),
|
|
1840
1840
|
"page-size": r.value
|
|
1841
1841
|
}, {
|
|
1842
|
-
"list-row": A((
|
|
1842
|
+
"list-row": A((P) => [
|
|
1843
1843
|
$(Ve, {
|
|
1844
|
-
row:
|
|
1844
|
+
row: P,
|
|
1845
1845
|
onRowClick: (U) => y(a)(U)
|
|
1846
1846
|
}, {
|
|
1847
1847
|
default: A((U) => {
|
|
@@ -1855,18 +1855,18 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
|
|
|
1855
1855
|
props: (ve = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : ve.call(W)
|
|
1856
1856
|
}, null, 8, ["render", "props"])
|
|
1857
1857
|
]),
|
|
1858
|
-
_("div",
|
|
1858
|
+
_("div", Pn, [
|
|
1859
1859
|
$(y(O), {
|
|
1860
1860
|
render: (he = (ye = (ge = U.name) == null ? void 0 : ge.column) == null ? void 0 : ye.columnDef) == null ? void 0 : he.cell,
|
|
1861
1861
|
props: (be = (q = U.name) == null ? void 0 : q.getContext) == null ? void 0 : be.call(q)
|
|
1862
1862
|
}, null, 8, ["render", "props"])
|
|
1863
1863
|
]),
|
|
1864
|
-
_("div", null, C((_e =
|
|
1865
|
-
count: ((xe =
|
|
1864
|
+
_("div", null, C((_e = P.original.locations) != null && _e.length ? y(o)("inventory.closing.table.enabledForN", {
|
|
1865
|
+
count: ((xe = P.original.locations) == null ? void 0 : xe.length) ?? 0
|
|
1866
1866
|
}) : y(o)("inventory.closing.table.enabledForAll")), 1),
|
|
1867
|
-
_("div",
|
|
1868
|
-
...
|
|
1869
|
-
...
|
|
1867
|
+
_("div", Mn, C([
|
|
1868
|
+
...P.original.items.slice(0, 3).map((je) => je.sku.name),
|
|
1869
|
+
...P.original.items.length >= 3 ? [`and ${P.original.items.length - 3} more items`] : []
|
|
1870
1870
|
].join(", ")), 1),
|
|
1871
1871
|
_("div", Fn, [
|
|
1872
1872
|
$(y(O), {
|
|
@@ -1893,10 +1893,10 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
|
|
|
1893
1893
|
]),
|
|
1894
1894
|
_: 1
|
|
1895
1895
|
}, 8, ["title", "actions"]),
|
|
1896
|
-
(k(), V(
|
|
1897
|
-
$(pn,
|
|
1896
|
+
(k(), V(Ke, { to: "body" }, [
|
|
1897
|
+
$(pn, Ge(Je(y(u))), null, 16),
|
|
1898
1898
|
$(mn, We(y(g), {
|
|
1899
|
-
onSubmitted: S[2] || (S[2] = (
|
|
1899
|
+
onSubmitted: S[2] || (S[2] = (P) => y(v).fetchTemplates())
|
|
1900
1900
|
}), null, 16)
|
|
1901
1901
|
]))
|
|
1902
1902
|
], 64);
|
package/dist/{DeliveryOrderPrintPreview-mVDQO6Xq.js → DeliveryOrderPrintPreview-BVVWnadB.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" },
|
|
3
|
+
import { aE as y, ar as w } from "./app-CxSrmhCK.js";
|
|
4
|
+
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, E = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "subtitle"
|
|
7
|
-
},
|
|
7
|
+
}, R = { class: "sub-header" }, S = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, U = { class: "purchase-body" }, B = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, j = { key: 0 }, z = {
|
|
8
8
|
key: 1,
|
|
9
9
|
style: { "padding-top": "30px" }
|
|
10
10
|
}, G = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
|
|
@@ -41,12 +41,12 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
41
41
|
class: "logo",
|
|
42
42
|
src: s.value.logo,
|
|
43
43
|
alt: "logo"
|
|
44
|
-
}, null, 8,
|
|
44
|
+
}, null, 8, O)
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
47
47
|
t("td", null, [
|
|
48
|
-
t("div",
|
|
49
|
-
t("div",
|
|
48
|
+
t("div", P, [
|
|
49
|
+
t("div", C, [
|
|
50
50
|
t("div", null, [
|
|
51
51
|
n(e(s.value.businessName), 1),
|
|
52
52
|
l[0] || (l[0] = t("br", null, null, -1)),
|
|
@@ -63,7 +63,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
63
63
|
]),
|
|
64
64
|
t("td", D, [
|
|
65
65
|
l[8] || (l[8] = t("div", { class: "title" }, "Delivery Order", -1)),
|
|
66
|
-
s.value.fulfillmentId ? (u(), i("div",
|
|
66
|
+
s.value.fulfillmentId ? (u(), i("div", E, "#" + e(s.value.fulfillmentId), 1)) : d("", !0),
|
|
67
67
|
t("div", null, e(s.value.createdAt), 1)
|
|
68
68
|
])
|
|
69
69
|
])
|
|
@@ -73,8 +73,8 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
73
73
|
t("tr", null, [
|
|
74
74
|
t("td", null, [
|
|
75
75
|
l[13] || (l[13] = t("div", { class: "header" }, "Bill To", -1)),
|
|
76
|
-
t("div",
|
|
77
|
-
t("div",
|
|
76
|
+
t("div", R, e(s.value.supplier.name), 1),
|
|
77
|
+
t("div", S, e(s.value.supplier.registrationNumber), 1),
|
|
78
78
|
t("div", T, [
|
|
79
79
|
n(e(s.value.supplier.line1), 1),
|
|
80
80
|
l[10] || (l[10] = t("br", null, null, -1)),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as m, resolveComponent as i, unref as
|
|
1
|
+
import { defineComponent as m, resolveComponent as i, unref as l, openBlock as p, createElementBlock as d, renderSlot as t, createElementVNode as s, normalizeClass as u, createVNode as f } from "vue";
|
|
2
2
|
import { useCoreStore as _ } from "@feedmepos/mf-common";
|
|
3
|
-
import {
|
|
3
|
+
import { ar as v } from "./app-CxSrmhCK.js";
|
|
4
4
|
const g = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "group gap-8 inline-flex items-center relative select-none"
|
|
@@ -9,18 +9,18 @@ const g = {
|
|
|
9
9
|
props: {
|
|
10
10
|
class: { default: void 0 }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(r) {
|
|
13
|
+
const n = r, a = _();
|
|
14
14
|
return (e, h) => {
|
|
15
15
|
var o;
|
|
16
16
|
const c = i("FmIcon");
|
|
17
|
-
return (o =
|
|
17
|
+
return (o = l(a).sessionUser.value) != null && o.role.isAdmin ? (p(), d("div", g, [
|
|
18
18
|
t(e.$slots, "default", {}, void 0, !0),
|
|
19
19
|
s("div", {
|
|
20
20
|
class: u([
|
|
21
21
|
"fm-admin-badge",
|
|
22
22
|
"group-hover:opacity-20",
|
|
23
|
-
|
|
23
|
+
n.class,
|
|
24
24
|
{
|
|
25
25
|
absolute: !0,
|
|
26
26
|
"bottom-[-5px] right-[-8px] px-4 h-[25px] w-[25px] border-2 border-red-800": !0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { P as T } from "./format-unit-display-
|
|
4
|
-
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as
|
|
1
|
+
import { k as C, t as A, aC as M, u as E, aG as B, aR as D, m as H, aS as U } from "./app-CxSrmhCK.js";
|
|
2
|
+
import { u as z } from "./supplier-B7gAUwhb.js";
|
|
3
|
+
import { P as T } from "./format-unit-display-xov4MvuI.js";
|
|
4
|
+
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as k, createElementBlock as O, normalizeStyle as $, createElementVNode as I, createVNode as J, withCtx as K, createBlock as V, createCommentVNode as N, Fragment as Q, renderList as X, unref as g } from "vue";
|
|
5
5
|
function Y(e, a, r) {
|
|
6
6
|
var o;
|
|
7
7
|
if (!!a.measurement === !!r && ((o = a.measurement) == null ? void 0 : o.id) === r)
|
|
@@ -32,7 +32,7 @@ function oe(e, a, r, u) {
|
|
|
32
32
|
const n = e.defaultCost ? Y(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +C(p) / +C(o == null ? void 0 : o.measurement.conversion) : +C(p) : void 0, b = v ? r ? v * +C(r.conversion) : v : void 0, h = b ? +C(a) * b : void 0;
|
|
33
33
|
return {
|
|
34
34
|
cost: h ? {
|
|
35
|
-
...
|
|
35
|
+
...A(h ?? 0, 2),
|
|
36
36
|
currency: M()
|
|
37
37
|
} : {
|
|
38
38
|
amount: 0,
|
|
@@ -43,7 +43,7 @@ function oe(e, a, r, u) {
|
|
|
43
43
|
supplierOverrideCost: l ?? void 0
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function L(e) {
|
|
47
47
|
const a = D.safeParse(e);
|
|
48
48
|
if (a.success) return a.data;
|
|
49
49
|
throw new Error("Invalid supplier data");
|
|
@@ -68,7 +68,7 @@ function F(e) {
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
function ne(e, a, r = !1, u = !1) {
|
|
71
|
-
const l = z(), n =
|
|
71
|
+
const l = z(), n = E();
|
|
72
72
|
n.watchLocation(async () => {
|
|
73
73
|
var y;
|
|
74
74
|
await l.readSuppliers();
|
|
@@ -77,7 +77,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
77
77
|
const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (r ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
|
|
78
78
|
a({
|
|
79
79
|
...s,
|
|
80
|
-
supplier: t ?
|
|
80
|
+
supplier: t ? L(t) : i ? F(i) : s.supplier
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
const o = f(
|
|
@@ -93,10 +93,10 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
93
93
|
set(s) {
|
|
94
94
|
const t = e() ?? {};
|
|
95
95
|
if (o.value === T.PURCHASE) {
|
|
96
|
-
const S = (u ? l.suppliers : l.businessSuppliers).find((
|
|
96
|
+
const S = (u ? l.suppliers : l.businessSuppliers).find((R) => R._id === s);
|
|
97
97
|
a({
|
|
98
98
|
...t,
|
|
99
|
-
supplier: S ?
|
|
99
|
+
supplier: S ? L(S) : t.supplier
|
|
100
100
|
});
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
@@ -108,7 +108,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
108
108
|
supplier: y ? F(y) : t.supplier
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
}), v = f(() => l.locationSuppliers.map(
|
|
111
|
+
}), v = f(() => l.locationSuppliers.map(L)), b = f(() => l.businessSuppliers.map(L)), h = f(() => {
|
|
112
112
|
const s = [...v.value], t = [...b.value];
|
|
113
113
|
return u ? [...t, ...s] : t;
|
|
114
114
|
}), c = f(() => {
|
|
@@ -139,7 +139,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
139
139
|
const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
|
|
140
140
|
if (o.value === T.PURCHASE) {
|
|
141
141
|
const d = l.suppliers.find((S) => S._id === s);
|
|
142
|
-
return d ?
|
|
142
|
+
return d ? L(d) : null;
|
|
143
143
|
}
|
|
144
144
|
const m = n.allLocations.find((d) => d.doc._id);
|
|
145
145
|
return m ? F(m) : null;
|
|
@@ -176,33 +176,33 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
|
176
176
|
), l = f(() => u.value.search(r.value)), n = W();
|
|
177
177
|
return console.log({ stickyRef: n }), (o, p) => {
|
|
178
178
|
const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
|
|
179
|
-
return
|
|
179
|
+
return k(), O("div", {
|
|
180
180
|
class: "relative",
|
|
181
181
|
style: $({ width: o.width })
|
|
182
182
|
}, [
|
|
183
|
-
|
|
183
|
+
I("div", {
|
|
184
184
|
class: "sticky top-0 bg-white mb-8",
|
|
185
185
|
ref_key: "stickyRef",
|
|
186
186
|
ref: n
|
|
187
187
|
}, [
|
|
188
|
-
|
|
188
|
+
J(b, {
|
|
189
189
|
modelValue: r.value,
|
|
190
190
|
"onUpdate:modelValue": p[1] || (p[1] = (c) => r.value = c),
|
|
191
191
|
placeholder: "Filter options"
|
|
192
192
|
}, {
|
|
193
|
-
append:
|
|
194
|
-
r.value ? (
|
|
193
|
+
append: K(() => [
|
|
194
|
+
r.value ? (k(), V(v, {
|
|
195
195
|
key: 0,
|
|
196
196
|
variant: "tertiary",
|
|
197
197
|
"prepend-icon": "close",
|
|
198
198
|
onClick: p[0] || (p[0] = (c) => r.value = "")
|
|
199
|
-
})) :
|
|
199
|
+
})) : N("", !0)
|
|
200
200
|
]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["modelValue"])
|
|
203
203
|
], 512),
|
|
204
|
-
|
|
205
|
-
(
|
|
204
|
+
I("div", Z, [
|
|
205
|
+
(k(!0), O(Q, null, X(l.value, (c, P) => (k(), V(h, {
|
|
206
206
|
key: P,
|
|
207
207
|
label: c.label,
|
|
208
208
|
sublabel: c.sublabel,
|
|
@@ -213,7 +213,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
|
213
213
|
return g(U)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
214
214
|
}
|
|
215
215
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
216
|
-
l.value.length ?
|
|
216
|
+
l.value.length ? N("", !0) : (k(), V(h, {
|
|
217
217
|
key: 0,
|
|
218
218
|
disabled: "",
|
|
219
219
|
label: "No options available"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
4
|
+
import { s as a } from "./app-CxSrmhCK.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|