@feedmepos/mf-inventory-portal 0.0.17-dev.9 → 0.0.18-dev.3
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/ApprovalView-G-u9nPxH.js +118 -0
- package/dist/{BindingsDialog-Dw_DCOTY.js → BindingsDialog-CVeD1mOn.js} +2 -2
- package/dist/{BindingsPicker-BRLTF4Qs.js → BindingsPicker-K04aOoGr.js} +2 -2
- package/dist/BindingsTable-65aYkpX7.js +147 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DgHp7KgJ.js +268 -0
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-YzVhmNJc.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C5WBLEy3.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dv01gy7k.js → FmUnitInput.vue_vue_type_script_setup_true_lang-QKFZeZKM.js} +12 -12
- package/dist/IngredientsView-6Q2UWsu-.js +1776 -0
- package/dist/{IntegrationView-Xnl758CS.js → IntegrationView-ZMPPIopU.js} +260 -266
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CUj9Mnt6.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C8YTZoBw.js} +6 -6
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CW0h41FP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kidodonU.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-DzimxkGt.js → PurchaseOrderPrintPreview-B4uzudnC.js} +1 -1
- package/dist/ReceiveRequestView-DuHtLwZN.js +1394 -0
- package/dist/{RecipeView-B9NcEw7x.js → RecipeView-CRj0pC9N.js} +182 -190
- package/dist/StockView-CQbeZ5pU.js +1862 -0
- package/dist/SupplierView-CrfQATQf.js +796 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BSwsz8Xt.js → TransferDetails.vue_vue_type_script_setup_true_lang-CLUo-Tve.js} +21 -20
- package/dist/{UnitView-BvbaRHxG.js → UnitView-D1acjiRV.js} +129 -133
- package/dist/{WarehouseView-Cf5Bmfhn.js → WarehouseView-DID1G1qK.js} +260 -264
- package/dist/app-D1teOEQX.js +66113 -0
- package/dist/app.js +1 -1
- package/dist/array-AvWd53LI.js +30 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +53 -0
- package/dist/date2-6Vt_hnAG.js +95 -0
- package/dist/dayjs.min-Co7-8-Mb.js +282 -0
- package/dist/{decimal-S-jYTEL5.js → decimal-ziY3648r.js} +1 -1
- package/dist/extensions/array.d.ts +1 -0
- package/dist/{fuzzy-DW00BX8H.js → fuzzy-gvHXFsh0.js} +1 -1
- package/dist/{dayjs.min-M4PEyOKN.js → index-Do1KDD1S.js} +3594 -3356
- package/dist/{layout-DACHKQ9G.js → layout-BxDEsp4a.js} +1 -1
- package/dist/number-Dvvpk3SV.js +97 -0
- package/dist/{rules-ldw61cGA.js → rules-CQu9yXsg.js} +16 -15
- package/dist/stock-estimate-Wysv30cx.js +122 -0
- package/dist/{supplier-DjKC4TaM.js → supplier-BFdAYn3E.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-D1M09VoX.js → use-inventory-binding-dialog-CuyOzZ5r.js} +2 -2
- package/dist/views/ingredients/IngredientsView.vue.d.ts +1 -0
- package/dist/{xlsx-BcM9fWkc.js → xlsx-BG4CsaGF.js} +1 -1
- package/dist/{xlsx.util-BNXjhkYU.js → xlsx.util-BkVYceD0.js} +2 -2
- package/package.json +4 -4
- package/dist/ApprovalView-BJ_SGOrx.js +0 -134
- package/dist/BindingsTable-BMIkL0Bk.js +0 -121
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D9Qp3jke.js +0 -97
- package/dist/IngredientsView-DYFkUsHx.js +0 -1802
- package/dist/ReceiveRequestView-C_0jK6GY.js +0 -1435
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js +0 -64
- package/dist/StockView-JPw1K8aU.js +0 -1960
- package/dist/SupplierView-CiQLFWmQ.js +0 -804
- package/dist/app-BbXzmbBO.js +0 -42892
- package/dist/components/FmTableToolbar.vue.d.ts +0 -49
- package/dist/date2-DFqSdEvG.js +0 -189
- package/dist/init-date-range-B_ha80e0.js +0 -21
- package/dist/stock-estimate-DOP1qO5w.js +0 -145
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ref as F, computed as re, h as Se, defineComponent as Ue, resolveComponent as H, openBlock as f, createBlock as I, unref as y, isRef as Me, withCtx as se, createElementVNode as e, createVNode as G, createElementBlock as x, Fragment as ee, normalizeClass as ae, toDisplayString as O, createCommentVNode as S, renderList as me } from "vue";
|
|
2
|
-
import { i as Fe } from "./
|
|
3
|
-
import { h as Le, f as oe, v, w as je, c as Ce, q as M, s as Y, a as xe } from "./app-
|
|
4
|
-
import {
|
|
2
|
+
import { i as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DgHp7KgJ.js";
|
|
3
|
+
import { h as Le, f as oe, v, w as je, c as Ce, q as M, s as Y, a as xe } from "./app-D1teOEQX.js";
|
|
4
|
+
import { e as ne, t as Be, b as Ie, a as Ve } from "./date2-6Vt_hnAG.js";
|
|
5
5
|
import { F as ke, D as N, R as k } from "./row-action.enum-BwQbURNh.js";
|
|
6
|
-
import { useDialog as
|
|
7
|
-
import { c as Re } from "./layout-
|
|
8
|
-
import {
|
|
6
|
+
import { useDialog as Pe, useSnackbar as Ne, components as Ae, useProxiedModel as Ge } from "@feedmepos/ui-library";
|
|
7
|
+
import { c as Re } from "./layout-BxDEsp4a.js";
|
|
8
|
+
import { h as Ee, c as pe, a as ce, j as Ke, i as ze } from "./number-Dvvpk3SV.js";
|
|
9
|
+
import { F as He } from "./decimal-ziY3648r.js";
|
|
9
10
|
import { E as Qe } from "./empty-placeholder-wf6-BWE8.js";
|
|
10
11
|
const Te = Le((a, i) => {
|
|
11
12
|
const d = oe();
|
|
@@ -106,8 +107,8 @@ function qe(a) {
|
|
|
106
107
|
const d = /* @__PURE__ */ new Date(`${i[1]}`);
|
|
107
108
|
return isNaN(d.getTime()) ? null : d;
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
const d =
|
|
110
|
+
function _r(a, i) {
|
|
111
|
+
const d = Pe(), r = oe(), g = xe(), m = F(!1), D = Ne(), T = Te(), L = F(new Array()), u = F(
|
|
111
112
|
i != null && i.startDate && (i != null && i.endDate) ? i : Fe()
|
|
112
113
|
), l = re(() => {
|
|
113
114
|
const n = new Date(u.value.startDate), s = new Date(u.value.endDate);
|
|
@@ -292,7 +293,7 @@ function Ye(a, i) {
|
|
|
292
293
|
return i.reduce(
|
|
293
294
|
(r, g) => {
|
|
294
295
|
const m = g.received.find((D) => D.sku._id === a._id);
|
|
295
|
-
return m && (r =
|
|
296
|
+
return m && (r = Ee(r, m.amount)), r;
|
|
296
297
|
},
|
|
297
298
|
He.toPrecision(pe(0), a.unit.precision)
|
|
298
299
|
);
|
|
@@ -400,7 +401,7 @@ const Q = {
|
|
|
400
401
|
value: v.enum.completeReceive
|
|
401
402
|
}
|
|
402
403
|
};
|
|
403
|
-
function
|
|
404
|
+
function wr(a, i) {
|
|
404
405
|
const d = oe();
|
|
405
406
|
function r(u) {
|
|
406
407
|
switch (u.status) {
|
|
@@ -648,7 +649,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
|
|
|
648
649
|
}, Jt = { class: "flex flex-col gap-8" }, Zt = { class: "flex flex-col gap-4" }, Xt = /* @__PURE__ */ e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Received by ", -1), er = { class: "fm-typo-en-body-lg-600" }, tr = { class: "flex flex-col gap-4" }, rr = /* @__PURE__ */ e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Received items ", -1), sr = { class: "flex flex-col gap-4" }, ar = /* @__PURE__ */ e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Delivery order no. ", -1), or = { class: "fm-typo-en-body-lg-600" }, nr = { class: "flex flex-col gap-4" }, cr = {
|
|
649
650
|
key: 0,
|
|
650
651
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
651
|
-
}, lr = { class: "fm-typo-en-body-lg-600" }, ir = { class: "flex gap-8 xs:flex-col" },
|
|
652
|
+
}, lr = { class: "fm-typo-en-body-lg-600" }, ir = { class: "flex gap-8 xs:flex-col" }, Or = /* @__PURE__ */ Ue({
|
|
652
653
|
__name: "TransferDetails",
|
|
653
654
|
props: {
|
|
654
655
|
purchaseOrder: {},
|
|
@@ -660,7 +661,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
|
|
|
660
661
|
},
|
|
661
662
|
emits: ["update:show", "submitted"],
|
|
662
663
|
setup(a, { emit: i }) {
|
|
663
|
-
const d = a, r = i, g =
|
|
664
|
+
const d = a, r = i, g = Pe(), m = Ne(), D = xe(), T = re(
|
|
664
665
|
() => {
|
|
665
666
|
var t, c, R, b;
|
|
666
667
|
return ((c = (t = d.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : c.internal) === "restaurant" || ((b = (R = d.purchaseOrder) == null ? void 0 : R.supplier) == null ? void 0 : b.internal) === "warehouse" ? te.TRANSFER : te.PURCHASE;
|
|
@@ -672,7 +673,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
|
|
|
672
673
|
{
|
|
673
674
|
label: "Delivery history"
|
|
674
675
|
}
|
|
675
|
-
], u = F(L[0]), l = F(!1), o = F(""), h = F(!0), E = Te(), $ =
|
|
676
|
+
], u = F(L[0]), l = F(!1), o = F(""), h = F(!0), E = Te(), $ = Ge(d, "show");
|
|
676
677
|
async function ie(t, c, R) {
|
|
677
678
|
o.value = c, l.value = !0, h.value = !1;
|
|
678
679
|
try {
|
|
@@ -737,11 +738,11 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
|
|
|
737
738
|
), b = Object.entries(R).reduce(
|
|
738
739
|
(s, [_, w]) => {
|
|
739
740
|
const A = w.reduce((C, q) => {
|
|
740
|
-
const j =
|
|
741
|
+
const j = Ke(
|
|
741
742
|
C,
|
|
742
743
|
Math.max(C.precision, q.amount.precision)
|
|
743
744
|
);
|
|
744
|
-
return
|
|
745
|
+
return Ee(j, q.amount);
|
|
745
746
|
}, pe(0));
|
|
746
747
|
return s[_] = A, s;
|
|
747
748
|
},
|
|
@@ -842,7 +843,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
|
|
|
842
843
|
]),
|
|
843
844
|
e("div", Pt, [
|
|
844
845
|
e("div", Nt, O(p.code), 1),
|
|
845
|
-
p.totalCost && y(D).enableTotalCost ? (f(), x("div", Et, " (" + O(y(
|
|
846
|
+
p.totalCost && y(D).enableTotalCost ? (f(), x("div", Et, " (" + O(y(ze)(p.totalCost)) + ") ", 1)) : S("", !0)
|
|
846
847
|
])
|
|
847
848
|
]))), 128))
|
|
848
849
|
])
|
|
@@ -892,7 +893,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
|
|
|
892
893
|
]),
|
|
893
894
|
e("div", Gt, [
|
|
894
895
|
Kt,
|
|
895
|
-
e("div", zt, O(y(ne)(new Date(p.createdAt))) + ", " + O(y(
|
|
896
|
+
e("div", zt, O(y(ne)(new Date(p.createdAt))) + ", " + O(y(Ve)(new Date(p.createdAt))), 1)
|
|
896
897
|
])
|
|
897
898
|
]),
|
|
898
899
|
e("div", Ht, [
|
|
@@ -1018,9 +1019,9 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, Ze = { class: "xs:w-
|
|
|
1018
1019
|
});
|
|
1019
1020
|
export {
|
|
1020
1021
|
te as P,
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1022
|
+
Or as _,
|
|
1023
|
+
_r as a,
|
|
1024
|
+
wr as b,
|
|
1024
1025
|
Ye as g,
|
|
1025
1026
|
qe as p,
|
|
1026
1027
|
Te as u
|